|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: CDATA - Can I have XML ?
Hi,
> Is it possible possible to parse the XML data which is
> under CDATA tag in
> a XSL?
You mean *inside* CDATA section, not *under* as in follows in document order?
Anyhow - No. Use an extension funtion (Saxon has one, I believe) to parse the text into a node-set, or use e.g. something like this
<xsl:variable name="parsed-cdata" select="document(concat('http://localhost/foo?data=', element-that-contains-the-xml))" />
where foo returns the contents of data parameter with MIME-type text/xml, or use e.g. sed to remove the CDATA section delimiters, or just fix the source XML as if your data is inside a CDATA section, it's just text, not XML markup.
Cheers,
Jarno - Delerium: Koran
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
|

Cart








