Including IDL Files in a Parent IDL File
ADR include feature allows you to include an XML-based IDL file within the parent IDL file. The following example shows how to include the fragment.xml file within the parent.adr file.
/*fragment.xml*/
<?xml version="1.0" encoding="UTF-8"?>
<fragment xmlns="https://xmlns.oracle.com/radadr">
<version major="1" minor="0"/>
<para>
Paragraph 1
</para>
<para>
Paragraph 2
</para>
</fragment>
/*parent.adr*/
<?xml version="1.0" encoding="UTF-8"?>
.
.
.
.
<?include href="fragment.xml" major="1" minor="0"?>The <?include ?> processing instruction has the following mandatory attributes:
-
href -
Path to the included file.
-
major -
Expected major version of the included fragment.
-
minor -
Expected minor version of the included fragment
Version checking provides a warning in case of minor version mismatch and fail with an error in case of major version mismatch.
Note:
You cannot use the standardxi:include directive to include IDL files.