Changeset 1365


Ignore:
Timestamp:
05/24/11 12:16:50 (13 years ago)
Author:
larlam
Message:

Added a parameter to specify location of the data file sil_to_iso6393.xml, so it doesn't need to be in the same directory as this XSLT anymore. When the parameter is not used, everything works exactly as before.

File:
1 edited

Legend:

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

    r1165 r1365  
    99    xsi:schemaLocation="    http://purl.org/dc/elements/1.1/    http://www.language-archives.org/OLAC/1.0/dc.xsd    http://purl.org/dc/terms/    http://www.language-archives.org/OLAC/1.0/dcterms.xsd    http://www.language-archives.org/OLAC/1.0/    http://www.language-archives.org/OLAC/1.0/olac.xsd    http://www.language-archives.org/OLAC/1.0/ http://www.language-archives.org/OLAC/1.0/third-party/software.xsd ">
    1010
    11     <!-- run on ubtunu with: saxonb-xslt -ext:on -it main ~/svn/clarin/metadata/trunk/toolkit/xslt/olac2cmdi.xsl  -->
     11    <!-- run on Ubuntu with: saxonb-xslt -ext:on -it main ~/svn/clarin/metadata/trunk/toolkit/xslt/olac2cmdi.xsl  -->
    1212
    1313    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
     
    1515    <xsl:key name="iso-lookup" match="lang" use="sil"/>
    1616
    17     <xsl:variable name="lang-top" select="document('sil_to_iso6393.xml')/languages"/>
     17    <!--
     18        This parameter can be used to specify path to the iso xml
     19        file.
     20      -->
     21    <xsl:param name="iso_xml_path"/>
     22    <xsl:variable name="lang-top" select="document(concat($iso_xml_path,'sil_to_iso6393.xml'))/languages"/>
    1823
    1924    <xsl:template match="/">
Note: See TracChangeset for help on using the changeset viewer.