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

RE: (newby) extraction of CDATA nodes to different XML

Subject: RE: (newby) extraction of CDATA nodes to different XML files
From: "Kirkham, Pete (UK)" <pete.kirkham@xxxxxxxxxxxxxx>
Date: Fri, 01 Apr 2005 10:11:20 +0100
sequence of cdata sections
CDATA sections are un-escaped character data, not elements.

They are transparent to XSLT applications, so

<foo><![CDATA[.....snip.....]]></foo>

and

<foo>.....snip.....</foo>

are logically the same.

Use the normal text selection mechansim to get the equivalent text content.

<value-of select="foo"/>

If you have a sequence of CDATA sections, you won't be able to use XSLT to
separate them, as

<foo><![CDATA[text from section one]]><![CDATA[text from section two]]></foo>

and

<foo>text from section onetext from section two</foo>

are logically the same.


Pete

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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.