xsl-list
[Top] [All Lists]

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

2003-06-11 14:00:38
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