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

RE: Comparison operator

Subject: RE: Comparison operator
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 22 Mar 2002 10:17:34 -0000
xslt comparison operator
> >
> > <xsl:if test="./mytag[. &gt; '0']">
>
> The problem is not the operator but the fact that '0' is a string. If
> you want to compare them as numbers, remove the quotes from the zero.

Either the processor is non-conformant, or this advice is wrong.

XSLT 1.0 always converts the arguments of the "<" operator to numbers before
doing the comparison. Therefore writing 0 rather than '0' should make no
difference.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 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.