Modular documentation

  • document can be composed from smaller modules

  • very useful for modular and configurable system

  • can be combined with profiling

  • XInclude standard can be used for composition of final document

  • more flexible system called assemblies is being currently developed for DocBook V5.1

  • <?xml version='1.0' encoding='utf-8'?>
    <book xmlns="http://docbook.org/ns/docbook" version="5.0" 
          xml:lang="en"
          xmlns:xi="http://www.w3.org/2001/XInclude">
    <title>Modular document</title>
    
    <xi:include href="preface.xml"/>
    <xi:include href="chapter1.xml"/>
    <xi:include href="chapter2.xml"/>
    
    </book>