Skip to content

Commit

Permalink
Merge pull request #555 from ndw/iss-554
Browse files Browse the repository at this point in the history
Allow empty-string to disable persistent-toc-filename
  • Loading branch information
ndw authored Nov 4, 2024
2 parents 176b67e + d867fa5 commit 6c47d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/xslt/modules/chunk-output.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<xsl:apply-templates select="/h:html//h:html">
<xsl:with-param name="map" select="true()"/>
</xsl:apply-templates>
<xsl:if test="exists($persistent-toc-filename) and f:is-true($persistent-toc)">
<xsl:if test="normalize-space($persistent-toc-filename) != '' and f:is-true($persistent-toc)">
<xsl:variable name="rootfn"
select="(.//*[@db-chunk])[1]/@db-chunk/string()"/>
<xsl:map-entry key="string(resolve-uri($persistent-toc-filename, $rootfn))">
Expand Down Expand Up @@ -188,7 +188,7 @@
</xsl:if>
</header>
<xsl:choose>
<xsl:when test="$v:chunk and exists($persistent-toc-filename)">
<xsl:when test="$v:chunk and normalize-space($persistent-toc-filename) != ''">
<div db-persistent-toc="{$persistent-toc-filename}">
<xsl:attribute name="db-prefix"
select="fp:resolve-persistent-toc-prefix(/, .)"/>
Expand Down

0 comments on commit 6c47d73

Please sign in to comment.