[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Accessing /ROOT/NODE's CDATA content
> 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
|
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
|