diff options
author | Ulrich Müller <ulm@gentoo.org> | 2021-03-10 20:48:06 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2021-03-10 20:48:06 +0100 |
commit | e748fbad1c33ec741d8389464914e373f943644d (patch) | |
tree | dd8af6aa1d6b31c3396d47d3ff22c5e2c9693d69 /devbook.xsl | |
parent | devbook.xsl: Properly declare HTML 5 output (diff) | |
download | devmanual-e748fbad1c33ec741d8389464914e373f943644d.tar.gz devmanual-e748fbad1c33ec741d8389464914e373f943644d.tar.bz2 devmanual-e748fbad1c33ec741d8389464914e373f943644d.zip |
devbook.xsl: Drop unused variable in findNext and findPrevious
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'devbook.xsl')
-rw-r--r-- | devbook.xsl | 6 |
1 files changed, 0 insertions, 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> |