ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

Re: expression syntax

Subject: Re: expression syntax
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 15 Nov 2004 14:10:05 GMT
syntax m
> Yeah, the "2004-11-15" not being considered a number I knew, but without 
> referencing the spec I was unsure of the exact nature of the number 
> function and what the intended primary purpose was.
> 
> > ... which, BTW, doesn't compare true in any comparison with anything, 
> > including itself.
> 
> Wait, are you refering to attember a cast to a number and then 
> comparing?  Obviously if compared to another string of equal value it 
> would evaluate to true... or am I missing something that is important to 
> understand in the comparison of this particular string?

yes the string is equal to itself but 
number("2004-11-15")
 is not equal to 
number("2004-11-15")

as they are both NaN and NaN compares false with everything (with any
comparison operator).  This is why one way of testing if @foo contains a
numeric value is to test
test="number(@foo)=number(@foo)"

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.