DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8805>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8805

position-predicates of descendant-axis





------- Additional Comments From [EMAIL PROTECTED]  2002-05-07 16:29 -------
additional comment from Wendell Piez at the Mulberry XSL-list
(http://sources.redhat.com/ml/xsl-list/2002-05/msg00279.html):


(.//description)[$pos] is an expansion of

(./descendant-or-self::node()/child::description)[position()=$pos]
translates into English as

 From the context node, collect all descendant description elements (i.e. 
all description elements that are children of the context node or its 
descendants), and of that set take the one in $pos position in document order.

.//description[$pos] expands

./descendant-or-self::node()/child::description[position()=$pos]
translates as

 From the context node, collect all description elements that are children 
of the context node or its descendants, and take those that are in $pos 
position *as children of their parents* (i.e. among their siblings).

Note that the presence of the parentheses grouping operator in the first 
case is critical, since it collects all those children and filters them as 
a group; whereas in the second case, the predicate operates only on the 
last step, 'child::description[position()=$pos]'.

Reply via email to