OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS