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

Creating a CDATA tag in output XML

Subject: Creating a CDATA tag in output XML
From: "Yashdeep Patil" <yashdeep@xxxxxxxxxxx>
Date: Thu, 8 Apr 2004 16:09:24 +0530
cdata tag
Thanks Jarno and Michael for your answers to my earlier problem on retaining
markup in the output XML. I have solved the problem with
disable-output-escaping. I know the structure should not have contained the
markup in CDATA, but the structure in generic in nature, and cannot be
changed for this instance.
I have another problem where I need to output a CDATA tag in a resultant XML

My input XML looks like:
<a><b>123</b></a>

and my XSL snippet looks like :
<xsl:element name="x">
    <xsl:copy-of select="."/>
 </xsl:element>

Now I would like my resultant XML output to look like:
<x >
    <![CDATA[<a><b>123</b></a>]]>
</x>

Is this possible using XSL.
Thanks
Yashdeep Patil.

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.