aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl
diff options
context:
space:
mode:
Diffstat (limited to 'stylesheets/lfs-xsl')
-rw-r--r--stylesheets/lfs-xsl/chunk-slave.xsl3
-rw-r--r--stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl18
2 files changed, 18 insertions, 3 deletions
diff --git a/stylesheets/lfs-xsl/chunk-slave.xsl b/stylesheets/lfs-xsl/chunk-slave.xsl
index dab359d1d..1482ae351 100644
--- a/stylesheets/lfs-xsl/chunk-slave.xsl
+++ b/stylesheets/lfs-xsl/chunk-slave.xsl
@@ -10,9 +10,6 @@
<!-- Upstream XHTML presentation templates -->
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
- <!-- Use ISO-8859-1 for output instead of default UTF-8 -->
- <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
-
<!-- Including our customized elements templates -->
<xsl:include href="common.xsl"/>
<xsl:include href="xhtml/lfs-admon.xsl"/>
diff --git a/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl b/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl
index 49337d0ef..787a0e8c1 100644
--- a/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl
+++ b/stylesheets/lfs-xsl/pdf/lfs-pagesetup.xsl
@@ -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>