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

Subversion URL:
Revision 3163, 536 bytes checked in by lawrence, 13 years ago (diff)

Fixes for creation time of exist directory contents

1(: This is a DIF listing query for TargetCollection - returns EntryIDs and the files in which they exist :)
2declare default element namespace '';
3declare variable $targetCollection as xs:string {'TargetCollection'};
4for $DE in collection($targetCollection)/DIF/Entry_ID let $f:=util:document-name($DE) return
6    <repositoryID>{string($DE)}</repositoryID>
7    <fileName>{$f}</fileName>
8    <created>{xmldb:created(util:collection-name($DE),$f)}</created>
Note: See TracBrowser for help on using the repository browser.