]> granicus.if.org Git - docbook-dsssl/commitdiff
Enabled hyphenation of URLs when ulink content is the same as link target
authorJirka Kosek <jirka@kosek.cz>
Mon, 8 Feb 2010 23:21:18 +0000 (23:21 +0000)
committerJirka Kosek <jirka@kosek.cz>
Mon, 8 Feb 2010 23:21:18 +0000 (23:21 +0000)
xsl/fo/xref.xsl

index c53b1ff4f80ea881787175c275bd5a9209db7d66..d8f282a2da92ada16a83454476026312b62500c7 100644 (file)
   <fo:basic-link xsl:use-attribute-sets="xref.properties"
                  external-destination="{$ulink.url}">
     <xsl:choose>
-      <xsl:when test="count(child::node())=0">
+      <xsl:when test="count(child::node())=0 or (string(.) = $url)">
         <xsl:call-template name="hyphenate-url">
           <xsl:with-param name="url" select="$url"/>
         </xsl:call-template>