Subject: RE: [xsl] Trouble with namespaces and running identity transform on XHTML From: "James J. Ramsey" <jjramsey_6x9eq42@xxxxxxxxx> Date: Fri, 12 Mar 2004 10:05:59 -0800 (PST) |
--- 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Trouble with namespaces a, Michael Kay | Thread | Re: [xsl] Trouble with namespaces a, Wendell Piez |
RE: [xsl] xsl and xml CDATA or Not , John Hamman | Date | RE: [xsl] xsl and xml CDATA or Not , John Hamman |
Month |