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

RE: CDATA in XML->XML transformation

Subject: RE: CDATA in XML->XML transformation
From: "Casadome, Francisco Javier" <Francisco.Casadome@xxxxxxxxxxxxxx>
Date: Tue, 25 Sep 2001 19:43:37 +0200
enable output escaping
Hi again,

hmmm...
I guess the enable-output-escaping is parser dependant.
I works for msxml3, but I see you are using some kind of java parser.
I'll let someone more informed answer your question

Regards,
Frank.

-----Original Message-----
From: me [mailto:info@xxxxxxxxxxxxx]
Sent: martes, 25 de septiembre de 2001 19:13
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  CDATA in XML->XML transformation


hi frank

this didn't help either.

the output is now:

<solution><?javax.xml.transform.disable-output-escaping ?>&lt;![CDATA[<
?javax.xml.transform.enable-output-escaping ?>this is a <i>nice</i> test<?
javax.xml.transform.disable-o
utput-escaping ?>]]&gt;<?javax.xml.transform.enable-output-escaping ?
></solution>

as i need to have a valid CDATA section after the tranformation this is 
not of much use...

cheers

Thomas

> 
> Try this:
> 
>    <xsl:template match="Action">
>       <solution>
> 		<xsl:text
> disable-output-escaping="yes"><![CDATA[</xsl:text>
> 		<xsl:apply-templates select="text()|i|b" />
> 		<xsl:text disable-output-escaping="yes">]]></xsl:text>
> 	</solution>
>    </xsl:template>
> 
> Cheers,
> Frank.
> 
> -----Original Message-----
> From: me [mailto:info@xxxxxxxxxxxxx]
> Sent: martes, 25 de septiembre de 2001 18:20
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  CDATA in XML->XML transformation
> 
> 
> hi list
> 
> i came across the following problem: i need to transform an XML file
> into
> a different XML file. one element needs to be defined as CDATA in the 
> second XML file.
> 
> right now i got
> 
>    <xsl:template match="Action">
>       <solution><xsl:apply-templates select="text()|i|b" /></solution>
>    </xsl:template>
> 
> which produces an output like
> 
>    <solution>this is a <i>nice</i> test</solution>
> 
> but now i need the output to be a CDATA section, as i don't want the 
> <i></i> part being parsed further, eg the output must look like 
> 
>    <solution><![CDATA[this is a <i>nice</i> test]]></solution>
> 
> right now i got no clue whatsoever how to include "<![CDATA[" and "]]>"
> through the XSL file...
> 
> any help is very appreciated!
> 
> thanks
> 
> Thomas
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.