[xsl] disable-output-escaping don't work with CDATA spl chars (XSL)

Subject: [xsl] disable-output-escaping don't work with CDATA spl chars (XSL)
From: karl Rajangam <karl_rajangam@xxxxxxxxx>
Date: Tue, 29 Mar 2005 06:17:50 -0800 (PST)
Hi,

I coverting xml data (using xsl) to javascript array
format. The xml data have special char's & Iam using
disable-output-escaping="yes" while selecting the
values. 

Eg:
<AccomUnitName
StrippedName="aparthotel_g__246_tzens"><![CDATA[Aparthotel
Gvtzens]]></AccomUnitName>
	
and in xsl I use
<xsl:output method="text" encoding="UTF-8"/> 
to covert xml to javascript & 
	
<xsl:value-of select="AccomUnitName"
disable-output-escaping="yes"/>
		
results in:
Aparthotel Gvtzens
	
However, if the xml data is removed of its <![CDATA
option, Eg:

<AccomUnitName
StrippedName="aparthotel_g__246_tzens">Aparthotel
Gvtzens</AccomUnitName> 

then Iam getting the correct output: 
Aparthotel GC6tzens

My q's are
1) Why suing CDATA affect the display
2) How can I get correct answer with CDATA options (I
need to use CDATA to avoid other problems)

Thanks in advance
karl




		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

Current Thread