aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-06-10 17:39:57 +0200
committerUlrich Müller <ulm@gentoo.org>2024-06-10 17:39:57 +0200
commitdaa56917313abaa5eaddf65492fc31795b1235fb (patch)
treea9dbe02d1d55ee6cb92c29010298428c3e93f658 /devbook.xsl
parentRevert "general-concepts/tree: Allow @ in filenames" (diff)
downloaddevmanual-daa56917313abaa5eaddf65492fc31795b1235fb.tar.gz
devmanual-daa56917313abaa5eaddf65492fc31795b1235fb.tar.bz2
devmanual-daa56917313abaa5eaddf65492fc31795b1235fb.zip
devbook.xsl: Rename parameter of repeat-string template
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'devbook.xsl')
-rw-r--r--devbook.xsl12
1 files changed, 6 insertions, 6 deletions
diff --git a/devbook.xsl b/devbook.xsl
index c9a1a1c..5df9686 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -300,8 +300,8 @@
<xsl:template name="repeat-string">
<xsl:param name="count"/>
- <xsl:param name="append"/>
- <xsl:value-of select="str:padding($count * string-length($append), $append)"/>
+ <xsl:param name="string"/>
+ <xsl:value-of select="str:padding($count * string-length($string), $string)"/>
</xsl:template>
<xsl:template name="relative-path">
@@ -311,7 +311,7 @@
<xsl:when test="$path = '' or $self = '' or substring-before($path, '/') != substring-before($self, '/')">
<xsl:call-template name="repeat-string">
<xsl:with-param name="count" select="string-length($self) - string-length(translate($self, '/', ''))"/>
- <xsl:with-param name="append">../</xsl:with-param>
+ <xsl:with-param name="string">../</xsl:with-param>
</xsl:call-template>
<xsl:value-of select="$path"/>
</xsl:when>
@@ -435,7 +435,7 @@
<xsl:call-template name="repeat-string">
<xsl:with-param name="count"
select="string-length(/guide/@self) - string-length(translate(/guide/@self, '/' , ''))"/>
- <xsl:with-param name="append">../</xsl:with-param>
+ <xsl:with-param name="string">../</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:param>
@@ -522,7 +522,7 @@
<xsl:call-template name="repeat-string">
<xsl:with-param name="count" select="string-length(/guide/@self)
- string-length(translate(/guide/@self, '/' , ''))"/>
- <xsl:with-param name="append">../</xsl:with-param>
+ <xsl:with-param name="string">../</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<html lang="en">
@@ -894,7 +894,7 @@
<xsl:variable name="relative_path_depth_recursion">
<xsl:call-template name="repeat-string">
<xsl:with-param name="count" select="$depth"/>
- <xsl:with-param name="append">../</xsl:with-param>
+ <xsl:with-param name="string">../</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<li>