Skip to content

Commit

Permalink
Allow empty-string to disable persistent-toc-filename
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Nov 4, 2024
1 parent 176b67e commit d867fa5
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 d867fa5

Please sign in to comment.