xsl-list
[Top] [All Lists]

Re: Adding CDATA to the transformed XML

2005-01-12 08:57:44
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--