]> granicus.if.org Git - docbook-dsssl/commitdiff
Ignore dbhtml dir if the section isn't a chunk
authorNorman Walsh <ndw@nwalsh.com>
Wed, 4 Sep 2002 16:37:02 +0000 (16:37 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 4 Sep 2002 16:37:02 +0000 (16:37 +0000)
xsl/html/chunk-common.xsl

index b8880e6eddd5df885584bf272e9fdc57ead0f703..82718444374fce4c5bf612c33d219f27bd6a6067 100644 (file)
 <!-- ==================================================================== -->
 
 <xsl:template match="*" mode="chunk-filename">
+  <!-- returns the filename of a chunk -->
+  <xsl:variable name="ischunk">
+    <xsl:call-template name="chunk"/>
+  </xsl:variable>
+
   <xsl:variable name="fn">
     <xsl:apply-templates select="." mode="recursive-chunk-filename"/>
   </xsl:variable>
 
-  <xsl:if test="$fn != ''">
+  <xsl:if test="$ischunk != 0 and $fn != ''">
     <xsl:call-template name="dbhtml-dir"/>
   </xsl:if>