XML technologies / DocBook / Generating (X)HTML / CSS formatting for (X)HTML

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

There are two ways to change the appearance of (X)HTML output:

The first method requires transforming the document again even when only its presentation changes.

This is why the recommended approach is Cascading Stylesheets, or CSS. These rules assign formatting to elements while preserving the underlying (X)HTML code. A reference to the CSS file is enough for the browser, although CSS can also be embedded. CSS has these advantages:

For further information beyond the scope of this section, see, for example, the books by Helmut Herold and Eric Meyer.

  

  

back to top