Changeset 1204
- Timestamp:
- 04/13/11 09:32:56 (14 years ago)
- Location:
- vlo/trunk/vlo_preprocessor
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo_preprocessor
-
Property
svn:ignore
set to
.project
-
Property
svn:ignore
set to
-
vlo/trunk/vlo_preprocessor/ImdiCmdi_preprocess.xsl
r1082 r1204 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> 3 3 <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)"/> 6 9 <xsl:variable name="newLine" select="system-property('line.separator')"/> 7 10 … … 29 32 30 33 <xsl:template name="main"> 34 <xsl:variable name="inputImdis" select="concat('file://', $inputDir, '?select=*.cmdi;recurse=yes;on-error=ignore')" /> 31 35 <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)"> 33 37 <xsl:result-document href="{document-uri(.)}"> 34 38 <xsl:comment>
Note: See TracChangeset
for help on using the changeset viewer.