nixpkgs/pkgs/data/sgml+xml/stylesheets/xslt/docbook5/link-href.patch

18 lines
629 B
Diff
Raw Normal View History

diff -rc docbook5-xsl-1.72.0-orig/html/xref.xsl docbook5-xsl-1.72.0/html/xref.xsl
*** docbook5-xsl-1.72.0-orig/html/xref.xsl 2007-01-23 21:50:22.000000000 +0100
--- docbook5-xsl-1.72.0/html/xref.xsl 2007-02-05 12:53:50.000000000 +0100
***************
*** 898,903 ****
--- 898,908 ----
<!-- If it has content, use it -->
<xsl:apply-templates/>
</xsl:when>
+ <xsl:when test="@xlink:href">
+ <a href="@xlink:href">
+ <xsl:value-of select="@xlink:href"/>
+ </a>
+ </xsl:when>
<xsl:otherwise>
<!-- else look for an endterm -->
<xsl:choose>