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:

>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/>
     <one>$a == $a</one>
     <two>$a == $b</two>

Here are the results:

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

>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
>And, it's difficult to identify all nodes efficiently if there happened
>update of XML Repository.

I agree.



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

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