This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Variable containing multiple nodes



On Fri, Jun 01 '01 at 17:07, Theodore Weatherly wrote:
> 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 you asked it to do so ;-)

You might want to try <xsl:copy-of select="$str"/> to get your desired
result.

    Goetz.

PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]