Re: node identity in XQuery
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format