mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
* 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
This commit is contained in:
parent
6ad7f54086
commit
374e444a08
@ -1,8 +1,12 @@
|
||||
source $stdenv/setup
|
||||
|
||||
ensureDir $out
|
||||
cd $out
|
||||
unpackFile $src
|
||||
mkdir xml
|
||||
mkdir xml/xsl
|
||||
mv docbook5-xsl-* xml/xsl/docbook
|
||||
buildPhase=true
|
||||
|
||||
installPhase=myInstallPhase
|
||||
myInstallPhase() {
|
||||
ensureDir $out/xml/xsl
|
||||
cd ..
|
||||
mv docbook5-xsl-* $out/xml/xsl/docbook
|
||||
}
|
||||
|
||||
genericBuild
|
||||
|
@ -7,4 +7,5 @@ stdenv.mkDerivation {
|
||||
url = http://heanet.dl.sourceforge.net/sourceforge/docbook/docbook5-xsl-1.72.0.tar.bz2;
|
||||
sha256 = "0iy7axmk3nvaqgxg5lh7qx39ad9g3qrgwikrp5w4z7bwlrpijfpx";
|
||||
};
|
||||
patches = [./link-href.patch];
|
||||
}
|
||||
|
17
pkgs/data/sgml+xml/stylesheets/xslt/docbook5/link-href.patch
Normal file
17
pkgs/data/sgml+xml/stylesheets/xslt/docbook5/link-href.patch
Normal file
@ -0,0 +1,17 @@
|
||||
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>
|
Loading…
Reference in New Issue
Block a user