
Figure 6.10: XMetaL, a WYSIWYG editor
XSLFO
CSS is a simple and efficient styling mechanism. However, it is limited to
styling a document, it cannot reorganize or otherwise process them. CSS
cannot build a table of contents or extract an index as XSLT.
XSLT and CSS
Nothing prevents you from combining XSLT with CSS. Listing 6.5 shows
how an XSLT style sheet can attach a CSS style sheet to a document and
create a table of contents in XML. Figure 6.11 shows the result in a
browser.
Listing 6.5: XSLT Style Sheet
<?xml version=”1.0” encoding=”ISO-8859-1”?>
<xsl:stylesheet
xmlns:xsl=”http://www.w3.org/1999/XSL/Transform/”>
<xsl:template match=”/”>
<xsl:processing-instruction ...