[xsl] xsl:variable containing xsl:element

Subject: [xsl] xsl:variable containing xsl:element
From: "MUELLER,RAINER (HP-Switzerland,ex1)" <rainer_mueller@xxxxxx>
Date: Fri, 26 Jan 2001 15:01:30 +0100
Hi,
I have the following problem when assigning a string to a variable. The
string contains HTML code in between.

<xsl:template match="Language/*">
  // This works fine - displaying the number bold
  This is my account <xsl:element name="b">123.456</xsl:element> now closed
  
  // This doesn't work
  <xsl:variable name="wholestring">This is my account <xsl:element
name="b">123.456</xsl:element> now closed</xsl:variable>
  <xsl:value-of select="string($wholestring)"/>
</xsl:template>



Any ideas? Thanks a lot,
Rainer

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


Current Thread