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

Re: Adding CDATA to the transformed XML

Subject: Re: Adding CDATA to the transformed XML
From: Julian Reschke <julian.reschke@xxxxxx>
Date: Wed, 12 Jan 2005 16:57:44 +0100
adding cdata
Bhaskar, Rajan wrote:
Does this mean we have to enter for all the values we need CDATA on. suppost i have for SenderFaxNumber and ReceiverFaxNumber should it be
like this
xsl:output cdata-section-elements="SenderFaxNumber"
xsl:output cdata-section-elements="ReceiverFaxNumber"


We have had situations in which the user by mistakes enters some special
characters and the xml parsing at the other end failed.

If you're producing XML via XSLT, there's no reason to specify CDATA at all. XSLT's XML output method will automatically escape all characters in text content that need to be escaped.


Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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.