From 9325e2c3b10cc62ccf170e5f5bc9edb0021d58a5 Mon Sep 17 00:00:00 2001 From: Daniel Jettka <sesv009@uni-hamburg.de> Date: Sun, 7 Jun 2020 17:46:08 +0200 Subject: [PATCH] added variable file-ref --- usas-annotation/insert-usas-annotations.xsl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usas-annotation/insert-usas-annotations.xsl b/usas-annotation/insert-usas-annotations.xsl index 434f369..433b8c4 100644 --- a/usas-annotation/insert-usas-annotations.xsl +++ b/usas-annotation/insert-usas-annotations.xsl @@ -43,10 +43,11 @@ <!-- Templates --> <xsl:template match="/"> - <xsl:for-each select="distinct-values($wmatrix-utterances//*:u/@file-ref)"> + <xsl:for-each select="distinct-values($wmatrix-utterances//*:u/@file-ref)"> + <xsl:variable name="file-ref" select="." as="xs:string"/> <!-- overwrite the document --> - <xsl:for-each select="document(.)"> - <xsl:result-document href="{.}"> + <xsl:for-each select="document($file-ref)"> + <xsl:result-document href="{$file-ref}"> <xsl:apply-templates/> </xsl:result-document> </xsl:for-each> -- GitLab