xsl-list
[Top] [All Lists]

Re: Storing and retrieving html tags in a variable

2003-09-11 22:20:09
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