Skip to content
Snippets Groups Projects
Commit 2200cfe6 authored by Jettka, Daniel's avatar Jettka, Daniel
Browse files

specifying file extension for result files

parent 850e1557
Branches
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<xsl:copy-of select="document(.)//*:u"/> <xsl:copy-of select="document(.)//*:u"/>
</xsl:for-each> </xsl:for-each>
</xsl:variable> </xsl:variable>
<xsl:variable name="result-files-extension" select="'.exbu'"/>
<!-- Keys --> <!-- Keys -->
<xsl:key name="words" match="w" use="concat(../@file-ref, '#', ../@tier-category, '#', ../@speaker, '#', ../@start, '#', ../@end)"/> <xsl:key name="words" match="w" use="concat(../@file-ref, '#', ../@tier-category, '#', ../@speaker, '#', ../@start, '#', ../@end)"/>
...@@ -48,7 +49,7 @@ ...@@ -48,7 +49,7 @@
<xsl:variable name="doc" select="document($file-ref)"/> <xsl:variable name="doc" select="document($file-ref)"/>
<!-- overwrite the document --> <!-- overwrite the document -->
<xsl:for-each select="$doc"> <xsl:for-each select="$doc">
<xsl:result-document href="{$file-ref}.usas"> <xsl:result-document href="{concat(replace($file-ref, '\.exb$', ''), $result-files-extension)}">
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:result-document> </xsl:result-document>
</xsl:for-each> </xsl:for-each>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment