This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:variables
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] xsl:variables
- From: "Joerg M. Colberg" <joerg dot colberg at econovo dot com>
- Date: Fri, 18 May 2001 16:57:20 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi all,
I have a problem with xsl:variables. Have a look at the following two
snippets of code:
1) <xsl:variable name="display">
<xsl:text disable-output-escaping="yes">&laquo;</xsl:text>
</xsl:variable>
<xsl:value-of select="$display"/>
2) <xsl:text disable-output-escaping="yes">&laquo;</xsl:text>
Whereas code 2) results in the output "«", code 1) gives
"&laquo;". In a similar fashion, the code snippets
3) <xsl:variable name="display2">
<xsl:text disable-output-escaping="yes">
<![CDATA[
<div align="center">
<img src="http://www.mulberrytech.com/image/sberry2.gif"/>
</div>
]]>
</xsl:text>
</xsl:variable>
<xsl:value-of select="$display2"/>
4) <xsl:text disable-output-escaping="yes">
<![CDATA[
<div align="center">
<img src="http://www.mulberrytech.com/image/sberry2.gif"/>
</div>
]]>
</xsl:text>
give different results, too. Why is that? Why doesn't the escaping
of special characters work any longer if I store the stuff in an
xsl:variable? Or how can I solve the problem?
Thanks a lot for any idea on this!
- Joerg
Dr. Joerg M. Colberg
Econovo Software, Inc
joerg.colberg@econovo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list