[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Template-matching nodes from input vs nodes in va
Jorge . chocolate.camera@xxxxxxxxx wrote:
And yet, indeed as per your answers, if I query the position of that node, the value returned is 1 instead of 3: If you look at http://www.w3.org/TR/xpath20/#id-path-expressions then you see that for E1/E2 (where in your case E1 is $FOO[position() eq 3] and E2 the position() function call) it says that first E1 is evaluated and then "Each node resulting from the evaluation of E1 then serves in turn to provide an inner focus for an evaluation of E2". So doing E1/position() always (as long as E1 evaluates to a sequence of nodes) returns 1 as the context size is 1.
|
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
|