aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-02-26 21:17:04 +0100
committerUlrich Müller <ulm@gentoo.org>2020-03-01 22:40:45 +0100
commit1efc3cf32e61f00629e576088517094b7a7e5c29 (patch)
tree02cdcb233d7162b5554cee8eb5c4a7cc761feddc
parentdevbook-guide: Flip order of <important> and <warning> examples. (diff)
downloaddevmanual-1efc3cf32e61f00629e576088517094b7a7e5c29.tar.gz
devmanual-1efc3cf32e61f00629e576088517094b7a7e5c29.tar.bz2
devmanual-1efc3cf32e61f00629e576088517094b7a7e5c29.zip
devbook.xsl: Assign a default "depth" value for printParentDocs.
The depth of the current document from the document root looks like a reasonable default. There is no "path" parameter, so remove it from the caller. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--devbook.xsl7
1 files changed, 2 insertions, 5 deletions
diff --git a/devbook.xsl b/devbook.xsl
index a22366c..8024e7f 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -602,10 +602,7 @@
<div class="row">
<div class="col-md010">
<ol class="breadcrumb">
- <xsl:call-template name="printParentDocs">
- <xsl:with-param name="path" select="/guide/@self"/>
- <xsl:with-param name="depth" select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/' , ''))"/>
- </xsl:call-template>
+ <xsl:call-template name="printParentDocs"/>
</ol>
</div>
</div>
@@ -805,7 +802,7 @@
</xsl:template>
<xsl:template name="printParentDocs">
- <xsl:param name="depth"/>
+ <xsl:param name="depth" select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/', ''))"/>
<xsl:choose>
<xsl:when test="$depth &gt; 0">
<xsl:variable name="relative_path_depth_recursion">