]> granicus.if.org Git - docbook-dsssl/commitdiff
Experimental fix for some xref linking issues in cases where dbhtml 'dir' is used.
authorNorman Walsh <ndw@nwalsh.com>
Tue, 25 Nov 2003 22:43:44 +0000 (22:43 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 25 Nov 2003 22:43:44 +0000 (22:43 +0000)
xsl/html/chunk-common.xsl

index b222ea0061b0c46d3e7d0b11cc3158218fd91d95..1e2ea85f8115b7bda508e6b03463961ab105744d 100644 (file)
     <xsl:apply-templates select="." mode="recursive-chunk-filename"/>
   </xsl:variable>
 
-  <xsl:if test="$ischunk != 0 and $fn != ''">
+  <!--
+  <xsl:message>
+    <xsl:value-of select="$ischunk"/>
+    <xsl:text> (</xsl:text>
+    <xsl:value-of select="local-name(.)"/>
+    <xsl:text>) </xsl:text>
+    <xsl:value-of select="$fn"/>
+    <xsl:text>, </xsl:text>
+    <xsl:call-template name="dbhtml-dir"/>
+  </xsl:message>
+  -->
+
+  <!-- 2003-11-25 by ndw:
+       The following test used to read test="$ischunk != 0 and $fn != ''"
+       I've removed the ischunk part of the test so that href.to.uri and
+       href.from.uri will be fully qualified even if the source or target
+       isn't a chunk. I *think* that if $fn != '' then it's appropriate
+       to put the directory on the front, even if the element isn't a
+       chunk. I could be wrong. -->
+
+  <xsl:if test="$fn != ''">
     <xsl:call-template name="dbhtml-dir"/>
   </xsl:if>
 
       <xsl:with-param name="object" select="$context"/>
     </xsl:call-template>
   </xsl:variable>
+  
+  <!--
+  <xsl:message>href.to.uri: <xsl:value-of select="$href.to.uri"/></xsl:message>
+  <xsl:message>href.from.uri: <xsl:value-of select="$href.from.uri"/></xsl:message>
+  -->
 
   <xsl:variable name="href.to">
     <xsl:call-template name="trim.common.uri.paths">
     <xsl:value-of select="$href.to"/>
   </xsl:variable>
 
-<!--
+  <!--
   <xsl:message>
     <xsl:text>In </xsl:text>
     <xsl:value-of select="name(.)"/>
     <xsl:text> href=</xsl:text>
     <xsl:value-of select="$href"/>
   </xsl:message>
--->
+  -->
 
   <xsl:value-of select="$href"/>
 </xsl:template>