You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jean-Jacques Borie <jj...@businesspace.com> on 2000/10/24 18:59:33 UTC

Problem with CDATA section

Hi all,

I have a xml file with cdata section.
<myelement>
<![CDATA[
my text <BR> with text with special char &&&
]]>
</myelement>

I try to use <xsl:output cdata-section-elements="mylement">

And he display : 
my text &lt;BR&gt; with text with special char &amp;&amp;&amp;

Or i would like to display : 
my text <BR> with text with special char &&&

I m using xalan 2.0 java .
What's wrong ???

RE: Problem with CDATA section

Posted by James Grimes <ja...@itsmobile.com>.
try 
   <xsl:text disable-output-escaping="yes">
before doing the output

JAmes.

> -----Original Message-----
> From: Jean-Jacques Borie [mailto:jjborie@businesspace.com]
> Sent: 24 October 2000 18:00
> To: 'xalan-dev@xml.apache.org'
> Subject: Problem with CDATA section
> 
> 
> Hi all,
> 
> I have a xml file with cdata section.
> <myelement>
> <![CDATA[
> my text <BR> with text with special char &&&
> ]]>
> </myelement>
> 
> I try to use <xsl:output cdata-section-elements="mylement">
> 
> And he display : 
> my text &lt;BR&gt; with text with special char &amp;&amp;&amp;
> 
> Or i would like to display : 
> my text <BR> with text with special char &&&
> 
> I m using xalan 2.0 java .
> What's wrong ???
>