source: exist/trunk/xquery/molesList.xq @ 3118

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

Splitting out the (authoratative?) python xqueries into named
files within the new egg for exist (and other ndg utilities)

Line 
1(: This moles listing query returns all the moles documents and their identifiers within a specific TargetCollection :)
2declare default element namespace 'http://ndg.nerc.ac.uk/moles';
3for $DE in collection('TargetCollection')/dgMetadata/dgMetadataRecord[exists(dgDataEntity)]
4return
5<dgMetadataRecord>
6{$DE/dgMetadataID/repositoryIdentifier}{$DE/dgMetadataID/localIdentifier}<fileName>{util:document-name($DE)}</fileName>
7</dgMetadataRecord>
Note: See TracBrowser for help on using the repository browser.