Changeset 1204


Ignore:
Timestamp:
04/13/11 09:32:56 (14 years ago)
Author:
patdui
Message:
  • added bash script to startup the preprocessor and parameterized the input dir
Location:
vlo/trunk/vlo_preprocessor
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo_preprocessor

    • Property svn:ignore set to
      .project
  • vlo/trunk/vlo_preprocessor/ImdiCmdi_preprocess.xsl

    r1082 r1204  
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    33    <xsl:output method="xml" indent="yes"/>
    4     <xsl:variable name="organisations"
    5         select="doc('/lat/tools/vlo_importer/data/imdi/OrganisationControlledVocabulary.xml')"/>
     4
     5        <xsl:param name="inputDir"></xsl:param><!-- e.g. /lat/tools/vlo_importer/data/imdi/imdi-20110106/corpora -->
     6        <xsl:param name="organisationsFile"></xsl:param> <!-- e.g. /lat/tools/vlo_importer/data/imdi/OrganisationControlledVocabulary.xml -->
     7
     8    <xsl:variable name="organisations" select="doc($organisationsFile)"/>
    69    <xsl:variable name="newLine" select="system-property('line.separator')"/>
    710
     
    2932
    3033    <xsl:template name="main">
     34        <xsl:variable name="inputImdis" select="concat('file://', $inputDir, '?select=*.cmdi;recurse=yes;on-error=ignore')" />
    3135        <xsl:for-each
    32             select="collection('file:////lat/tools/vlo_importer/data/imdi/imdi-20110106/corpora?select=*.cmdi;recurse=yes;on-error=ignore')">
     36            select="collection($inputImdis)">
    3337            <xsl:result-document href="{document-uri(.)}">
    3438                <xsl:comment>
Note: See TracChangeset for help on using the changeset viewer.