[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML pretty printing in HTML

Subject: RE: XML pretty printing in HTML
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 9 Jul 1999 15:41:41 +0100
pretty print xml inside 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.