diff options
author | 2024-06-10 17:39:57 +0200 | |
---|---|---|
committer | 2024-06-10 17:39:57 +0200 | |
commit | daa56917313abaa5eaddf65492fc31795b1235fb (patch) | |
tree | a9dbe02d1d55ee6cb92c29010298428c3e93f658 | |
parent | Revert "general-concepts/tree: Allow @ in filenames" (diff) | |
download | devmanual-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>
-rw-r--r-- | devbook.xsl | 12 |
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> |