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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/xquery/DIFList.xq@3841
Revision 3841, 537 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(: This is a DIF listing query for TargetCollection - returns EntryIDs and the files in which they exist :)
2declare default element namespace 'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/';
3declare variable $targetCollection as xs:string := 'TargetCollection';
4for $DE in collection($targetCollection)/DIF/Entry_ID let $f:=util:document-name($DE) return
5<dgMetadataRecord>
6    <repositoryID>{string($DE)}</repositoryID>
7    <fileName>{$f}</fileName>
8    <created>{xmldb:created(util:collection-name($DE),$f)}</created>
9</dgMetadataRecord>
Note: See TracBrowser for help on using the repository browser.