source: exist/trunk/xquery/moles.xq @ 3841

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/xquery/moles.xq@4326
Revision 3841, 601 bytes checked in by cbyrom, 11 years ago (diff)

Various updates to the xquery files - to remove usage of invalid specs
and dependency on obsolete function calls. Also add the inputParse_xquery_lib.xquery
file - referenced from the xquery files but not currently included in codebase.
NB, changes made to allow use of Saxon java library to do xqueries - to
remove the need for the discovery service eXist DB.

  • NB, also changes tested by comparing saxon transforms to eXist ones; these

were found to be identical.

Line 
1(: Return a moles document from TargetCollection conforming to RepositoryID and LocalID :)
2declare default element namespace 'http://ndg.nerc.ac.uk/moles';
3declare variable $targetCollection as xs:string := 'TargetCollection';
4declare variable $repositoryIdentifier as xs:string := 'RepositoryID';
5declare variable $localIdentifier as xs:string := 'LocalID';
6for $Moles in collection($targetCollection)/dgMetadata/dgMetadataRecord[dgMetadataID/schemeIdentifier='NDG-B0'
7and dgMetadataID/repositoryIdentifier=$repositoryIdentifier
8and dgMetadataID/localIdentifier=$localIdentifier]
9    return $Moles
Note: See TracBrowser for help on using the repository browser.