1<?xml version='1.0'?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                xmlns:fo="http://www.w3.org/1999/XSL/Format"
4                version='1.0'>
5
6<!-- ********************************************************************
7     $Id$
8     ********************************************************************
9
10     This file is part of the XSL DocBook Stylesheet distribution.
11     See /README or http://nwalsh.com/docbook/xsl/ for copyright
12     and other information.
13
14     ******************************************************************** -->
15
16<!-- ==================================================================== -->
17
18<xsl:template name="block.object">
19  <fo:block>
20    <xsl:apply-templates/>
21  </fo:block>
22</xsl:template>
23
24<!-- ==================================================================== -->
25
26<xsl:template match="para">
27  <fo:block xsl:use-attribute-sets="normal.para.spacing">
28    <xsl:apply-templates/>
29  </fo:block>
30</xsl:template>
31
32<xsl:template match="simpara">
33  <fo:block xsl:use-attribute-sets="normal.para.spacing">
34    <xsl:apply-templates/>
35  </fo:block>
36</xsl:template>
37
38<xsl:template match="formalpara">
39  <fo:block xsl:use-attribute-sets="normal.para.spacing">
40    <xsl:apply-templates/>
41  </fo:block>
42</xsl:template>
43
44<xsl:template match="formalpara/title">
45  <fo:inline font-weight="bold"
46             keep-with-next.within-line="always"
47             padding-end="1em">
48    <xsl:apply-templates/>
49  </fo:inline>
50</xsl:template>
51
52<xsl:template match="formalpara/para">
53  <xsl:apply-templates/>
54</xsl:template>
55
56<!-- ==================================================================== -->
57
58<xsl:template match="blockquote">
59  <fo:block start-indent="0.5in" end-indent="0.5in">
60    <xsl:call-template name="semiformal.object"/>
61  </fo:block>
62</xsl:template>
63
64<xsl:template match="epigraph">
65  <fo:block>
66    <xsl:apply-templates select="para"/>
67    <fo:inline>
68      <xsl:text>--</xsl:text>
69      <xsl:apply-templates select="attribution"/>
70    </fo:inline>
71  </fo:block>
72</xsl:template>
73
74<xsl:template match="attribution">
75  <fo:inline><xsl:apply-templates/></fo:inline>
76</xsl:template>
77
78<!-- ==================================================================== -->
79
80<xsl:template match="sidebar">
81  <fo:block>
82    <xsl:if test="/title">
83      <fo:block font-weight="bold"
84                keep-with-next.within-column="always"
85                hyphenate="false">
86        <xsl:apply-templates select="/title" mode="sidebar.title.mode"/>
87      </fo:block>
88    </xsl:if>
89
90    <xsl:apply-templates/>
91  </fo:block>
92</xsl:template>
93
94<xsl:template match="sidebar/title">
95</xsl:template>
96
97<xsl:template match="sidebar/title" mode="sidebar.title.mode">
98  <xsl:apply-templates/>
99</xsl:template>
100
101<!-- ==================================================================== -->
102
103<xsl:template match="abstract">
104  <fo:block>
105    <xsl:if test="@id">
106      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
107    </xsl:if>
108    <xsl:call-template name="formal.object.heading">
109      <xsl:with-param name="title">
110        <xsl:apply-templates select="." mode="title.markup"/>
111      </xsl:with-param>
112    </xsl:call-template>
113    <xsl:apply-templates/>
114  </fo:block>
115</xsl:template>
116
117<xsl:template match="abstract/title">
118</xsl:template>
119
120<!-- ==================================================================== -->
121
122<xsl:template match="msgset">
123  <xsl:apply-templates/>
124</xsl:template>
125
126<xsl:template match="msgentry">
127  <xsl:call-template name="block.object"/>
128</xsl:template>
129
130<xsl:template match="msg">
131  <xsl:call-template name="block.object"/>
132</xsl:template>
133
134<xsl:template match="msgmain">
135  <xsl:apply-templates/>
136</xsl:template>
137
138<xsl:template match="msgsub">
139  <xsl:apply-templates/>
140</xsl:template>
141
142<xsl:template match="msgrel">
143  <xsl:apply-templates/>
144</xsl:template>
145
146<xsl:template match="msgtext">
147  <xsl:apply-templates/>
148</xsl:template>
149
150<xsl:template match="msginfo">
151  <xsl:call-template name="block.object"/>
152</xsl:template>
153
154<xsl:template match="msglevel">
155  <fo:block>
156    <fo:inline font-weight="bold"
157               keep-with-next.within-line="always">
158      <xsl:call-template name="gentext.template">
159        <xsl:with-param name="context" select="'msgset'"/>
160        <xsl:with-param name="name" select="'MsgLevel'"/>
161      </xsl:call-template>
162    </fo:inline>
163    <xsl:apply-templates/>
164  </fo:block>
165</xsl:template>
166
167<xsl:template match="msgorig">
168  <fo:block>
169    <fo:inline font-weight="bold"
170               keep-with-next.within-line="always">
171      <xsl:call-template name="gentext.template">
172        <xsl:with-param name="context" select="'msgset'"/>
173        <xsl:with-param name="name" select="'MsgOrig'"/>
174      </xsl:call-template>
175    </fo:inline>
176    <xsl:apply-templates/>
177  </fo:block>
178</xsl:template>
179
180<xsl:template match="msgaud">
181  <fo:block>
182    <fo:inline font-weight="bold"
183               keep-with-next.within-line="always">
184      <xsl:call-template name="gentext.template">
185        <xsl:with-param name="context" select="'msgset'"/>
186        <xsl:with-param name="name" select="'MsgAud'"/>
187      </xsl:call-template>
188    </fo:inline>
189    <xsl:apply-templates/>
190  </fo:block>
191</xsl:template>
192
193<xsl:template match="msgexplan">
194  <xsl:call-template name="block.object"/>
195</xsl:template>
196
197<xsl:template match="msgexplan/title">
198  <fo:block font-weight="bold"
199            keep-with-next.within-column="always"
200            hyphenate="false">
201    <xsl:apply-templates/>
202  </fo:block>
203</xsl:template>
204
205<!-- ==================================================================== -->
206
207<xsl:template match="highlights">
208  <xsl:call-template name="block.object"/>
209</xsl:template>
210
211<!-- ==================================================================== -->
212
213</xsl:stylesheet>
214