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

RE: Accessing /ROOT/NODE's CDATA content

Subject: RE: Accessing /ROOT/NODE's CDATA content
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 23 Oct 2000 11:57:31 +0100
node cdata
> 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

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.