xsl-list
[Top] [All Lists]

Re: [xsl] Template-matching nodes from input vs nodes in variable based on their position

2015-06-22 14:00:06


   <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/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>