Automatic merge of trunk into multilib

This commit is contained in:
Thomas Trepl 2023-10-19 00:30:17 +02:00
commit cbe26ed15a

View File

@ -241,4 +241,22 @@
</fo:block>
</xsl:template>
<!-- page.number.format
We want roman numerals only in book's preface, not parts prefaces
(if any). The original template is in {docbook-xsl}/fo/pagesetup.xsl -->
<xsl:template name="page.number.format">
<xsl:param name="element" select="local-name(.)"/>
<xsl:param name="master-reference" select="''"/>
<xsl:choose>
<xsl:when test="$element = 'toc' and self::book">i</xsl:when>
<xsl:when test="$element = 'set'">i</xsl:when>
<xsl:when test="$element = 'book'">i</xsl:when>
<xsl:when test="$element = 'preface' and not(ancestor::part)">i</xsl:when>
<xsl:when test="$element = 'dedication'">i</xsl:when>
<xsl:when test="$element = 'acknowledgements'">i</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>