<!--
XML documentation system
Original author : Arjen Baart - arjen@andromeda.nl
- Version : $Revision: 1.2 $
+ Version : $Revision: 1.3 $
-->
<chapter>
</para>
<para>
To include another XML file in your root document, use the
-<strong>include</strong> element with a single attribute to specify
+standard XML <strong>XInclude</strong> system with a single attribute to specify
the name of the file to be included.
+Other attributes, as well as the <strong>fallback</strong> element,
+are of course supported as well.
+Refer to the <reference href='http://www.w3.org/TR/2006/REC-xinclude-20061115/'>
+XML Inclusions</reference> standard for more information.
For example, this chapter is in a file called "multifiles.xml", which
is included in the main document with:
+</para>
+
<verbatim>
-<include href="multifiles.xml"/>
+<xi:include href="multifiles.xml"
+ xmlns:xi="http://www.w3.org/2001/XInclude"/>
</verbatim>
-There is one restriction to including other files: The included files
-must be valid XML files as well.
-It is not possible to include other kinds of files, such as raw text
-or source code.
-So, the included XML file starts with the usual XML declaration, but has
+
+<para>
+Remember to put the <strong>xi:include</strong> in the proper namespace.
+Normally, the included files must be valid XML files as well.
+To include other kinds of files, such as raw text or source code, the attribute
+<strong>parse='text'</strong> must be added to the <strong>include</strong> element.
+When including another XML document, the included XML file starts with the
+usual XML declaration, but has
a different root element declared in the <!DOCTYPE...> declaration:
+</para>
<verbatim>
<?xml version="1.0"?>
</chapter>
</verbatim>
-</para>
</section>
<section>
<heading>Multiple output files</heading>