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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] node identity in XQuery

[ Lists Home | Date Index | Thread Index ]

At 01:39 PM 3/23/2002 +0900, takeha-e wrote:

>Hi.
>
>I tried some XQuery implementations(Kawa, MS XQuery Demo).
>But, node identity function (==, !==) has not been implemented yet.

It is implemented in Software AG's QuiP. Here's a query that uses it:

let $a := <foo/>
let $b := <foo/>
return
   <out>
     <one>$a == $a</one>
     <two>$a == $b</two>
   </out>

Here are the results:

   <out>
     <one>$a == $a</one>
     <two>$a == $b</two>
   </out>


>Is it difficult to implement node identity in XQuery data model?

That depends a lot on the underlying implementation. If nodes in the system 
used to implement it have identity, you simply use the identity of those 
nodes. If not, you need to impose identity.

>I think we need unique node identifiers for all nodes in large XML
>Repository.
>And, it's difficult to identify all nodes efficiently if there happened
>update of XML Repository.

I agree.

Jonathan





 

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

Copyright 2001 XML.org. This site is hosted by OASIS