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

Re: xsl Greater than and Less than.

Subject: Re: xsl Greater than and Less than.
From: Brook Ellingwood <brook@xxxxxxxxxxx>
Date: Mon, 06 Oct 2003 10:29:52 -0700
xsl greater than
If I can interject here, exactly how strings are compared in XSL 1.0 has
been an area of some confusion for me. Doug Tidwell's O'Reilly book states:

"If both objects are strings: Then they are equal if their Unicode
characters are identical. For less-than and greater-than comparisons, the
character codes are compared."

I've been told by people at Microsoft that this interpretation of the spec
is wrong but that early versions of MSXML (not sure which ones) used this
same mistaken interpretation, but MSXML4 doesn't. At the time, I tried to
figure it out what the spec was saying for myself, but didn't get very far
-- I was a bit out of my element at that point. It sounds like this agrees
with what Michael is saying.

-- Brook


> From: "Michael Kay" <mhk@xxxxxxxxx>
> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Date: Mon, 6 Oct 2003 16:46:31 +0100
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Subject: RE:  xsl Greater than and Less than.
> 
> If I decode your message correctly, you are using whatever processor
> Microsoft Windows gives you. That's an XSLT 1.0 processor. With a 1.0
> processor, when you compare two strings using < or > they are converted
> to numbers, which in this case gives you NaN, and NaN<NaN is always
> false.


 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.