3. include
Prev | Chapter 4. Reference | Next

## 3. include

    <include
      location = anyURI
    />

Include all elements contained in specified user interface specification file in current file.

The URI found in the `location` attribute may be resolved using XML catalogs.

Example 1:

    <include location="common_parts.xxe_gui" />

If the file containing the above snippet is `/home/john/.xxe5/addon/gui/customize.xxe_gui`, the included file is then `/home/john/.xxe5/addon/gui/common_parts.xxe_gui`.

Example 2:

    <include location="xxe-gui:app/Professional.xxe_gui" />

If the code of the XML editor is found in `/opt/xxe/bin/xxe.jar`, the included file is `jar:file:/opt/xxe/bin/xxe.jar!/gui/app/Professional.xxe_gui` because XXE dynamically adds the following rule to its XML catalog:

    <rewriteURI uriStartString="xxe-gui:"
                rewritePrefix="jar:file:/opt/xxe/bin/xxe.jar!/gui/" />

Prev | Up | Next
2. command | Home | 4. layout