Changeset 3163 for exist/trunk/xquery


Ignore:
Timestamp:
18/12/07 16:08:55 (12 years ago)
Author:
lawrence
Message:

Fixes for creation time of exist directory contents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/xquery/DIFList.xq

    r3128 r3163  
    11(: This is a DIF listing query for TargetCollection - returns EntryIDs and the files in which they exist :) 
    22declare default element namespace 'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/'; 
    3 for $DE in collection('TargetCollection')/DIF/Entry_ID return  
     3declare variable $targetCollection as xs:string {'TargetCollection'}; 
     4for $DE in collection($targetCollection)/DIF/Entry_ID let $f:=util:document-name($DE) return  
    45<dgMetadataRecord> 
    56    <repositoryID>{string($DE)}</repositoryID> 
    6     <fileName>{util:document-name($DE)}</fileName> 
     7    <fileName>{$f}</fileName> 
     8    <created>{xmldb:created(util:collection-name($DE),$f)}</created> 
    79</dgMetadataRecord> 
Note: See TracChangeset for help on using the changeset viewer.