This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Comparing a value
- From: Hubert Thomaz Neto <hubert dot thomaz at gvt dot net dot br>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 26 Nov 2001 17:52:03 -0300
- Subject: [xsl] Comparing a value
- Reply-to: xsl-list at lists dot mulberrytech dot com
I got the following source for my
XSL:
<xsl:choose>
<xsl:when test = ".[. $eq$ '178003']"
>RwValThresholdAgent</xsl:when>
<xsl:otherwise>RwValTlAgent</xsl:otherwise
></xsl:choose
where the RwValThresholdAgent just format my cell result turning it into a
RED THRESHOLD cell.
If I use the $eq$ operator and then put the exact value between '', my
transformation
goes well.
But if I use the $gt$ operator it seems not to be working as it should. For
example,
suppose my whole grid has no other values GREATER THAN '170000', only the
'178003' and '185000' cells.
If I use the $gt$ it formats all the cells that have a value from 2 to 9
(for example 25000, 70000,
45000, 83000 and so on, which are smaller than '170000') making them RED.
But the values of
'178003' and '185000' don?t get to be formatted in RED, which is what I?m
expecting to do, and not format the
other cells.
Does anyone know why this happens ???
Thanks,
Hubert
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list