Subject: Re: [xsl] document function cached? From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 07 Feb 2013 21:43:10 +0000 |
But position() would return a number and it seems such an obvious way to use it as an index...
1 returns a number as well, and [1] means [position()=1] given that any numeric expression is turned into a filter by testing against position().
You wanted to access the value of position() current before the xpath started but for that you have to do
as a function such as index-of (unlike a path step or filter0 does not locally redefine position().
are different as in the first position() refers to position in the sequence so the filter is position()=position() and always true in the second position() refers to a value set in an outer context.
-- google plus: https:/profiles.google.com/d.p.carlisle
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] document function cached?, Michel Hendriksen | Thread | Re: [xsl] document function cached?, Liam R E Quin |
Re: [xsl] document function cached?, Michel Hendriksen | Date | [xsl] Here's an online XSLT/XPath a, Costello, Roger L. |
Month |