]> granicus.if.org Git - docbook-dsssl/commitdiff
Do not break // in URL
authorJirka Kosek <jirka@kosek.cz>
Sat, 22 Apr 2006 09:37:00 +0000 (09:37 +0000)
committerJirka Kosek <jirka@kosek.cz>
Sat, 22 Apr 2006 09:37:00 +0000 (09:37 +0000)
xsl/fo/xref.xsl

index 29d75d34d67a6b83dcd0f2df10951a878d4c3223..7494cd5626b67bfe53dbe94d29293f9b58583bab 100644 (file)
     <xsl:when test="contains($url, '/')">
       <xsl:value-of select="substring-before($url, '/')"/>
       <xsl:text>/</xsl:text>
-      <xsl:copy-of select="$ulink.hyphenate"/>
+      <!-- Do not hyphen in-between // -->
+      <xsl:if test="substring(substring-after($url, '/'), 1, 1) != '/'">
+       <xsl:copy-of select="$ulink.hyphenate"/>
+      </xsl:if>
       <xsl:call-template name="hyphenate-url">
         <xsl:with-param name="url" select="substring-after($url, '/')"/>
       </xsl:call-template>