Re: [xsl] Wrapping content in a CDATA tag

Subject: Re: [xsl] Wrapping content in a CDATA tag
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 13 Feb 2009 17:35:42 +0100
Chad Chelius wrote:
I have an XSLT that is changing element names to match a specific schema. The schema requires that I wrap the content in a CDATA tag. Can anyone explain to me how I would do that?

Final XML needs to look like this
<field name="title">
<![CDATA[Hello World]]>
</field>

Use the cdata-section-elements="field" attribute on the xsl:output elements.



--


	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread