docbook-xsl:rebuild smb.conf.5.xml error

This commit is contained in:
Rmys
2019-01-13 20:00:14 +03:00
parent 0b3b009a1f
commit eb23668e59
2 changed files with 38 additions and 0 deletions
@@ -0,0 +1,30 @@
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
--- a/lib/lib.xsl
+++ b/lib/lib.xsl
@@ -10,7 +10,10 @@
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 -->
@@ -56,6 +59,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">
+8
View File
@@ -21,6 +21,7 @@
<Patch level="1">docbook-xsl-newmethods.patch</Patch>
<Patch level="1">docbook-xsl-non-constant-expressions.patch</Patch>
<Patch level="1">docbook-xsl-list-item-body.patch</Patch>
<Patch level="1">nonrecursive-string-subst.patch</Patch>
<!-- <Patch level="1">docbook-xsl-mandir.patch</Patch> -->
</Patches>
</Source>
@@ -40,6 +41,13 @@
</Package>
<History>
<Update release="5">
<Date>2019-01-13</Date>
<Version>1.79.1</Version>
<Comment>Rebuild.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="4">
<Date>2018-07-17</Date>
<Version>1.79.1</Version>