Ignore:
Timestamp:
13/11/08 15:30:13 (11 years ago)
Author:
cbyrom
Message:

Upgrade the various 'list' xqueries - to nest all results in a single
root element - so that only one document need be retrieved to get all
results + adjust ndgDirectory to cope with processing the new results +
fix the various namespaces mentioned in the codebase to map to the
current atom/moles ones.

File:
1 edited

Legend:

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

    r4231 r4427  
    22declare default element namespace 'http://www.w3.org/2005/Atom'; 
    33declare variable $targetCollection as xs:string := 'TargetCollection'; 
     4<docs> 
     5{ 
    46for $DE in collection($targetCollection)/entry/id let $f:=util:document-name($DE) return 
    57<dgMetadataRecord> 
    6     <repositoryID>{string($DE)}</repositoryID> 
     8    <repositoryID>{tokenize(string($DE), '__ATOM__')[2]}</repositoryID> 
    79    <fileName>{util:collection-name($DE)}/{$f}</fileName> 
    810    <created>{xmldb:created(util:collection-name($DE),$f)}</created> 
    911</dgMetadataRecord> 
     12} 
     13</docs> 
Note: See TracChangeset for help on using the changeset viewer.