[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: <dalloro@xxxxxxxxx>
Date: Fri, 1 Apr 2005 11:21:28 +0200
getting cdata
Ok,

I've just checked out, each of my CDATA sections is contained into an
element that I can easily parse. Thanks!

I still have no idea on how to save the contents of those CDATA
sections (that is XML code itself) into separate files for each CDATA
section I encounter... I suppose it is a common issue in XSL
transformation, but I cannot find examples in my searches....

Any idea?

Thanks again for the explanation of the CDATA section... as far as I
can understand the use of those sections allow me to freely insert all
the raw data I need in the resulting XML (resulting from the XSL
transformation i mean...)

On Apr 1, 2005 11:11 AM, Kirkham, Pete (UK) <pete.kirkham@xxxxxxxxxxxxxx> wrote:
> 
> 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.