[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Comparing a value
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|