source: exist/trunk/xquery/MDIPList.xq @ 3181

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/xquery/MDIPList.xq@3181
Revision 3181, 449 bytes checked in by selatham, 12 years ago (diff)

bug fixes

Line 
1declare default element namespace 'http://www.oceannet.org/mdip/xml';
2declare variable $targetCollection as xs:string {'TargetCollection'};
3for $DE in collection($targetCollection)/Metadata/DatasetIdentifier
4let $f:=util:document-name($DE)
5return
6<dgMetadataRecord><repositoryID>{string($DE)}</repositoryID>
7    <fileName>{util:document-name($DE)}</fileName>
8    <created>{xmldb:created(util:collection-name($DE),$f)}</created>
9</dgMetadataRecord>
Note: See TracBrowser for help on using the repository browser.