commit:     1efc3cf32e61f00629e576088517094b7a7e5c29
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 26 20:17:04 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Mar  1 21:40:45 2020 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=1efc3cf3

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 <AT> gentoo.org>

 devbook.xsl | 7 ++-----
 1 file 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">

Reply via email to