1 <?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="d" version="1.0">
3 <!-- ********************************************************************
5 This file is part of the XSL DocBook Stylesheet distribution.
6 See ../README or http://cdn.docbook.org/release/xsl/current/ for
7 copyright and other information.
9 ******************************************************************** -->
11 <!-- ==================================================================== -->
12 <!-- What should we do about styling blockinfo? -->
14 <xsl:template match="d:blockinfo|d:info">
18 <!-- ==================================================================== -->
20 <xsl:template name="block.object">
22 <xsl:call-template name="common.html.attributes"/>
23 <xsl:call-template name="id.attribute"/>
24 <xsl:call-template name="anchor"/>
25 <xsl:apply-templates/>
29 <!-- ==================================================================== -->
31 <xsl:template match="d:para">
32 <xsl:call-template name="paragraph">
33 <xsl:with-param name="class">
34 <xsl:if test="@role and $para.propagates.style != 0">
35 <xsl:value-of select="@role"/>
38 <xsl:with-param name="content">
39 <xsl:if test="position() = 1 and parent::d:listitem">
40 <xsl:call-template name="anchor">
41 <xsl:with-param name="node" select="parent::d:listitem"/>
45 <xsl:call-template name="anchor"/>
46 <xsl:apply-templates/>
51 <xsl:template name="paragraph">
52 <xsl:param name="class" select="''"/>
53 <xsl:param name="content"/>
55 <xsl:variable name="p">
57 <xsl:call-template name="id.attribute"/>
59 <xsl:when test="$class != ''">
60 <xsl:call-template name="common.html.attributes">
61 <xsl:with-param name="class" select="$class"/>
65 <xsl:call-template name="common.html.attributes">
66 <xsl:with-param name="class" select="''"/>
71 <xsl:copy-of select="$content"/>
76 <xsl:when test="$html.cleanup != 0">
77 <xsl:call-template name="unwrap.p">
78 <xsl:with-param name="p" select="$p"/>
82 <xsl:copy-of select="$p"/>
87 <xsl:template match="d:simpara">
88 <!-- see also listitem/simpara in lists.xsl -->
90 <xsl:call-template name="id.attribute"/>
91 <xsl:call-template name="locale.html.attributes"/>
92 <xsl:if test="@role and $para.propagates.style != 0">
93 <xsl:apply-templates select="." mode="class.attribute">
94 <xsl:with-param name="class" select="@role"/>
95 </xsl:apply-templates>
98 <xsl:call-template name="anchor"/>
99 <xsl:apply-templates/>
103 <xsl:template match="d:formalpara">
104 <xsl:call-template name="paragraph">
105 <xsl:with-param name="class">
106 <xsl:if test="@role and $para.propagates.style != 0">
107 <xsl:value-of select="@role"/>
110 <xsl:with-param name="content">
111 <xsl:call-template name="anchor"/>
112 <xsl:apply-templates/>
117 <!-- Only use title from info -->
118 <xsl:template match="d:formalpara/d:info">
119 <xsl:apply-templates select="d:title"/>
122 <xsl:template match="d:formalpara/d:title|d:formalpara/d:info/d:title">
123 <xsl:variable name="titleStr">
124 <xsl:apply-templates/>
126 <xsl:variable name="lastChar">
127 <xsl:if test="$titleStr != ''">
128 <xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/>
133 <xsl:when test="$make.clean.html != 0">
134 <span class="formalpara-title">
135 <xsl:copy-of select="$titleStr"/>
136 <xsl:if test="$lastChar != '' and not(contains($runinhead.title.end.punct, $lastChar))">
137 <xsl:value-of select="$runinhead.default.title.end.punct"/>
139 <xsl:text> </xsl:text>
144 <xsl:copy-of select="$titleStr"/>
145 <xsl:if test="$lastChar != '' and not(contains($runinhead.title.end.punct, $lastChar))">
146 <xsl:value-of select="$runinhead.default.title.end.punct"/>
148 <xsl:text> </xsl:text>
154 <xsl:template match="d:formalpara/d:para">
155 <xsl:apply-templates/>
158 <!-- ==================================================================== -->
160 <xsl:template match="d:blockquote">
162 <xsl:call-template name="common.html.attributes"/>
163 <xsl:call-template name="id.attribute"/>
164 <xsl:call-template name="anchor"/>
167 <xsl:when test="d:attribution">
168 <table border="{$table.border.off}" class="blockquote">
169 <xsl:if test="$css.decoration != 0">
170 <xsl:attribute name="style">
171 <xsl:text>width: 100%; cellspacing: 0; cellpadding: 0;</xsl:text>
174 <xsl:if test="$div.element != 'section'">
175 <xsl:attribute name="summary">Block quote</xsl:attribute>
178 <td width="10%" valign="top"> </td>
179 <td width="80%" valign="top">
180 <xsl:apply-templates select="child::*[local-name(.)!='attribution']"/>
182 <td width="10%" valign="top"> </td>
185 <td width="10%" valign="top"> </td>
186 <td colspan="2" align="{$direction.align.end}" valign="top">
187 <xsl:text>--</xsl:text>
188 <xsl:apply-templates select="d:attribution"/>
195 <xsl:call-template name="common.html.attributes"/>
196 <xsl:apply-templates/>
203 <xsl:template match="d:blockquote/d:title|d:blockquote/d:info/d:title">
205 <xsl:when test="$make.clean.html != 0">
206 <div class="blockquote-title">
207 <xsl:apply-templates/>
211 <div class="blockquote-title">
214 <xsl:apply-templates/>
222 <!-- Use an em dash per Chicago Manual of Style and https://sourceforge.net/tracker/index.php?func=detail&aid=2793878&group_id=21935&atid=373747 -->
223 <xsl:template match="d:epigraph">
225 <xsl:call-template name="common.html.attributes"/>
226 <xsl:call-template name="id.attribute"/>
227 <xsl:apply-templates select="child::*[local-name(.)!='attribution']"/>
228 <xsl:if test="d:attribution">
229 <div class="attribution">
230 <span>—<xsl:apply-templates select="d:attribution"/></span>
236 <xsl:template match="d:attribution">
238 <xsl:call-template name="common.html.attributes"/>
239 <xsl:call-template name="id.attribute"/>
240 <xsl:apply-templates/>
244 <!-- ==================================================================== -->
246 <xsl:template match="d:sidebar">
248 <xsl:call-template name="common.html.attributes"/>
249 <xsl:call-template name="id.attribute"/>
250 <xsl:call-template name="anchor"/>
251 <xsl:call-template name="sidebar.titlepage"/>
252 <xsl:apply-templates/>
256 <xsl:template match="d:abstract/d:title|d:sidebar/d:title">
259 <xsl:template match="d:sidebar/d:sidebarinfo|d:sidebar/d:info"/>
261 <xsl:template match="d:abstract">
263 <xsl:call-template name="common.html.attributes"/>
264 <xsl:call-template name="anchor"/>
265 <xsl:call-template name="formal.object.heading">
266 <xsl:with-param name="title">
267 <xsl:apply-templates select="." mode="title.markup">
268 <xsl:with-param name="allow-anchors" select="'1'"/>
269 </xsl:apply-templates>
272 <xsl:apply-templates/>
276 <!-- ==================================================================== -->
278 <xsl:template match="d:msgset">
279 <xsl:apply-templates/>
282 <xsl:template match="d:msgentry">
283 <xsl:call-template name="block.object"/>
286 <xsl:template match="d:simplemsgentry">
287 <xsl:call-template name="block.object"/>
290 <xsl:template match="d:msg">
291 <xsl:call-template name="block.object"/>
294 <xsl:template match="d:msgmain">
295 <xsl:apply-templates/>
298 <xsl:template match="d:msgmain/d:title">
300 <xsl:when test="$make.clean.html != 0">
301 <span class="msgmain-title">
302 <xsl:apply-templates/>
306 <strong><xsl:apply-templates/></strong>
311 <xsl:template match="d:msgsub">
312 <xsl:apply-templates/>
315 <xsl:template match="d:msgsub/d:title">
317 <xsl:when test="$make.clean.html != 0">
318 <span class="msgsub-title">
319 <xsl:apply-templates/>
323 <strong><xsl:apply-templates/></strong>
328 <xsl:template match="d:msgrel">
329 <xsl:apply-templates/>
332 <xsl:template match="d:msgrel/d:title">
334 <xsl:when test="$make.clean.html != 0">
335 <span class="msgrel-title">
336 <xsl:apply-templates/>
340 <strong><xsl:apply-templates/></strong>
345 <xsl:template match="d:msgtext">
346 <xsl:apply-templates/>
349 <xsl:template match="d:msginfo">
350 <xsl:call-template name="block.object"/>
353 <xsl:template match="d:msglevel">
355 <xsl:when test="$make.clean.html != 0">
356 <div class="msglevel">
357 <span class="msglevel-title">
358 <xsl:call-template name="gentext.template">
359 <xsl:with-param name="context" select="'msgset'"/>
360 <xsl:with-param name="name" select="'MsgLevel'"/>
363 <xsl:apply-templates/>
369 <xsl:call-template name="gentext.template">
370 <xsl:with-param name="context" select="'msgset'"/>
371 <xsl:with-param name="name" select="'MsgLevel'"/>
374 <xsl:apply-templates/>
380 <xsl:template match="d:msgorig">
382 <xsl:when test="$make.clean.html != 0">
383 <div class="msgorig">
384 <span class="msgorig-title">
385 <xsl:call-template name="gentext.template">
386 <xsl:with-param name="context" select="'msgset'"/>
387 <xsl:with-param name="name" select="'MsgOrig'"/>
390 <xsl:apply-templates/>
396 <xsl:call-template name="gentext.template">
397 <xsl:with-param name="context" select="'msgset'"/>
398 <xsl:with-param name="name" select="'MsgOrig'"/>
401 <xsl:apply-templates/>
407 <xsl:template match="d:msgaud">
409 <xsl:when test="$make.clean.html != 0">
411 <span class="msgaud-title">
412 <xsl:call-template name="gentext.template">
413 <xsl:with-param name="context" select="'msgset'"/>
414 <xsl:with-param name="name" select="'MsgAud'"/>
417 <xsl:apply-templates/>
423 <xsl:call-template name="gentext.template">
424 <xsl:with-param name="context" select="'msgset'"/>
425 <xsl:with-param name="name" select="'MsgAud'"/>
428 <xsl:apply-templates/>
434 <xsl:template match="d:msgexplan">
435 <xsl:call-template name="block.object"/>
438 <xsl:template match="d:msgexplan/d:title">
440 <xsl:when test="$make.clean.html != 0">
441 <div class="msgexplan">
442 <span class="msgexplan-title">
443 <xsl:apply-templates/>
450 <xsl:apply-templates/>
457 <!-- ==================================================================== -->
459 <xsl:template match="d:revhistory">
461 <xsl:call-template name="common.html.attributes"/>
462 <xsl:call-template name="id.attribute"/>
464 <xsl:if test="$css.decoration != 0">
465 <xsl:attribute name="style">
466 <xsl:text>border-style:solid; width:100%;</xsl:text>
469 <!-- include summary attribute if not HTML5 -->
470 <xsl:if test="$div.element != 'section'">
471 <xsl:attribute name="summary">
472 <xsl:call-template name="gentext">
473 <xsl:with-param name="key">revhistory</xsl:with-param>
478 <th align="{$direction.align.start}" valign="top" colspan="3">
480 <xsl:call-template name="gentext">
481 <xsl:with-param name="key" select="'RevHistory'"/>
486 <xsl:apply-templates/>
491 <xsl:template match="d:revhistory/d:revision">
492 <xsl:variable name="revnumber" select="d:revnumber"/>
493 <xsl:variable name="revdate" select="d:date"/>
494 <xsl:variable name="revauthor" select="d:authorinitials|d:author"/>
495 <xsl:variable name="revremark" select="d:revremark|d:revdescription"/>
497 <td align="{$direction.align.start}">
498 <xsl:if test="$revnumber">
499 <xsl:call-template name="gentext">
500 <xsl:with-param name="key" select="'Revision'"/>
502 <xsl:call-template name="gentext.space"/>
503 <xsl:apply-templates select="$revnumber"/>
506 <td align="{$direction.align.start}">
507 <xsl:apply-templates select="$revdate"/>
510 <xsl:when test="count($revauthor)=0">
511 <td align="{$direction.align.start}">
512 <xsl:call-template name="dingbat">
513 <xsl:with-param name="dingbat">nbsp</xsl:with-param>
518 <td align="{$direction.align.start}">
519 <xsl:for-each select="$revauthor">
520 <xsl:apply-templates select="."/>
521 <xsl:if test="position() != last()">
522 <xsl:text>, </xsl:text>
529 <xsl:if test="$revremark">
531 <td align="{$direction.align.start}" colspan="3">
532 <xsl:apply-templates select="$revremark"/>
538 <xsl:template match="d:revision/d:revnumber">
539 <xsl:apply-templates/>
542 <xsl:template match="d:revision/d:date">
543 <xsl:apply-templates/>
546 <xsl:template match="d:revision/d:authorinitials">
547 <xsl:text>, </xsl:text>
548 <xsl:apply-templates/>
551 <xsl:template match="d:revision/d:authorinitials[1]" priority="2">
552 <xsl:apply-templates/>
555 <xsl:template match="d:revision/d:revremark">
556 <xsl:apply-templates/>
559 <xsl:template match="d:revision/d:revdescription">
560 <xsl:apply-templates/>
563 <!-- ==================================================================== -->
565 <xsl:template match="d:ackno|d:acknowledgements[parent::d:article]">
566 <xsl:call-template name="block.object"/>
569 <!-- ==================================================================== -->
571 <xsl:template match="d:highlights">
572 <xsl:call-template name="block.object"/>
575 <!-- ==================================================================== -->