[xsl] XSLT Hall of Shame entry -- DTD pretty printing

Subject: [xsl] XSLT Hall of Shame entry -- DTD pretty printing
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Thu, 09 Aug 2001 09:07:18 +1200
Hi folks,

Here's my entry to the (unofficial) XSLT Hall of Shame, for posterity. A set of
stylesheets that can "pretty print" the text of a DTD that has been preprocessed
by escaping all less-thans. I'm confident this must rank pretty highly amongst the
most inappropriate uses for XSLT out there.

The documentation and download is here:

http://www.physiome.org.nz/xslt_tools/dtd_pretty_printer/index.html

If you want to skip straight to some examples, here's the XHTML 1.0 Transitional
DTD as HTML and PDF (the latter generated from LaTeX)

http://www.physiome.org.nz/xslt_tools/dtd_pretty_printer/xhtml_1_transitional_dtd.html
http://www.physiome.org.nz/xslt_tools/dtd_pretty_printer/xhtml_1_transitional_dtd.pdf

The documentation (particularly the comments in the stylesheets themselves) are
somewhat sparse -- someday I may get around to adding more.

Note that an XML Pretty Printer is also available on this website -- it's similar to
Oliver Becker's (I think we were developing them at the same time), but mine has some
additional formatting features.

The terms of use are completely open, so feel free to go ahead and use these yourself.

If anyone's wondering "why?", these tools were developed as a means to decently document
another language I'm working on: CellML. The final version of the specification for that
will be out shortly. The current spec, from 18 May, is available in it's entirety here:

http://www.cellml.org/public/specification/cellml_specification.html

Enjoy,
Warren Hedley

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread