[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|