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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/ndgCommon/trunk/ndg/common/xmldb/xquery/dif.xq@4938
Revision 4938, 491 bytes checked in by cbyrom, 11 years ago (diff)

Update xqueries:

  • make more precise to improve search performance
  • add in full paths to libs to ease use in eXist
  • create new xquery for searching for DIF docs
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 := 'LocalID';
5declare variable $repositoryIdentifier as xs:string := 'RepositoryID';
6for $DE in collection($targetCollection)/DIF[Entry_ID=concat($repositoryIdentifier,':DIF:',$localIdentifier)] return $DE
Note: See TracBrowser for help on using the repository browser.