Hi all,
I can't get my ahead around this. I've got an XSLT transformation file which needs to check the value of a variable and based on whether it is greater or less than 0, format the result in a specific way.
So very simply:
<code>
<xsl:if test="$variable > '0'">
<td bgcolor="RED">Result1</td>
</xsl:if>
</code>
That works. However, if i change the comparison operator from > to < then the transformation files. Checking the file in XML Spy, it says the document is not well formed! If i change the operator to an = sign, it also works. So it's only the < less than operator that doesn't seem to work. Why??? Can anyone help?
Thanks
Divinyl
I can't get my ahead around this. I've got an XSLT transformation file which needs to check the value of a variable and based on whether it is greater or less than 0, format the result in a specific way.
So very simply:
<code>
<xsl:if test="$variable > '0'">
<td bgcolor="RED">Result1</td>
</xsl:if>
</code>
That works. However, if i change the comparison operator from > to < then the transformation files. Checking the file in XML Spy, it says the document is not well formed! If i change the operator to an = sign, it also works. So it's only the < less than operator that doesn't seem to work. Why??? Can anyone help?
Thanks
Divinyl