xsl-list
[Top] [All Lists]

RE: question

2004-11-05 02:36:56
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


<Prev in Thread] Current Thread [Next in Thread>