]> granicus.if.org Git - docbook-dsssl/commitdiff
Try to avoid x//y in inherited dbhtml dir settings
authorNorman Walsh <ndw@nwalsh.com>
Mon, 13 May 2002 21:43:57 +0000 (21:43 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 13 May 2002 21:43:57 +0000 (21:43 +0000)
xsl/html/pi.xsl

index 07485c1bf02014ead33771bb920df0db82c9470b..064138c03bd4e44c6242539d04da2c9210e75023 100644 (file)
@@ -78,7 +78,9 @@
     <xsl:otherwise>
       <xsl:if test="$ppath != ''">
         <xsl:value-of select="$ppath"/>
-        <xsl:text>/</xsl:text>
+        <xsl:if test="substring($ppath, string-length($ppath), 1) != '/'">
+          <xsl:text>/</xsl:text>
+        </xsl:if>
       </xsl:if>
       <xsl:value-of select="$path"/>
       <xsl:text>/</xsl:text>