Skip to content

Commit

Permalink
Support style-*-toc: false
Browse files Browse the repository at this point in the history
  • Loading branch information
jelovirt committed Jan 24, 2025
1 parent bea8663 commit c538af8
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/generator/com/elovirta/pdf/basic-settings.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,25 @@
</axsl:variable>
</xsl:if>
<axsl:variable name="antArgsChapterLayout">
<xsl:value-of select="if (map:contains($root, 'chapter-layout')) then $root ?chapter-layout else 'BASIC'"/>
<xsl:value-of select="if (map:contains($root, 'style-chapter-toc') and not($root ?style-chapter-toc))
then 'BASIC'
else if (map:contains($root, 'chapter-layout'))
then $root ?chapter-layout
else 'BASIC'"/>
</axsl:variable>
<axsl:variable name="partLayout">
<xsl:value-of select="if (map:contains($root, 'part-layout')) then $root ?part-layout else 'BASIC'"/>
<xsl:value-of select="if (map:contains($root, 'style-part-toc') and not($root ?style-part-toc))
then 'BASIC'
else if (map:contains($root, 'part-layout'))
then $root ?part-layout
else 'BASIC'"/>
</axsl:variable>
<axsl:variable name="appendixLayout">
<xsl:value-of select="if (map:contains($root, 'appendix-layout')) then $root ?appendix-layout else 'BASIC'"/>
<xsl:value-of select="if (map:contains($root, 'style-appendix-toc') and not($root ?style-appendix-toc))
then 'BASIC'
else if (map:contains($root, 'appendix-layout'))
then $root ?appendix-layout
else 'BASIC'"/>
</axsl:variable>
</axsl:stylesheet>
</xsl:template>
Expand Down

0 comments on commit c538af8

Please sign in to comment.