RE: How to add HTML code to variables

Subject: RE: How to add HTML code to variables
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Mon, 7 Feb 2000 12:20:30 -0700
>   <xsl:template name="TableRow">
>     <tr>
>       <td><xsl:value-of select="$label"/></td>
>     </tr>
>   </xsl:template>

xsl:value-of creates a single text node in the result tree. If $label is a
result tree fragment (yours is), then the text node that is created will
contain the concatenation of all the text nodes in the fragment.

When you set $label to be the result tree fragment,

It is a node structure (not counting namespace nodes):

  element 'b'
   |___text 'Hello'

It is *not* the character sequence
< b > H e l l o < / b >

You will get the results you want if you simply replace xsl:value-of with

 XSL-List info and archive:

Current Thread