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

cdata-section-elements - not wrapping real xml in cdat

Subject: cdata-section-elements - not wrapping real xml in cdata markers
From: "Abie Hamaoui" <ahama5@xxxxxxxxxxx>
Date: Mon, 10 Nov 2003 19:58:33 +0000
cdata section elements
hello,
I am trying to certain elements in my output xml wrapped in cdata markers, so I'm trying to use cdata-section-elements="myElement".
well it turns out that when the text in the element is not valid xml, it gets wrapped in the cdata markers just fine. but when the "text" in the element is valid xml, it does not get wrapped up. this is a problem for me, b/c then it means that when in the next stage my output xml is processed, doing an "xsl:value-of" on myElement will not yield the text that I want to be there.


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.)

so the question is, is there a way to wrap *everything* inside of an element in cdata markers, including child xml?

thanks.
abie

_________________________________________________________________
MSN Shopping upgraded for the holidays! Snappier product search... http://shopping.msn.com



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-2011 All Rights Reserved.