1 <?xml version="1.0" encoding="US-ASCII"?>
2 <!--This file was created automatically by html2xhtml-->
3 <!--from the HTML stylesheets. Do not edit this file.-->
4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
6 <!-- ********************************************************************
8 ********************************************************************
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.
14 ******************************************************************** -->
16 <!-- ==================================================================== -->
17 <!-- What should we do about styling blockinfo? -->
19 <xsl:template match="blockinfo">
23 <!-- ==================================================================== -->
25 <xsl:template name="block.object">
26 <div class="{name(.)}">
27 <xsl:call-template name="anchor"/>
28 <xsl:apply-templates/>
32 <!-- ==================================================================== -->
34 <xsl:template match="para">
35 <xsl:call-template name="paragraph">
36 <xsl:with-param name="class">
37 <xsl:if test="@role and $para.propagates.style != 0">
38 <xsl:value-of select="@role"/>
41 <xsl:with-param name="content">
42 <xsl:if test="position() = 1 and parent::listitem">
43 <xsl:call-template name="anchor">
44 <xsl:with-param name="node" select="parent::listitem"/>
48 <xsl:call-template name="anchor"/>
49 <xsl:apply-templates/>
54 <xsl:template name="paragraph">
55 <xsl:param name="class" select="''"/>
56 <xsl:param name="content"/>
58 <xsl:variable name="p">
60 <xsl:if test="$class != ''">
61 <xsl:attribute name="class">
62 <xsl:value-of select="$class"/>
65 <xsl:copy-of select="$content"/>
70 <xsl:when test="$html.cleanup != 0">
71 <xsl:call-template name="unwrap.p">
72 <xsl:with-param name="p" select="$p"/>
76 <xsl:copy-of select="$p"/>
81 <xsl:template match="simpara">
82 <!-- see also listitem/simpara in lists.xsl -->
84 <xsl:if test="@role and $para.propagates.style != 0">
85 <xsl:attribute name="class">
86 <xsl:value-of select="@role"/>
90 <xsl:call-template name="anchor"/>
91 <xsl:apply-templates/>
95 <xsl:template match="formalpara">
96 <xsl:call-template name="paragraph">
97 <xsl:with-param name="class">
98 <xsl:if test="@role and $para.propagates.style != 0">
99 <xsl:value-of select="@role"/>
102 <xsl:with-param name="content">
103 <xsl:call-template name="anchor"/>
104 <xsl:apply-templates/>
109 <xsl:template match="formalpara/title">
110 <xsl:variable name="titleStr">
111 <xsl:apply-templates/>
113 <xsl:variable name="lastChar">
114 <xsl:if test="$titleStr != ''">
115 <xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/>
120 <xsl:copy-of select="$titleStr"/>
121 <xsl:if test="$lastChar != '' and not(contains($runinhead.title.end.punct, $lastChar))">
122 <xsl:value-of select="$runinhead.default.title.end.punct"/>
124 <xsl:text> </xsl:text>
128 <xsl:template match="formalpara/para">
129 <xsl:apply-templates/>
132 <!-- ==================================================================== -->
134 <xsl:template match="blockquote">
135 <div class="{local-name(.)}">
136 <xsl:if test="@lang or @xml:lang">
137 <xsl:call-template name="language.attribute"/>
139 <xsl:call-template name="anchor"/>
142 <xsl:when test="attribution">
143 <table border="0" width="100%" cellspacing="0" cellpadding="0" class="blockquote" summary="Block quote">
145 <td width="10%" valign="top"> </td>
146 <td width="80%" valign="top">
147 <xsl:apply-templates select="child::*[local-name(.)!='attribution']"/>
149 <td width="10%" valign="top"> </td>
152 <td width="10%" valign="top"> </td>
153 <td colspan="2" align="right" valign="top">
154 <xsl:text>--</xsl:text>
155 <xsl:apply-templates select="attribution"/>
161 <blockquote class="{local-name(.)}">
162 <xsl:apply-templates/>
169 <xsl:template match="blockquote/title">
170 <div class="blockquote-title">
173 <xsl:apply-templates/>
179 <xsl:template match="epigraph">
180 <div class="{name(.)}">
181 <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
182 <xsl:if test="attribution">
183 <div class="attribution">
184 <span>--<xsl:apply-templates select="attribution"/></span>
190 <xsl:template match="attribution">
191 <span class="{name(.)}"><xsl:apply-templates/></span>
194 <!-- ==================================================================== -->
196 <xsl:template match="sidebar">
197 <div class="{name(.)}">
198 <xsl:call-template name="anchor"/>
199 <xsl:apply-templates/>
203 <xsl:template match="sidebar/title">
205 <b><xsl:apply-templates/></b>
209 <!-- ==================================================================== -->
211 <xsl:template match="abstract">
212 <div class="{name(.)}">
213 <xsl:call-template name="anchor"/>
214 <xsl:call-template name="formal.object.heading">
215 <xsl:with-param name="title">
216 <xsl:apply-templates select="." mode="title.markup">
217 <xsl:with-param name="allow-anchors" select="'1'"/>
218 </xsl:apply-templates>
221 <xsl:apply-templates/>
225 <xsl:template match="abstract/title">
228 <!-- ==================================================================== -->
230 <xsl:template match="msgset">
231 <xsl:apply-templates/>
234 <xsl:template match="msgentry">
235 <xsl:call-template name="block.object"/>
238 <xsl:template match="simplemsgentry">
239 <xsl:call-template name="block.object"/>
242 <xsl:template match="msg">
243 <xsl:call-template name="block.object"/>
246 <xsl:template match="msgmain">
247 <xsl:apply-templates/>
250 <xsl:template match="msgmain/title">
251 <b><xsl:apply-templates/></b>
254 <xsl:template match="msgsub">
255 <xsl:apply-templates/>
258 <xsl:template match="msgsub/title">
259 <b><xsl:apply-templates/></b>
262 <xsl:template match="msgrel">
263 <xsl:apply-templates/>
266 <xsl:template match="msgrel/title">
267 <b><xsl:apply-templates/></b>
270 <xsl:template match="msgtext">
271 <xsl:apply-templates/>
274 <xsl:template match="msginfo">
275 <xsl:call-template name="block.object"/>
278 <xsl:template match="msglevel">
281 <xsl:call-template name="gentext.template">
282 <xsl:with-param name="context" select="'msgset'"/>
283 <xsl:with-param name="name" select="'MsgLevel'"/>
286 <xsl:apply-templates/>
290 <xsl:template match="msgorig">
293 <xsl:call-template name="gentext.template">
294 <xsl:with-param name="context" select="'msgset'"/>
295 <xsl:with-param name="name" select="'MsgOrig'"/>
298 <xsl:apply-templates/>
302 <xsl:template match="msgaud">
305 <xsl:call-template name="gentext.template">
306 <xsl:with-param name="context" select="'msgset'"/>
307 <xsl:with-param name="name" select="'MsgAud'"/>
310 <xsl:apply-templates/>
314 <xsl:template match="msgexplan">
315 <xsl:call-template name="block.object"/>
318 <xsl:template match="msgexplan/title">
319 <p><b><xsl:apply-templates/></b></p>
322 <!-- ==================================================================== -->
324 <xsl:template match="revhistory">
325 <div class="{name(.)}">
326 <table border="0" width="100%" summary="Revision history">
328 <th align="left" valign="top" colspan="3">
330 <xsl:call-template name="gentext">
331 <xsl:with-param name="key" select="'RevHistory'"/>
336 <xsl:apply-templates/>
341 <xsl:template match="revhistory/revision">
342 <xsl:variable name="revnumber" select="revnumber"/>
343 <xsl:variable name="revdate" select="date"/>
344 <xsl:variable name="revauthor" select="authorinitials"/>
345 <xsl:variable name="revremark" select="revremark|revdescription"/>
348 <xsl:if test="$revnumber">
349 <xsl:call-template name="gentext">
350 <xsl:with-param name="key" select="'Revision'"/>
352 <xsl:call-template name="gentext.space"/>
353 <xsl:apply-templates select="$revnumber"/>
357 <xsl:apply-templates select="$revdate"/>
360 <xsl:when test="count($revauthor)=0">
362 <xsl:call-template name="dingbat">
363 <xsl:with-param name="dingbat">nbsp</xsl:with-param>
369 <xsl:for-each select="$revauthor">
370 <xsl:apply-templates select="."/>
371 <xsl:if test="position() != last()">
372 <xsl:text>, </xsl:text>
379 <xsl:if test="$revremark">
381 <td align="left" colspan="3">
382 <xsl:apply-templates select="$revremark"/>
388 <xsl:template match="revision/revnumber">
389 <xsl:apply-templates/>
392 <xsl:template match="revision/date">
393 <xsl:apply-templates/>
396 <xsl:template match="revision/authorinitials">
397 <xsl:text>, </xsl:text>
398 <xsl:apply-templates/>
401 <xsl:template match="revision/authorinitials[1]" priority="2">
402 <xsl:apply-templates/>
405 <xsl:template match="revision/revremark">
406 <xsl:apply-templates/>
409 <xsl:template match="revision/revdescription">
410 <xsl:apply-templates/>
413 <!-- ==================================================================== -->
415 <xsl:template match="ackno">
416 <p class="{name(.)}">
417 <xsl:apply-templates/>
421 <!-- ==================================================================== -->
423 <xsl:template match="highlights">
424 <xsl:call-template name="block.object"/>
427 <!-- ==================================================================== -->