This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Variable containing multiple nodes
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Variable containing multiple nodes
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Sat, 2 Jun 2001 12:40:36 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I have this XSL:
>
> <xsl:variable name="str">
> <FONT COLOR="#FF0000">Red</FONT>
> </xsl:variable>
> <xsl:value-of select="$str">
>
> Why does this output:
>
> Red
>
> and not:
>
> <FONT COLOR="#FF0000">Red</FONT>
>
Because <xsl:value-of> converts the result to a string.
Use <xsl:copy-of> instead.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list