Ignore:
Timestamp:
19/03/07 12:53:39 (12 years ago)
Author:
ko23
Message:

d2b* DIF deconstruction update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/DIF/XQuery/NDG-DIF.xquery

    r2256 r2291  
    1111        exists('moles:dgDataEntity')  
    1212        and moles:dgMetadataID/moles:schemeIdentifier='NDG-B0'  
    13         and moles:dgMetadataID/moles:repositoryIdentifier=$repositoryIdentifier 
     13        and moles:dgMetadataID/moles:repositoryIdentifier=$repositoryIdentifier] 
    1414        and moles:dgMetadataID/moles:localIdentifier=$localIdentifier] 
    15 return 
     15        return 
    1616element DIF { 
    1717        attribute xsi:schemaLocation {'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/ http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/dif_v9.4.xsd'}, 
     
    3333            element Dataset_Title {string($DE/moles:name)} 
    3434        }, 
    35         for $StructuredKeyword in ($DE//(moles:dgStructuredKeyword | moles:dgStdParameterMeasured)[(voclib:spot-vocab($voclib:gcmd_science_valids, moles:dgValidTermID/moles:ParentListID) or voclib:spot-vocab($voclib:gcmd_science_valids_correct, moles:dgValidTermID/moles:ParentListID))]) 
     35        for $StructuredKeyword in ($DE//(moles:dgStructuredKeyword | moles:dgStdParameterMeasured)[(voclib:spot-vocab($voclib:gcmd_science_valids, moles:dgValidTermID/moles:ParentListID) or voclib:spot-vocab($voclib:gcmd_science_valids_correct, moles:dgValidTermID/moles:ParentListID) or voclib:spot-vocab($voclib:gcmd_science_valids_categories, moles:dgValidTermID/moles:ParentListID))] 
     36        ) 
    3637                return if (exists($StructuredKeyword/*/moles:dgValidTerm)) then  
    3738                    element Parameters { 
     
    100101                }, 
    101102        for $Location in ($DE/moles:dgDataEntity/moles:dgDataSummary/moles:dgDataCoverage//moles:dgArea[voclib:spot-vocab($voclib:gcmd_location_valids, moles:dgValidTermID/moles:ParentListID)]) 
    102                 return element Location {$Location},  
     103                return element Location {data($Location/moles:dgValidTerm)},  
    103104        for $DepAct in ($DE/moles:dgDataEntity/moles:RelatedDeployment/moles:ActivityID) 
    104105        return  
Note: See TracChangeset for help on using the changeset viewer.