source: ndgCommon/trunk/ndg/common/xmldb/xquery/dif.xq @ 4968

Subversion URL:
Revision 4968, 400 bytes checked in by cbyrom, 11 years ago (diff)

Remove use of concat function in xqueries - to vastly speed them up

  • by a factor of about 100.
1(: Return a specific DIF document when TargetCollection and LocalID are overwritten :)
2declare default element namespace '';
3declare variable $targetCollection as xs:string := 'TargetCollection';
4declare variable $localIdentifier as xs:string := ':RepositoryID:DIF:LocalID';
5for $DE in collection($targetCollection)/DIF[Entry_ID=$localIdentifier] return $DE
Note: See TracBrowser for help on using the repository browser.