xsl-list
[Top] [All Lists]

Re: position() in xsl:for-each

2004-07-09 02:34:20
On Fri, 9 Jul 2004 10:10:02 +0100, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:


What puzzles me is that following-sibling::*[1] selects the next
element in the input tree, and not in the nodeset I select in the
for-each.

All axes always navigate around the original tree. The parent, siblings,
children, etc of a node are a fixed feature of that node, they don't
change depending on which node set you are considering.

Node sets are just unordered sets of nodes you can't navigate around
them using Xpath notation.

Thank you both!

Guess I'll have to read up on the definition of "context node" and nodesets.


-- 
Vidar S. Ramdal
"Fighting for peace is like fucking for virginity"


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