Subject: Re: [xsl] redundancy in string(number(current())) = 'NaN' ?? From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx> Date: Wed, 11 Jun 2003 17:00:38 -0400 (EDT) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] redundancy in string(numb, G. Ken Holman | Thread | [xsl] Announcement : XML Appliance , Ritu |
Re: [xsl] Processing a <br> in XSL-, J.Pietschmann | Date | [xsl] Announcement : XML Appliance , Ritu |
Month |