Subject: RE: Accessing /ROOT/NODE's CDATA content From: Kay Michael <Michael.Kay@xxxxxxx> Date: Mon, 23 Oct 2000 11:57:31 +0100 |
> At the moment my CDATA section appears to > be accessible only through the text() function > - is that as it should be? The XSLT/XPath specs take the view that CDATA sections are a purely lexical device, just like entity references, the logical tree structure is what you get after expanding the CDATA sections. The use of CDATA, or any other device, to embed a marked-up HTML document within an XML document is something the XSLT standard doesn't handle particularly well. If you want to pass it through transparently, you can achieve that with disable-output-escaping="yes". If you want to process the embedded document's structure, you need to call out to an external function that parses the text and returns it as a tree. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Accessing /ROOT/NODE's CDATA conten, Lee Goddard | Thread | unknown element selection (parent i, Rob van der Zeijden |
Re: Simple XSL question, Rob van der Zeijden | Date | Re: mathml xsl stylesheets?, STENZEL |
Month |