[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xsl-list
Subject:    Re: [xsl] Template-matching nodes from input vs nodes in variable based on their position
From:       "Michael Kay mike () saxonica ! com" <xsl-list-service () lists ! mulberrytech ! com>
Date:       2015-06-22 19:07:35
Message-ID: 20150622145952.38147 () lists ! mulberrytech ! com
[Download RAW message or body]


> 
> <xsl:sequence select="$FOO[position() eq 3]"/> → <page>Page number 3</page>
> 
> And yet, indeed as per your answers, if I query the position of that
> node, the value returned is 1 instead of 3:
> 
> <xsl:sequence select="$FOO[position() eq 3]/position()"/> → 1
> 
> which looks bizarre to me.


Given that an element can be a member of any number of different sequences, would you \
expect match="X[5]" to match an X element if it is the 5th item in any one of those \
sequences? That really would be bizarre.

Michael Kay
Saxonica
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/651070
or by email: xsl-list-unsub@lists.mulberrytech.com
--~--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic