|
Generating a Table of Contents as a matter of fact is a very good examle why CSS on it's own is not better.
The example relies on the TOC being already present in the input file (in this case, the WebArch document's HTML version) -- thus, it doesn't generate it, but merely styles it. This may be acceptable for many (X)HTML documents and some custom XML formats that already contain a TOC, but in general when XML is used for document markup, people will expect that the TOC is automatically generated from the document itself (see, for instance, RFC2629's XML format).
That being said, the test version of Prince is really useful for people who want to better support paged media in their CSS (I just fixed some aspects of rfc2629.xslt).
Julian
|