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/DIF2MOLES.xquery

    r2201 r2291  
    2525element localIdentifier {$output_local_id} 
    2626else 
    27 element localIdentifier {escape-uri(string($DIF/dif:Entry_ID), true())} 
     27element localIdentifier {data($DIF/dif:Entry_ID)} 
    2828}, 
    2929element dgMetadataDescription { 
     
    6262}, 
    6363element dgStdParameterMeasured { 
    64 element dgValidTerm { 
    65 concat (string($parameter/dif:Category), ' > ', string($parameter/dif:Topic), ' > ', string($parameter/dif:Term)), 
     64element dgValidTerm {string($parameter/dif:Category)}, 
     65element dgValidTermID { 
     66element ParentListID {concat($voclib:gcmd_science_valids_categories, '/current')}, 
     67element TermID {escape-uri($parameter/dif:Category, true())} 
     68}, 
     69element dgValidSubterm { 
     70element dgValidTerm {string($parameter/dif:Topic)}, 
     71element dgValidTermID { 
     72element ParentListID {concat($voclib:gcmd_science_valids_topics, '/current')}, 
     73element TermID {escape-uri($parameter/dif:Category, true())} 
     74}, 
     75element dgValidSubterm { 
     76element dgValidTerm {string($parameter/dif:Term)}, 
     77element dgValidTermID { 
     78element ParentListID {concat($voclib:gcmd_science_valids_terms, '/current')}, 
     79element TermID {escape-uri($parameter/dif:Term, true())} 
     80}, 
    6681if (exists($parameter/dif:Variable)) then 
    67 concat(' > ', string($parameter/dif:Variable)) 
    68 else (), 
     82element dgValidSubterm { 
     83element dgValidTerm {string($parameter/dif:Variable)}, 
     84element dgValidTermID { 
     85element ParentListID {concat($voclib:gcmd_science_valids_variables, '/current')}, 
     86element TermID {escape-uri($parameter/dif:Variable, true())} 
     87}, 
    6988if (exists($parameter/dif:Detailed_Variable)) then 
    70 concat(' > ', string($parameter/dif:Detailed_Variable)) 
    71 else () 
    72 }, 
    73 element dgValidTermID { 
    74 element ParentListID {concat($voclib:gcmd_science_valids, '/current')}, 
    75 element TermID {escape-uri($parameter/dif:Category, true())} 
    76 } 
     89element dgValidSubterm { 
     90element dgValidTerm {string($parameter/dif:Detailed_Variable)}, 
     91element dgValidTermID { 
     92element ParentListID {$voclib:unknown_vocab_id}, 
     93element TermID {escape-uri($parameter/dif:Detailed_Variable, true())} 
     94}, 
     95element ListLevel {4}} 
     96else (), 
     97element ListLevel {3} 
     98} 
     99else (), 
     100element ListLevel {2} 
     101}, 
     102element ListLevel {1} 
     103}, 
     104element ListLevel {0} 
    77105}, 
    78106element ParameterName { 
     
    121149} 
    122150else (), 
    123 if (exists($DIF/dif:Temporal_Coverage/dif:Start_Date) or exists($DIF/dif:Paleo_Temporal_Coverage/dif:Paleo_Start_Date) or exists($DIF/dif:Chronostratigraphic_Unit)) then 
     151if (exists($DIF/dif:Temporal_Coverage) or exists($DIF/dif:Paleo_Temporal_Coverage) or exists($DIF/dif:Chronostratigraphic_Unit)) then 
    124152element dgTemporalCoverage { 
    125153for $temporalcoverage in $DIF/dif:Temporal_Coverage[exists(dif:Start_Date)] 
Note: See TracChangeset for help on using the changeset viewer.