|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XML pretty printing in HTML
> Here's a version of the above stylesheet (credits go to Jonathan Marsh > at Microsoft for writing the original!) which runs cleanly in XT. > A quick hack job to get it to run, but should get the > thought process started... Two oddities in this stylesheet. (1) it attempts a match on the xml-declaration by treating it as a pi() node. I don't think the xml-declaration is a processing instruction. (What's more, it treats the things inside the xml-declaration as attributes! Elegant perhaps, but correct? - no) (2) it attempts a match on a cdata() node. I don't know what standard this comes from and I'm surprised xt doesn't reject it. There were a couple of features I had to change to make it work with SAXON: both documented restrictions. One is that SAXON doesn't handle pi() and comment() nodes, the other is that it doesn't handle wildcard name matches of the form xml:* or xsl:*. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








