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

Re: redundancy in string(number(current())) = 'NaN' ??

Subject: Re: redundancy in string(number(current())) = 'NaN' ??
From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Wed, 11 Jun 2003 17:00:38 -0400 (EDT)
Re:  redundancy in string(number(current())) = 'NaN' ??
On Wed, 11 Jun 2003, G. Ken Holman wrote:

> At 2003-06-11 16:38 -0400, Robert P. J. Day wrote:
> >   //sales[string(number(current()))='NaN']
> >
> >just to make sure, i'm assuming the "current()" part is
> >redundant, since number() will use the string-value of the
> >context node if there is no argument.  do i understand
> >that correctly?
> 
> No, I'm afraid you don't.  The current() function returns the node that was 
> the current node at the beginning of the XPath evaluation ... which could 
> be anywhere given this example XPath expression is starting at the root.

ah, got it.  i suspected there was something happening there i was
missing.

rday


 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.