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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/xquery/MDIPList.xq@3841
Revision 3841, 450 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 
1declare default element namespace 'http://www.oceannet.org/mdip/xml';
2declare variable $targetCollection as xs:string := 'TargetCollection';
3for $DE in collection($targetCollection)/Metadata/DatasetIdentifier
4let $f:=util:document-name($DE)
5return
6<dgMetadataRecord><repositoryID>{string($DE)}</repositoryID>
7    <fileName>{util:document-name($DE)}</fileName>
8    <created>{xmldb:created(util:collection-name($DE),$f)}</created>
9</dgMetadataRecord>
Note: See TracBrowser for help on using the repository browser.