[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Comparing a value

Subject: Comparing a value
From: Hubert Thomaz Neto <hubert.thomaz@xxxxxxxxxx>
Date: Mon, 26 Nov 2001 17:52:03 -0300
comparing a value in xsl
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.