Changeset 1799 for TI07-MOLES/trunk/DIF


Ignore:
Timestamp:
04/12/06 12:46:20 (13 years ago)
Author:
ko23
Message:

Extended DIF2MOLES.xquery

File:
1 edited

Legend:

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

    r1798 r1799  
    77declare namespace f='http://ndg.nerc.ac.uk/moles/localfunctions'; 
    88declare variable $input_collection as xs:string {'/db/discovery'}; 
     9declare variable $unknown_vocab_id as xs:string {'http://vocab.ndg.nerc.ac.uk/null'}; 
    910declare variable $ndg_data_provider_vocab as xs:string {'http://vocab.ndg.nerc.ac.uk/N010'}; 
    1011declare variable $gcmd_science_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/gcmd_parameters.html'}; 
    1112declare variable $gcmd_project_valids as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/projects.html'}; 
     13declare variable $gcmd_iso_topic_list as xs:string {'http://gcmd.gsfc.nasa.gov/Resources/valids/iso_topic_list.html'}; 
    1214declare variable $cf_standard_names as xs:string {'http://www.cgd.ucar.edu/cms/eaton/cf-metadata/standard_name.html'}; 
    1315declare variable $iso_topic_list as xs:string {'http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_TopicCategoryCode'}; 
     
    143145                                element dgValidTerm {$structuredKeywords}, 
    144146                                element dgValidTermID { 
    145                                         element ParentListID {'http://vocab.ndg.nerc.ac.uk/null.'}, 
     147                                        element ParentListID {$unknown_vocab_id}, 
    146148                                        element TermID {escape-uri($structuredKeywords, true())} 
    147149                                } 
     
    152154                                element dgValidTerm {string($structuredKeywords)}, 
    153155                                element dgValidTermID { 
    154                                         element ParentListID {'http://vocab.ndg.nerc.ac.uk/null.'}, 
    155                                         element TermID {escape-uri(string($structuredKeywords), true())} 
     156                                        element ParentListID {$gcmd_iso_topic_list}, 
     157                                        element TermID {escape-uri($structuredKeywords, true())} 
    156158                                } 
    157159                        }, 
Note: See TracChangeset for help on using the changeset viewer.