docbook-xsl: revert to 1.79.1.

This commit is contained in:
maxice8 2018-12-13 19:43:40 -02:00
parent b38f50a408
commit 3e9b80673d
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
2 changed files with 6 additions and 39 deletions

View File

@ -1,33 +0,0 @@
Description: use EXSLT "replace" function when available
A recursive implementation of string.subst is problematic,
long strings with many matches will cause stack overflows.
Author: Peter De Wachter <pdewacht@gmail.com>
Bug-Debian: https://bugs.debian.org/750593
--- lib/lib.xsl
+++ lib/lib.xsl
@@ -6,7 +6,11 @@
This module implements DTD-independent functions
- ******************************************************************** --><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ ******************************************************************** -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings"
+ exclude-result-prefixes="str"
+ version="1.0">
<xsl:template name="dot.count">
<!-- Returns the number of "." characters in a string -->
@@ -52,6 +56,9 @@
<xsl:param name="replacement"/>
<xsl:choose>
+ <xsl:when test="function-available('str:replace')">
+ <xsl:value-of select="str:replace($string, string($target), string($replacement))"/>
+ </xsl:when>
<xsl:when test="contains($string, $target)">
<xsl:variable name="rest">
<xsl:call-template name="string.subst">

View File

@ -1,16 +1,16 @@
# Template file for 'docbook-xsl' # Template file for 'docbook-xsl'
pkgname=docbook-xsl pkgname=docbook-xsl
version=1.79.2 reverts="1.79.2_1"
revision=1 version=1.79.1
revision=3
noarch=yes noarch=yes
wrksrc="${pkgname}-nons-${version}"
depends="xmlcatmgr docbook-xml>=4.2" depends="xmlcatmgr docbook-xml>=4.2"
short_desc="Docbook XSL modular stylesheet" short_desc="Docbook XSL modular stylesheet"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT" license="MIT"
homepage="https://docbook.org" homepage="http://docbook.sourceforge.net/"
distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F${version}/docbook-xsl-nons-${version}.tar.gz" distfiles="${SOURCEFORGE_SITE}/docbook/${pkgname}-${version}.tar.bz2"
checksum=f89425b44e48aad24319a2f0d38e0cb6059fdc7dbaf31787c8346c748175ca8e checksum=725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968
xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --" xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --"
do_install() { do_install() {