source: TI07-MOLES/trunk/MDIP/XQueries/MDIP2MOLES.xquery @ 1886

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI07-MOLES/trunk/MDIP/XQueries/MDIP2MOLES.xquery@1886
Revision 1886, 588 bytes checked in by ko23, 13 years ago (diff)

MDIP update

Line 
1declare default element namespace 'http://ndg.nerc.ac.uk/moles';
2
3for $DE in collection('/db/ndg_B_metadata')/dgMetadata/dgMetadataRecord[exists(dgDataEntity)]
4return
5element Metadata {
6        element Title {},
7        element Language{},
8        element Abstract {},
9        for $isoTopic in $DE/dgStructuredKeyword[dgValidTermID/ParentListID='']
10        return element TopicCategory {},
11        for $subject in $DE/dgDataEntity/dgParameterSummary/dgStdParameterMeasured[dgValidTermID/ParentListID='']
12        return element Subject {},
13        element Date {
14                element DatasetStartDate {},
15                element DatasetEndDate {}
16        }
17}
Note: See TracBrowser for help on using the repository browser.