Changeset 2154 for TI07-MOLES/trunk/DIF


Ignore:
Timestamp:
13/02/07 11:42:31 (13 years ago)
Author:
ko23
Message:

Refactoring intermediate

File:
1 edited

Legend:

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

    r2132 r2154  
    11import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery'; 
     2import module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/inputParse' at 'xmldb:exist:///db/xqueryLib/Utilities/utility_xquery_lib.xquery'; 
    23declare default element namespace 'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/'; 
    34declare namespace xsi='http://www.w3.org/2001/XMLSchema-instance';  
     
    67declare variable $repositoryIdentifier as xs:string {'RepositoryID'}; 
    78declare variable $localIdentifier as xs:string {'LocalID'}; 
     9 
     10voclib:spot-vocab($vocab_root as xs:string, $vocab_uri as xs:string) 
    811 
    912for $DE in collection($targetCollection)/moles:dgMetadata/moles:dgMetadataRecord[ 
     
    1518element DIF { 
    1619        attribute xsi:schemaLocation {'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/ http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/dif_v9.4.xsd'}, 
    17         element Entry_ID {concat($DE/moles:dgMetadataID/moles:repositoryIdentifier, '__DIF__', $DE/moles:dgMetadataID/moles:localIdentifier)}, 
     20        element Entry_ID {concat($DE/moles:dgMetadataID/moles:repositoryIdentifier, $utillib:moles_id_separator, 'DIF', $utillib:moles_id_separator, $DE/moles:dgMetadataID/moles:localIdentifier)}, 
    1821        element Entry_Title {string($DE/moles:name)}, 
    1922        element Data_Set_Citation { 
Note: See TracChangeset for help on using the changeset viewer.