Re: [xml-dev] XPath on sequences of nodes

From
David Carlisle <>
To
Date
2007-01-12T17:24:54Z
ID
<>
Thread
Re: [xml-dev] XPath on sequences of nodes
> For the life of me, I don't know what's happening. How can a variable  
> store 2 different results? I'd really appreciate it if someone could  
> give me a hint.

most operations on nodes, including / are defined to return their reults
in document order, with duplicates removed, so $x/. is one way to
reorder and de-duplicate a sequence for example.

You have $selectedSents/c so you reorder.

for $x in  $selectedSents return $x/c

would not reorder.

David