commit:     e748fbad1c33ec741d8389464914e373f943644d
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 10 19:48:06 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 10 19:48:06 2021 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=e748fbad

devbook.xsl: Drop unused variable in findNext and findPrevious

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 devbook.xsl | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/devbook.xsl b/devbook.xsl
index 1dcb55e..ac6ab38 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -714,8 +714,6 @@
       </a>
     </xsl:when>
     <xsl:otherwise>
-      <!-- This document's path -->
-      <xsl:variable name="doc_self" select="concat($self, 'text.xml')"/>
       <!-- Turn the absolute path into a relative path so we can find ourselves
            in the parent -->
       <xsl:variable name="path_self" select="concat(str:tokenize($self, 
'/')[last()], '/')"/>
@@ -810,12 +808,8 @@
       </a>
     </xsl:when>
     <xsl:otherwise>
-      <!-- This document's path -->
-      <xsl:variable name="doc_self" select="concat(/guide/@self, 'text.xml')"/>
       <!-- Turn the absolute path we have into a relative path so we can find
            ourselves in the parent -->
-      <!-- FIXME: Bombproof the doc_self so it still works if it's missing a 
'/'
-           on the end -->
       <xsl:variable name="path_self" select="concat(str:tokenize(/guide/@self, 
'/')[last()], '/')"/>
       <xsl:variable name="index_self" 
select="count(document(concat(/guide/@self, 
'../text.xml'))/guide/include[@href=$path_self]/preceding-sibling::*)-1"/>
       <xsl:choose>

Reply via email to