[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl:variables

Subject: xsl:variables
From: "Joerg M. Colberg" <joerg.colberg@xxxxxxxxxxx>
Date: Fri, 18 May 2001 16:57:20 -0400
laquo xsl
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">&amp;laquo;</xsl:text>
    </xsl:variable>
    <xsl:value-of select="$display"/>

2)  <xsl:text disable-output-escaping="yes">&amp;laquo;</xsl:text>

Whereas code 2) results in the output "&laquo;", code 1) gives
"&amp;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@xxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.