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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/ndgCommon/trunk/ndg/common/xmldb/xquery/dif.xq@4968
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.
Line 
1(: Return a specific DIF document when TargetCollection and LocalID are overwritten :)
2declare default element namespace 'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/';
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.