xsl-list
[Top] [All Lists]

[xsl] xsl:copy and disable-output-escaping

2008-10-07 03:59:51
Hi,

I'm using Saxon-B 9.0.0.6. I've following XSL-Example:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0">
   <xsl:template match="/">
<xsl:variable name="test"><xsl:text disable-output-escaping="yes"><![CDATA[<b>5</b>]]></xsl:text></xsl:variable>
       <xsl:copy-of select="$test"></xsl:copy-of>
   </xsl:template>
</xsl:stylesheet>

The output of $test in any browser is <b>5</b> but I want that the number 5 is bold. If I only use
<xsl:text disable-output-escaping="yes"><![CDATA[<b>5</b>]]></xsl:text>
it works. It also works using Xalan 2.70 processor. Can somebody help me?

That's only a example which shall explain my problem. I know that I could write <b>5</b> without <xsl:text> and without CDATA.

Thx Walter

ps: sorry for my bad english

--~------------------------------------------------------------------
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>