From 448d00f8e1f8265fed716f9b5090ef6f7524d56e Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Sat, 26 Oct 2024 22:33:29 +0200 Subject: devbook.xsl: Rework templates for previous/next node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Separate finding the node from HTML formatting. - Determine the absolute parent path from the path of our own @self attribute, rather than from the parent document's @self attribute. - Get the first node from the following-sibling or preceding-sibling axis directly, instead of laboriously calculating its index. Signed-off-by: Ulrich Müller --- devbook.xsl | 151 +++++++++++++++++++++++++----------------------------------- 1 file changed, 62 insertions(+), 89 deletions(-) diff --git a/devbook.xsl b/devbook.xsl index 0a3d7d8..a10f5ab 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -747,7 +747,7 @@ - + - - - - - - - + - + - + - - + + ../ - - - - - - - - - - - - - - - + + + - - - - - - - - + + - + @@ -831,60 +803,61 @@ - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + ../ + + + + + + + + + + + + + + + + + + + + + + + + + + + + # + + + + + + + + + -- cgit v1.2.3-65-gdbad