]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for set nested inside set to recursive-chunk-filename.
authorBob Stayton <bobs@sagehill.net>
Fri, 29 Aug 2014 21:34:58 +0000 (21:34 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 29 Aug 2014 21:34:58 +0000 (21:34 +0000)
xsl/html/chunk-code.xsl

index 6cb08c7181828ce4bf9552873b7c7d64b93e93d2..c86b0b505a2bd15b4e112c4537b97c0602f61ba6 100644 (file)
       <xsl:value-of select="$filename"/>
     </xsl:when>
 
+    <!-- treat nested set separate from root -->
+    <xsl:when test="self::set and ancestor::set">
+      <xsl:text>se</xsl:text>
+      <xsl:number level="any" format="01"/>
+      <xsl:if test="not($recursive)">
+        <xsl:value-of select="$html.ext"/>
+      </xsl:if>
+    </xsl:when>
+
     <xsl:when test="self::set">
       <xsl:value-of select="$root.filename"/>
       <xsl:if test="not($recursive)">