xsl-list
[Top] [All Lists]

Re: Adding CDATA to the transformed XML

2005-01-12 08:49:58
Tempore 16:24:28, die 01/12/2005 AD, hinc in xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Bhaskar, Rajan <RBhaskar(_at_)cvs(_dot_)com>:

 How to add CDATA to the transformed XML. Is there an option to set the
CDATA in XSL
<Message>
        <Header>
                <SenderFaxNumber><xsl:value-of
select="Store/FaxPhone"/></SenderFaxNumber>
        </Header>
</Message>

Hi,

Specify the 'cdata-section-elements' attribute.
e.g. <xsl:output cdata-section-elements="SenderFaxNumber"/>

regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Vincit omnia simplicitas
Keep it simple

--~------------------------------------------------------------------
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>
--~--