RE: [xsl] question

Subject: RE: [xsl] question
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Fri, 5 Nov 2004 11:36:56 +0200
Hi,

> But I have another question in the XSL file,
>  <xsl:variable name="strColName"
>      select="<the value of string before ':'>"/> <- this would be "Rx
> 64b&lt; &lt;128b " according to my xml file
>  <col name="$strColName">
>      <xsl:value-of select="$strColVal"/> <the value of
> strColVal is "0">
> according to my xml file
>  </col>
>
> But in this format, I got an output of
>   <col name="$strColName">0</col>
>
> Is there a way that the output will become like this?
>   <col name="Rx 64b&lt; &lt;128b">0</col>

Use Attribute-Value Templates, see the XSLT spec or your favourite book.

Cheers,

Jarno

Current Thread