Content of this directory:
--------------------------
-topic-maker-chunk.xsl - stylesheet to modularize an existing document.
+topic-maker-chunk.xsl - stylesheet to modularize an existing DB5 document.
topic-maker.xsl - imported by topic-maker-chunk.xsl.
assemble.xsl - stylesheet to process an <assembly> into a document.
The toolkit consists of an assemble.xsl XSL stylesheet
to process a DocBook <assembly> element to convert it
-to an assembled DocBook document ready to be formatted.
+to an assembled DocBook 5 document ready to be formatted.
This stylesheet will enable users to structure a book from
modular files.
To create an assembly and topic files from a book or article document
=======================================================================
-If you have an existing DocBook book or article document,
+If you have an existing DocBook 5 book or article document,
you can convert it to an assembly and a collection of
-modular topic files.
+modular topic files. If you want to convert a DocBook 4
+document, you must first convert it to version 5.
-For example, to disassemble a book document named book.xml:
+For example, to disassemble a DocBook 5 book document named book.xml:
xsltproc --xinclude \
--stringparam assembly.filename myassembly.xml \
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
- xmlns:d="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://docbook.org/ns/docbook"
exclude-result-prefixes="exsl d xlink"
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:d="http://docbook.org/ns/docbook"
xmlns="http://docbook.org/ns/docbook"
version="1.0"
exclude-result-prefixes="exsl">
<xsl:value-of select="$root.resourceref"/>
</xsl:attribute>
- <xsl:copy-of select="($root/d:title | $root/d:info/d:title)[1]"/>
+ <xsl:copy-of select="($root/title | $root/info/title)[1]"/>
<!-- Put the title and info stuff in a content-only module -->
<module resourceref="{$root.resourceref}{$root.id.suffix}" contentonly="true"/>
</xsl:copy>
</xsl:template>
-<xsl:template match="d:preface|d:chapter|d:appendix|d:section|d:article">
+<xsl:template match="preface|chapter|appendix|section|article">
<xsl:variable name="element.name">
<xsl:call-template name="element.name"/>
</xsl:variable>