Marc,

CDATA does matter for _INPUT_ only - its content is not parsed. Hence &
causes a parser error, while <![CDATA[&]]> is fine. It has nothing to do with
_OUTPUT_.

Characters are escaped according to the output method or the
disable-output-escaping attribute of xsl:text or xsl:value-of elements.

To leave your ampersand unparsed and unescaped, use
<xsl:text disable-output-escaping="yes"><![CDATA[&]]></xsl:text> or
<xsl:output method="text">

Regards,
Petr

Marc Höper wrote:

> Hi,
>
> why does sabcmd convert <![CDATA[&]]> to "&amp;"? I thought characters in
> CDATA are left unchanged.
>
> Greetings,
>
> Marc
>
> --
> This system is airconditioned, do not open windows.

--
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com


Reply via email to