Ignore:
Timestamp:
12/13/10 16:41:10 (13 years ago)
Author:
dietuyt
Message:

Added a 1-to-1 mapping from old x-sil codes to ISO-639-3 and adjusted
the XSLT to do this mapping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/xslt/olac2cmdi.xsl

    r979 r984  
    158158            <xsl:attribute name="olac-language">
    159159                <!-- can be enabled when there is a 1-to-1 mapping in sil_to_iso6393.xml           -->
    160                <!-- <xsl:choose>
     160                <xsl:choose>
    161161                    <xsl:when test="contains(@*:code, 'x-sil-')">
    162162                        <xsl:apply-templates select="$lang-top">
     
    164164                        </xsl:apply-templates>
    165165                    </xsl:when>
    166                     <xsl:otherwise>-->
     166                    <xsl:otherwise>
    167167                        <xsl:value-of select="@*:code"/>
    168                   <!--  </xsl:otherwise>
    169                 </xsl:choose>-->
     168                    </xsl:otherwise>
     169                </xsl:choose>
    170170            </xsl:attribute>
    171171        </language>
     
    187187            <!-- can be enabled when there is a 1-to-1 mapping in sil_to_iso6393.xml           -->
    188188            <xsl:attribute name="olac-language">
    189                <!-- <xsl:choose>
     189                <xsl:choose>
    190190                    <xsl:when test="contains(@*:code, 'x-sil-')">
    191191                        <xsl:apply-templates select="$lang-top">
     
    193193                        </xsl:apply-templates>
    194194                    </xsl:when>
    195                     <xsl:otherwise>-->
     195                    <xsl:otherwise>
    196196                        <xsl:value-of select="@*:code"/>
    197                   <!--  </xsl:otherwise>
    198                 </xsl:choose>-->
     197                    </xsl:otherwise>
     198                </xsl:choose>
    199199            </xsl:attribute>
    200200        </subject>
Note: See TracChangeset for help on using the changeset viewer.