Sergey Ushakov asks:
>With Xalan-J if I get a filtered nodeset and start inspectings siblings, 
it
>seems that siblings are selected with regard of the original document 
tree
>rather than the filtered nodeset.
>Is it intended behavior or a bug?

It's not a FAQ, at least. Following-sibling is defined rather tersely in
part 2.2 of the XPath spec. What you really need, however, is the
definition of node-set in part 1. A node-set is an unordered collection of
nodes without duplicates, and that's what your for-each is iterating over.
Each time it makes a node the current node of the for-each, it is looking
at that node within the source tree for purposes of stepping along axes
such as following-sibling.
.................David Marston

Reply via email to