From 5174c069dbe15d2a667c3d52ab48b1e4bf860d0a Mon Sep 17 00:00:00 2001
From: Frank Steinberg <steinberg@ibr.cs.tu-bs.de>
Date: Tue, 8 Oct 2019 13:51:43 +0200
Subject: [PATCH] Fixes.

---
 xsl/bjcp-2015-styleguide-merge.xsl | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/xsl/bjcp-2015-styleguide-merge.xsl b/xsl/bjcp-2015-styleguide-merge.xsl
index 3ef5320..0d74386 100644
--- a/xsl/bjcp-2015-styleguide-merge.xsl
+++ b/xsl/bjcp-2015-styleguide-merge.xsl
@@ -19,14 +19,14 @@
 
   <xsl:variable name="snippetid">
     <xsl:choose>
-      <xsl:when test="document(concat('../',$snippet))/bjcp:styleguide/bjcp:category/bjcp:subcategory/bjcp:subcategory">
-	<xsl:value-of select="document(concat('../',$snippet))/bjcp:styleguide/bjcp:category/bjcp:subcategory/bjcp:subcategory[@id]/@id"/>
+      <xsl:when test="document($snippet)/bjcp:styleguide/bjcp:category/bjcp:subcategory/bjcp:subcategory">
+	<xsl:value-of select="document($snippet)/bjcp:styleguide/bjcp:category/bjcp:subcategory/bjcp:subcategory[@id]/@id"/>
       </xsl:when>
-      <xsl:when test="document(concat('../',$snippet))/bjcp:styleguide/bjcp:category/bjcp:subcategory">
-	<xsl:value-of select="document(concat('../',$snippet))/bjcp:styleguide/bjcp:category/bjcp:subcategory[@id]/@id"/>
+      <xsl:when test="document($snippet)/bjcp:styleguide/bjcp:category/bjcp:subcategory">
+	<xsl:value-of select="document($snippet)/bjcp:styleguide/bjcp:category/bjcp:subcategory[@id]/@id"/>
       </xsl:when>
-      <xsl:when test="document(concat('../',$snippet))/bjcp:styleguide/bjcp:category">
-	<xsl:value-of select="document(concat('../',$snippet))/bjcp:styleguide/bjcp:category[@id]/@id"/>
+      <xsl:when test="document($snippet)/bjcp:styleguide/bjcp:category">
+	<xsl:value-of select="document($snippet)/bjcp:styleguide/bjcp:category[@id]/@id"/>
       </xsl:when>
       <xsl:otherwise>
 	<xsl:text>unknown</xsl:text>
@@ -35,7 +35,7 @@
   </xsl:variable>
 
 
-  <xsl:variable name="snippetnode" select="document(concat('../',$snippet))/bjcp:styleguide//bjcp:*[@id = $snippetid]"/>
+  <xsl:variable name="snippetnode" select="document($snippet)/bjcp:styleguide//bjcp:*[@id = $snippetid]"/>
 
 
   <!-- suppress these tags in translations -->
-- 
GitLab