Ignore:
Timestamp:
23/11/06 15:04:42 (13 years ago)
Author:
ko23
Message:

Update namespaceadder and DIF output support

File:
1 edited

Legend:

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

    r1683 r1744  
    11declare default element namespace 'http://ndg.nerc.ac.uk/moles'; 
     2declare namespace xsi='http://www.w3.org/2001/XMLSchema-instance';  
    23declare namespace dc='http://purl.org/dc/elements/1.1/'; 
    34declare namespace oai_dc='http://www.openarchives.org/OAI/2.0/oai_dc'; 
     
    910for $DE in collection('/db/ndg_B_metadata')/dgMetadata/dgMetadataRecord[dgDataEntity!='' and dgMetadataID/schemeIdentifier='NDG-B0' and dgMetadataID/repositoryIdentifier='badc.nerc.ac.uk' and dgMetadataID/localIdentifier='dataent1'] 
    1011return  
    11 <oai_dc:dc xmlns:oai_dc='http://www.openarchives.org/OAI/2.0/oai_dc/' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd'> 
    12         { 
     12element oai_dc:dc { 
     13             attribute xsi:schemaLocation {'http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd'}, 
    1314        element dc:title {string($DE/name)}, 
    1415        element dc:type {'Dataset'}, 
     
    6465                    else ('empty content') 
    6566                    } 
    66     } 
    67 </oai_dc:dc> 
     67    }  (: </oai_dc:dc> :) 
Note: See TracChangeset for help on using the changeset viewer.