Changeset 418

Show
Ignore:
Timestamp:
11/02/06 16:38:57 (2 years ago)
Author:
thomase
Message:

Refactored: namespace reallocation and some element name changes aimed at borrowing as much as possible from ADL Gazetteer, TEI, georss and Dublin Core while inventing as little as possible of our own. Also refactored the rights statement.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • system/trunk/data/geoentities/xslt/raw2cooked.xsl

    r317 r418  
    3030--> 
    3131<xsl:stylesheet xmlns="http://www.unc.edu/awmc/gazetteer/schemata/ns/0.3" 
    32     xmlns:georss="http://www.georss.org/georss" xmlns:tei="http://www.tei-c.org/ns/1.0" 
     32    xmlns:awmcgaz="http://www.unc.edu/awmc/gazetteer/schemata/ns/0.3" 
     33    xmlns:adlgaz="http://www.alexandria.ucsb.edu/gazetteer/ContentStandard/version3.2/" 
     34    xmlns:georss="http://www.georss.org/georss"  
     35    xmlns:tei="http://www.tei-c.org/ns/1.0" 
     36    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    3337    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
    3438     
     
    3640     
    3741    <xsl:template match="/"> 
    38         <xsl:comment> 
    39      =========================================================================== 
    40      Copyright (C) 2006 Ancient World Mapping Center. All rights reserved. 
    41  
    42      This data is derived from original compilations prepared for the American  
    43      Philological Association's Classical Atlas Project (1988-2000). It is used 
    44      here with permission of the APA.  
    45       
    46      This data is intended solely for testing purposes in the context of the  
    47      Ancient World Mapping Center's Pleiades Project and may not be reused or  
    48      redistributed.  
    49              
    50      In its current state, this data may contain errors and omissions and is not  
    51      appropriate for citation or scholarly use. Any errors or omissions are the  
    52      result of prototype conversion software, still under development by the  
    53      AWMC's Pleiades Project, and do not reflect the quality and completeness of  
    54      the original data nor the opinions of its scholarly compilers and editors.  
    55  
    56      About Pleiades 
    57      
    58      Pleiades is an international research network and associated web portal and 
    59      content management system devoted to the study of ancient geography.  
    60      
    61      See http://icon.stoa.org/trac/pleiades/wiki. 
    62      
    63      Funding for the conversion of this data was provided by a grant from the  
    64      U.S. National Endowment for the Humanities (http://www.neh.gov). 
    65      =========================================================================== 
    66         </xsl:comment> 
    6742        <xsl:apply-templates /> 
     43            
     44         
    6845    </xsl:template> 
    6946 
     
    7249            namespace="http://www.unc.edu/awmc/gazetteer/schemata/ns/0.3"> 
    7350            <xsl:apply-templates /> 
     51            <xsl:element name="dc:rights" namespace="http://purl.org/dc/elements/1.1/">Copyright © 2006 Ancient World Mapping Center. All rights reserved. This data is derived from original compilations prepared for the American Philological Association's Classical Atlas Project (1988-2000). It is used here with permission of the APA. This data is intended solely for testing purposes in the context of the Ancient World Mapping Center's Pleiades Project and may not be reused or redistributed. In its current state, this data may contain errors and omissions and is not appropriate for citation or scholarly use. Any errors or omissions are the result of prototype conversion software, still under development by the AWMC's Pleiades Project, and do not reflect the quality and completeness of the original data nor the opinions of its scholarly compilers and editors.</xsl:element> 
    7452        </xsl:element> 
    7553    </xsl:template> 
     
    8361    </xsl:template> 
    8462 
     63    <!-- none of our source data can be guaranteed to have the name in real language/script, so we only have a transliteration --> 
    8564    <xsl:template match="nameString"> 
    86         <xsl:element name="nameStringTransliterated" namespace="http://www.unc.edu/awmc/gazetteer/schemata/ns/0.3"> 
     65        <xsl:element name="awmcgaz:transliteration"> 
    8766            <xsl:apply-templates/> 
    8867        </xsl:element> 
    8968    </xsl:template> 
     69     
    9070    <xsl:template match="bibl"> 
    9171        <xsl:element name="tei:bibl" namespace="http://www.tei-c.org/ns/1.0"> 
     
    9878            <xsl:apply-templates /> 
    9979        </xsl:element> 
     80    </xsl:template> 
     81     
     82    <xsl:template match="creator"> 
     83        <xsl:element name="dc:creator" namespace="http://purl.org/dc/elements/1.1/"> 
     84            <xsl:apply-templates/> 
     85        </xsl:element> 
     86    </xsl:template> 
     87     
     88    <xsl:template match="contributor"> 
     89        <xsl:element name="dc:contributor" namespace="http://purl.org/dc/elements/1.1/"> 
     90            <xsl:apply-templates/> 
     91        </xsl:element> 
     92    </xsl:template> 
     93     
     94    <xsl:template match="ID"> 
     95        <xsl:element name="adlgaz:featureID" namespace="http://www.alexandria.ucsb.edu/gazetteer/ContentStandard/version3.2/"> 
     96           <xsl:copy-of select="@*"/> 
     97           <xsl:apply-templates/> 
     98        </xsl:element> 
     99    </xsl:template> 
     100 
     101    <xsl:template match="name"> 
     102        <xsl:element name="adlgaz:featureName" namespace="http://www.alexandria.ucsb.edu/gazetteer/ContentStandard/version3.2/"> 
     103           <xsl:copy-of select="@*"/> 
     104           <xsl:apply-templates/> 
     105        </xsl:element> 
     106    </xsl:template> 
     107     
     108    <xsl:template match="timePeriod | timePeriodName | classificationSection | classificationTerm | classificationScheme | schemeName | spatialLocation"> 
     109       <xsl:element name="adlgaz:{local-name()}" namespace="http://www.alexandria.ucsb.edu/gazetteer/ContentStandard/version3.2/"> 
     110           <xsl:copy-of select="@*"/> 
     111           <xsl:apply-templates/> 
     112       </xsl:element> 
    100113    </xsl:template> 
    101114