]> granicus.if.org Git - docbook-dsssl/commitdiff
Add optional output-root param so dependency path
authorBob Stayton <bobs@sagehill.net>
Sat, 11 Jan 2003 17:48:24 +0000 (17:48 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 11 Jan 2003 17:48:24 +0000 (17:48 +0000)
matches the output path.

website/xsl/makefile-dep.xsl

index 31fb4f1c313734095c592a2b33a19f9184b17009..29f2437ef90569aa4fef58614db4fcf33cc48b0a 100644 (file)
@@ -3,6 +3,7 @@
                 version="1.0">
 
 <xsl:param name="filename-prefix" select="''"/>
+<xsl:param name="output-root" select="''"/>
 
 <xsl:output method="text"/>
 
@@ -29,6 +30,7 @@
 <!--
   <xsl:apply-templates select="." mode="calculate-dir"/>
 -->
+  <xsl:call-template name="output-root"/>
   <xsl:value-of select="@dir"/>
   <xsl:value-of select="$filename-prefix"/>
   <xsl:value-of select="@filename"/>
@@ -43,6 +45,7 @@
   <xsl:apply-templates select="." mode="calculate-dir"/>
 -->
   <xsl:if test="@filename">
+    <xsl:call-template name="output-root"/>
     <xsl:value-of select="@dir"/>
     <xsl:value-of select="$filename-prefix"/>
     <xsl:value-of select="@filename"/>
@@ -57,6 +60,7 @@
 <!--
   <xsl:apply-templates select="." mode="calculate-dir"/>
 -->
+  <xsl:call-template name="output-root"/>
   <xsl:value-of select="@dir"/>
   <xsl:value-of select="$filename-prefix"/>
   <xsl:value-of select="@filename"/>
@@ -68,6 +72,7 @@
   <xsl:apply-templates select="." mode="calculate-dir"/>
 -->
   <xsl:if test="@filename">
+    <xsl:call-template name="output-root"/>
     <xsl:value-of select="@dir"/>
     <xsl:value-of select="$filename-prefix"/>
     <xsl:value-of select="@filename"/>
   </xsl:choose>
 </xsl:template>
 
+<xsl:template name="output-root">
+  <xsl:if test="$output-root != ''">
+    <xsl:value-of select="$output-root"/>
+    <xsl:text>/</xsl:text>
+  </xsl:if>
+</xsl:template>
+
+
 </xsl:stylesheet>