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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/xquery/DIFList.xq@3163
Revision 3163, 536 bytes checked in by lawrence, 12 years ago (diff)

Fixes for creation time of exist directory contents

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.