From ee59c2da6659e06538ae7b03717e66d836a17901 Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Fri, 3 Jun 2005 17:22:31 +0000 Subject: [PATCH] Fixed bug [ 1212159 ] Missing navigational links with XHTML chunking which was caused by the following: 1. When chunk.hierarchy is created, it is a collection of div elements in a variable, and then that is converted to a node-set by exlt. 2. In HTML, there is no namespace, so the div elements are in no namespace and they work. 3. In XHTML, the div elements are in the xhtml namespace because it is the default namespace. So they cannot be addressed as just "div", they must have a namespace prefix. 4. I added an explicit chunkfast namespace to avoid conflict with the default namespace. --- xsl/html/chunk-code.xsl | 11 ++++++----- xsl/html/chunkfast.xsl | 7 ++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/xsl/html/chunk-code.xsl b/xsl/html/chunk-code.xsl index 280b00cd7..bce27d155 100644 --- a/xsl/html/chunk-code.xsl +++ b/xsl/html/chunk-code.xsl @@ -1,5 +1,6 @@ @@ -47,9 +48,9 @@ -
+ -
+
@@ -66,17 +67,17 @@ - + + select="($div/preceding-sibling::cf:div|$div/preceding::cf:div|$div/parent::cf:div)[last()]"/> + select="($div/following-sibling::cf:div|$div/following::cf:div|$div/cf:div)[1]"/> diff --git a/xsl/html/chunkfast.xsl b/xsl/html/chunkfast.xsl index bd49ac843..48258b302 100644 --- a/xsl/html/chunkfast.xsl +++ b/xsl/html/chunkfast.xsl @@ -1,5 +1,6 @@ @@ -18,7 +19,7 @@ - + @@ -30,11 +31,11 @@ + select="($div/preceding-sibling::cf:div|$div/preceding::cf:div|$div/parent::cf:div)[last()]"/> + select="($div/following-sibling::cf:div|$div/following::cf:div|$div/cf:div)[1]"/> -- 2.40.0