xsl-list
[Top] [All Lists]

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

2005-03-29 07:17:50
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
Götzens]]></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 Götzens
        
However, if the xml data is removed of its <![CDATA
option, Eg:

<AccomUnitName
StrippedName="aparthotel_g__246_tzens">Aparthotel
Götzens</AccomUnitName> 

then Iam getting the correct output: 
Aparthotel Götzens

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>