XML technologies / DocBook / Generating (X)HTML / An example transformation / The document
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
We start with the following short document:
Example: pinguin.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.docBook.org/xml/4.5/docbookx.dtd"
<book lang="de">
<title>Über Pinguine</title>
<chapter>
<title>Anatomie und Aussehen</title>
<para>Der Größen- und Gewichtsunterschied der verschiedenen Pinguinarten ist beträchtlich, Körperbau und Gefieder sind in der Familie dagegen sehr homogen. [...]</para>
</chapter>
<chapter>
<title>Verbreitung</title>
<para>Pinguine leben in den offenen Meren der südlichen Hemisphäre. [...]</para>
</chapter>
<!-- ... -->
</book> For convenience, you will probably split large documents such as books into individual chapters. For guidance, see Modular documents.
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top