RE: Trouble with namespaces and running identity trans
--- Michael Kay <mhk@xxxxxxxxx> wrote: > I don't think there > is a reliable solution that is guaranteed to work on > every XSLT processor, > and that's as true of XSLT 2.0 as it is of 1.0. > Sadly, XHTML violates the > assumptions behind the Xpath data model by requiring > a specific (empty) > prefix. I've been looking back over the specs for XSLT 1.0 and 2.0, and the data models for XPath 1.0 and 2.0, and I'm not so sure the pessimism is warranted. As far as I can tell, it is perfectly possible to create an XSL 1.0 transform that writes a result tree whose namespace nodes have expanded names with an empty local part--a.k.a. the namespace prefix--and also perfectly possible to make an XSL 2.0 transform that writes a result tree whose namespace nodes have empty prefix properties. So it's possible to write a result tree that can be serialized as a valid XHTML document. The catch is that some parts of the XSLT specs give more freedom than others on what namespace nodes can be written to the result tree. __________________________________ Do you Yahoo!? Yahoo! Search - Find what you?re looking for faster http://search.yahoo.com 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