From bcca132de057cf520806200b1bcb925b955b0966 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Tue, 31 Oct 2023 21:24:06 +0100 Subject: devbook.xsl: Fix links created by contentsTree extraction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the element that is extracted from the external document contains internal references, these links would be relative to the wrong start location, namely the one defined in that document. Therefore, define our own copy of /guide/@self (pointing to the location of the target document), and rebase the tree onto it. This fixes the intra-document links in appendices/todo-list/. Closes: https://bugs.gentoo.org/916523 Signed-off-by: Ulrich Müller --- devbook.xsl | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/devbook.xsl b/devbook.xsl index fe9c496..626b97d 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -431,6 +431,7 @@ + @@ -446,6 +447,7 @@ + @@ -461,6 +463,7 @@ + @@ -474,10 +477,18 @@ + + + + + +
    - - -
  • + +
@@ -486,6 +497,7 @@ + -- cgit v1.2.3-65-gdbad