xsl-list
[Top] [All Lists]

RE: [xsl] position() inside a for x to y

2006-06-11 05:17:58
select="$colhead-size[position()]"/>

My question is: why do I have to save position() to a 
variable to use it properly in the for-each loop?

The context item, position, and size inside a predicate are different from
the values outside the predicate.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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