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

Re: cdata-section-elements - not wrapping real xml in

Subject: Re: cdata-section-elements - not wrapping real xml in cdata markers
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 10 Nov 2003 23:46:24 GMT
xml cdata section elements
> I guess it's happening b/c I only told the processor that the text of 
> myElement itself should be cdata, but once there's valid xml inside (ie. 
> more elements), then it's a new element.  (correct me if I'm wrong.)

not a new element, but the cdata-section hint only applies to text
nodes, clearly you can't have elements inside a CDATA section, that's
their whole point.

If you are trying to produce 
<abc><![CDATA[<x>aaa</x>]]></abc>
then note that this is the same as
<abc>&lt;x&gt;aaa&lt;/x&gt;</abc>
so you need to create an abc with just that single text node in your
stylesheet, and then use the cdata-elements to request that it be output
using CDATA rather than &lt; (although it shouldn't make any difference
to the following application which form is used)

David



-- 
http://www.dcarlisle.demon.co.uk/matthew

 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.