Re: [xsl] Storing and retrieving html tags in a variable

Subject: Re: [xsl] Storing and retrieving html tags in a variable
From: Bill Keese <billk@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Sep 2003 14:20:09 +0900
The HTML tag is stored in the variable, but <xsl:value-of> strips it out when printing it. You want something like <xsl:copy-of select="$doofus"/>.

Bill

Peter Hollingsworth wrote:

This doesn't seem to work:
  <xsl:variable name="doofus">
    <a href="doofus.html">click to go to doofus</a>
  </xsl:variable>
  <xsl:value-of select="$doofus"/>

The resulting output is just "click to go to doofus", not
"<a href="doofus.html">click to go to doofus</a>."

Any way to store html tags in a variable,
or to accomplish this by some other means?

--Peter



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



Current Thread