Product SiteDocumentation Site

4.3. Dividing a Document into Multiple Files with XIncludes

As a document grows, managing it as a single file becomes challenging. In addition, having multiple files compose a single document allows for some files to be reused between documents, reducing the overhead for a large documenatation package. Fortunately, DocBook supports including multiple file. To include an additional file into a document, refer to the following example:
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Included_File.xml" />
When the document is rendered, the included text will appear as if it were inserted entirely in the main file.