nixpkgs/pkgs/data/sgml+xml/stylesheets/xslt/docbook5/link-href.patch
Eelco Dolstra 374e444a08 * Make <link xlink:href="http://..." /> (i.e., link with no content)
work as in docbook-xsl-1.71.0 (and consistent with the DocBook
  Guide).

svn path=/nixpkgs/trunk/; revision=7836
2007-02-05 12:17:30 +00:00

18 lines
629 B
Diff

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>