1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
4 xmlns:
fo=
"http://www.w3.org/1999/XSL/Format"
7 <!-- path to original XSL used to do transforms -->
8 <xsl:import href=
"@DOCBOOK_FO_XSL@"/>
10 <!-- DIRECTIVES FOR CUSTOMIZATION -->
12 <xsl:param name=
"fop1.extensions" select=
"1"></xsl:param>
15 <xsl:template name=
"set.flow.properties">
16 <xsl:param name=
"element" select=
"local-name(.)"/>
17 <xsl:param name=
"master-reference" select=
"''"/>
20 <xsl:when test=
"starts-with($master-reference, 'index') or
21 starts-with($master-reference, 'titlepage') or
22 starts-with($master-reference, 'lot') or
23 starts-with($master-reference, 'front')">
24 <xsl:attribute name=
"hyphenate">false
</xsl:attribute>
27 <xsl:attribute name=
"hyphenate">
28 <xsl:value-of select=
"$hyphenate"/>
34 <!-- pages always start on odd -->
35 <xsl:template match=
"chapter">
36 <xsl:variable name=
"id">
37 <xsl:call-template name=
"object.id"/>
40 <xsl:variable name=
"master-reference">
41 <xsl:call-template name=
"select.pagemaster"/>
44 <fo:page-sequence hyphenate=
"{$hyphenate}"
45 master-reference=
"{$master-reference}"
46 force-page-count=
"end-on-even">
47 <xsl:attribute name=
"language">
48 <xsl:call-template name=
"l10n.language"/>
50 <xsl:attribute name=
"format">
51 <xsl:call-template name=
"page.number.format">
52 <xsl:with-param name=
"master-reference" select=
"$master-reference"/>
55 <xsl:attribute name=
"initial-page-number">
56 <xsl:call-template name=
"initial.page.number">
57 <xsl:with-param name=
"master-reference" select=
"$master-reference"/>
62 <xsl:attribute name="force-page-count">
63 <xsl:call-template name="force.page.count">
64 <xsl:with-param name="master-reference" select="$master-reference"/>
69 <xsl:attribute name=
"hyphenation-character">
70 <xsl:call-template name=
"gentext">
71 <xsl:with-param name=
"key" select=
"'hyphenation-character'"/>
74 <xsl:attribute name=
"hyphenation-push-character-count">
75 <xsl:call-template name=
"gentext">
76 <xsl:with-param name=
"key" select=
"'hyphenation-push-character-count'"/>
79 <xsl:attribute name=
"hyphenation-remain-character-count">
80 <xsl:call-template name=
"gentext">
81 <xsl:with-param name=
"key" select=
"'hyphenation-remain-character-count'"/>
85 <xsl:apply-templates select=
"." mode=
"running.head.mode">
86 <xsl:with-param name=
"master-reference" select=
"$master-reference"/>
87 </xsl:apply-templates>
89 <xsl:apply-templates select=
"." mode=
"running.foot.mode">
90 <xsl:with-param name=
"master-reference" select=
"$master-reference"/>
91 </xsl:apply-templates>
93 <fo:flow flow-name=
"xsl-region-body">
94 <xsl:call-template name=
"set.flow.properties">
95 <xsl:with-param name=
"element" select=
"local-name(.)"/>
96 <xsl:with-param name=
"master-reference" select=
"$master-reference"/>
100 xsl:
use-attribute-sets=
"component.titlepage.properties">
101 <xsl:call-template name=
"chapter.titlepage"/>
104 <xsl:variable name=
"toc.params">
105 <xsl:call-template name=
"find.path.params">
106 <xsl:with-param name=
"table" select=
"normalize-space($generate.toc)"/>
109 <xsl:if test=
"contains($toc.params, 'toc')">
110 <xsl:call-template name=
"component.toc">
111 <xsl:with-param name=
"toc.title.p"
112 select=
"contains($toc.params, 'title')"/>
114 <xsl:call-template name=
"component.toc.separator"/>
116 <xsl:apply-templates/>