Die Umwandlung in XHTML geht im Prinzip genauso vonstatten wie die Umwandlung in HTML. Die korresponierenden Stylesheets sind xhtml/docbook.xsl und xhtml/chunk.xsl.
Beispiel 3.5. Umwandlung von DocBook in XHTML mit Saxon
lars@notebook doctutorial $ java -jar /opt/saxon/saxon.jar vortrag.xml \ /opt/docboook-xsl/xhtml/chunk.xsl Writing ch01s02.html for section Writing ch01s03.html for section Writing ch01s04.html for section Writing ch01s05.html for section Writing ch01.html for chapter Writing ch02s02.html for section Writing ch02s03.html for section Writing ch02s04.html for section Writing ch02s05.html for section Writing ch02s06.html for section Writing ch02s07.html for section Writing ch02.html for chapter Writing ld-d0e4785.html for imagedata Writing ch03s02.html for section Writing ch03s03.html for section Writing ch03s04.html for section Writing ch03s05.html for section Writing ch03s06.html for section Writing ch03s07.html for section Writing ch03s08.html for section Writing ch03s09.html for section Writing ch03.html for chapter Writing ch04s02.html for section Writing ch04s03.html for section Writing ch04s04.html for section Writing ch04s05.html for section Writing ch04s06.html for section Writing ch04s07.html for section Writing ch04s08.html for section Writing ch04.html for chapter Writing apa.html for appendix Writing go01.html for glossary Writing ix01.html for index Writing bi01.html for bibliography Writing index.html for book lars@notebook doctutorial $
In diesem Beispiel wurde die Ausgabe auf mehere Dateien aufgeteilt.