docbook_xsl_wrapper 0.1.2 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/CHANGELOG +41 -0
- data/README.md +9 -17
- data/bin/docbook_xsl_wrapper +9 -14
- data/docbook_xsl_wrapper.gemspec +8 -7
- data/lib/docbook_xsl_wrapper.rb +24 -1
- data/lib/docbook_xsl_wrapper/epub.rb +124 -122
- data/lib/docbook_xsl_wrapper/options.rb +1 -1
- data/lib/docbook_xsl_wrapper/validate.rb +22 -0
- data/lib/docbook_xsl_wrapper/version.rb +1 -1
- data/schema/docbookxi.rng +18654 -0
- data/spec/docbook_xsl_wrapper/validate_spec.rb +64 -0
- data/xsl/AUTHORS +4 -0
- data/xsl/COPYING +48 -0
- data/xsl/REVISION +1 -0
- data/xsl/VERSION.xsl +115 -0
- data/xsl/common/addns.xsl +124 -0
- data/xsl/common/af.xml +1272 -0
- data/xsl/common/am.xml +1272 -0
- data/xsl/common/ar.xml +1272 -0
- data/xsl/common/as.xml +703 -0
- data/xsl/common/ast.xml +703 -0
- data/xsl/common/autoidx-kimber.xsl +45 -0
- data/xsl/common/autoidx-kosek.xsl +155 -0
- data/xsl/common/az.xml +715 -0
- data/xsl/common/bg.xml +767 -0
- data/xsl/common/bn.xml +1272 -0
- data/xsl/common/bn_in.xml +703 -0
- data/xsl/common/bs.xml +705 -0
- data/xsl/common/ca.xml +703 -0
- data/xsl/common/charmap.xsl +222 -0
- data/xsl/common/common.xsl +2129 -0
- data/xsl/common/cs.xml +743 -0
- data/xsl/common/cy.xml +1288 -0
- data/xsl/common/da.xml +707 -0
- data/xsl/common/de.xml +709 -0
- data/xsl/common/el.xml +772 -0
- data/xsl/common/en.xml +1272 -0
- data/xsl/common/entities.ent +67 -0
- data/xsl/common/eo.xml +1272 -0
- data/xsl/common/es.xml +719 -0
- data/xsl/common/et.xml +1272 -0
- data/xsl/common/eu.xml +1272 -0
- data/xsl/common/fa.xml +703 -0
- data/xsl/common/fi.xml +713 -0
- data/xsl/common/fr.xml +733 -0
- data/xsl/common/ga.xml +1272 -0
- data/xsl/common/gentext.xsl +855 -0
- data/xsl/common/gl.xml +1272 -0
- data/xsl/common/gu.xml +703 -0
- data/xsl/common/he.xml +1272 -0
- data/xsl/common/hi.xml +703 -0
- data/xsl/common/hr.xml +705 -0
- data/xsl/common/hu.xml +721 -0
- data/xsl/common/id.xml +1272 -0
- data/xsl/common/insertfile.xsl +113 -0
- data/xsl/common/is.xml +715 -0
- data/xsl/common/it.xml +1272 -0
- data/xsl/common/ja.xml +703 -0
- data/xsl/common/ka.xml +743 -0
- data/xsl/common/kn.xml +1272 -0
- data/xsl/common/ko.xml +1272 -0
- data/xsl/common/ky.xml +775 -0
- data/xsl/common/l10n.dtd +64 -0
- data/xsl/common/l10n.xml +78 -0
- data/xsl/common/l10n.xsl +598 -0
- data/xsl/common/la.xml +1272 -0
- data/xsl/common/labels.xsl +933 -0
- data/xsl/common/lt.xml +721 -0
- data/xsl/common/lv.xml +1272 -0
- data/xsl/common/ml.xml +703 -0
- data/xsl/common/mn.xml +773 -0
- data/xsl/common/mr.xml +703 -0
- data/xsl/common/nb.xml +1272 -0
- data/xsl/common/nds.xml +709 -0
- data/xsl/common/nl.xml +703 -0
- data/xsl/common/nn.xml +1272 -0
- data/xsl/common/olink.xsl +1284 -0
- data/xsl/common/or.xml +1272 -0
- data/xsl/common/pa.xml +703 -0
- data/xsl/common/pi.xml +168 -0
- data/xsl/common/pi.xsl +347 -0
- data/xsl/common/pl.xml +721 -0
- data/xsl/common/pt.xml +1272 -0
- data/xsl/common/pt_br.xml +1272 -0
- data/xsl/common/refentry.xsl +1353 -0
- data/xsl/common/ro.xml +1272 -0
- data/xsl/common/ru.xml +769 -0
- data/xsl/common/sk.xml +1272 -0
- data/xsl/common/sl.xml +1272 -0
- data/xsl/common/sq.xml +1272 -0
- data/xsl/common/sr.xml +763 -0
- data/xsl/common/sr_Latn.xml +722 -0
- data/xsl/common/subtitles.xsl +181 -0
- data/xsl/common/sv.xml +707 -0
- data/xsl/common/ta.xml +703 -0
- data/xsl/common/table.xsl +515 -0
- data/xsl/common/targetdatabase.dtd +49 -0
- data/xsl/common/targets.xsl +338 -0
- data/xsl/common/te.xml +703 -0
- data/xsl/common/th.xml +1272 -0
- data/xsl/common/titles.xsl +850 -0
- data/xsl/common/tl.xml +1272 -0
- data/xsl/common/tr.xml +709 -0
- data/xsl/common/uk.xml +769 -0
- data/xsl/common/ur.xml +705 -0
- data/xsl/common/utility.xsl +291 -0
- data/xsl/common/vi.xml +1272 -0
- data/xsl/common/xh.xml +1272 -0
- data/xsl/common/zh.xml +703 -0
- data/xsl/common/zh_cn.xml +703 -0
- data/xsl/common/zh_tw.xml +703 -0
- data/xsl/epub/docbook.xsl +1769 -0
- data/xsl/epub3/chunk.xsl +30 -0
- data/xsl/epub3/docbook-epub.css.xml +142 -0
- data/xsl/epub3/docbook.xsl +20 -0
- data/xsl/epub3/epub3-chunk-mods.xsl +52 -0
- data/xsl/epub3/epub3-element-mods.xsl +2533 -0
- data/xsl/epub3/titlepage.templates.xml +712 -0
- data/xsl/epub3/titlepage.templates.xsl +3842 -0
- data/xsl/lib/lib.xsl +533 -0
- data/xsl/xhtml/admon.xsl +142 -0
- data/xsl/xhtml/annotations.xsl +160 -0
- data/xsl/xhtml/autoidx.xsl +831 -0
- data/xsl/xhtml/autotoc.xsl +706 -0
- data/xsl/xhtml/biblio-iso690.xsl +1302 -0
- data/xsl/xhtml/biblio.xsl +1371 -0
- data/xsl/xhtml/block.xsl +584 -0
- data/xsl/xhtml/callout.xsl +210 -0
- data/xsl/xhtml/chunk-code.xsl +675 -0
- data/xsl/xhtml/chunk-common.xsl +1627 -0
- data/xsl/xhtml/chunker.xsl +317 -0
- data/xsl/xhtml/component.xsl +440 -0
- data/xsl/xhtml/division.xsl +214 -0
- data/xsl/xhtml/ebnf.xsl +331 -0
- data/xsl/xhtml/footnote.xsl +346 -0
- data/xsl/xhtml/formal.xsl +496 -0
- data/xsl/xhtml/glossary.xsl +602 -0
- data/xsl/xhtml/graphics.xsl +1537 -0
- data/xsl/xhtml/html-rtf.xsl +321 -0
- data/xsl/xhtml/html.xsl +690 -0
- data/xsl/xhtml/htmltbl.xsl +102 -0
- data/xsl/xhtml/index.xsl +264 -0
- data/xsl/xhtml/info.xsl +48 -0
- data/xsl/xhtml/inline.xsl +1508 -0
- data/xsl/xhtml/its.xsl +109 -0
- data/xsl/xhtml/keywords.xsl +38 -0
- data/xsl/xhtml/lists.xsl +1227 -0
- data/xsl/xhtml/math.xsl +286 -0
- data/xsl/xhtml/param.xsl +449 -0
- data/xsl/xhtml/pi.xsl +1237 -0
- data/xsl/xhtml/qandaset.xsl +440 -0
- data/xsl/xhtml/refentry.xsl +307 -0
- data/xsl/xhtml/sections.xsl +564 -0
- data/xsl/xhtml/synop.xsl +1623 -0
- data/xsl/xhtml/table.xsl +1179 -0
- data/xsl/xhtml/task.xsl +76 -0
- data/xsl/xhtml/titlepage.templates.xsl +4005 -0
- data/xsl/xhtml/titlepage.xsl +1108 -0
- data/xsl/xhtml/toc.xsl +334 -0
- data/xsl/xhtml/verbatim.xsl +389 -0
- data/xsl/xhtml/xref.xsl +1268 -0
- data/xsl/xhtml5/docbook.xsl +22 -0
- data/xsl/xhtml5/html5-chunk-mods.xsl +112 -0
- data/xsl/xhtml5/html5-element-mods.xsl +791 -0
- data/xsl/xhtml5/xhtml-docbook.xsl +531 -0
- metadata +207 -27
- data/.rvmrc +0 -48
- data/xslt/obfuscate.xsl +0 -12
data/xsl/xhtml/block.xsl
ADDED
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="ASCII"?>
|
|
2
|
+
<!--This file was created automatically by html2xhtml-->
|
|
3
|
+
<!--from the HTML stylesheets.-->
|
|
4
|
+
<xsl:stylesheet exclude-result-prefixes="d"
|
|
5
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook"
|
|
6
|
+
xmlns="http://www.w3.org/1999/xhtml" version="1.0">
|
|
7
|
+
|
|
8
|
+
<!-- ********************************************************************
|
|
9
|
+
$Id: block.xsl 9667 2012-11-26 23:10:44Z bobstayton $
|
|
10
|
+
********************************************************************
|
|
11
|
+
|
|
12
|
+
This file is part of the XSL DocBook Stylesheet distribution.
|
|
13
|
+
See ../README or http://docbook.sf.net/release/xsl/current/ for
|
|
14
|
+
copyright and other information.
|
|
15
|
+
|
|
16
|
+
******************************************************************** -->
|
|
17
|
+
|
|
18
|
+
<!-- ==================================================================== -->
|
|
19
|
+
<!-- What should we do about styling blockinfo? -->
|
|
20
|
+
|
|
21
|
+
<xsl:template match="d:blockinfo|d:info">
|
|
22
|
+
<!-- suppress -->
|
|
23
|
+
</xsl:template>
|
|
24
|
+
|
|
25
|
+
<!-- ==================================================================== -->
|
|
26
|
+
|
|
27
|
+
<xsl:template name="block.object">
|
|
28
|
+
<div>
|
|
29
|
+
<xsl:call-template name="common.html.attributes"/>
|
|
30
|
+
<xsl:call-template name="id.attribute"/>
|
|
31
|
+
<xsl:call-template name="anchor"/>
|
|
32
|
+
<xsl:apply-templates/>
|
|
33
|
+
</div>
|
|
34
|
+
</xsl:template>
|
|
35
|
+
|
|
36
|
+
<!-- ==================================================================== -->
|
|
37
|
+
|
|
38
|
+
<xsl:template match="d:para">
|
|
39
|
+
<xsl:call-template name="paragraph">
|
|
40
|
+
<xsl:with-param name="class">
|
|
41
|
+
<xsl:if test="@role and $para.propagates.style != 0">
|
|
42
|
+
<xsl:value-of select="@role"/>
|
|
43
|
+
</xsl:if>
|
|
44
|
+
</xsl:with-param>
|
|
45
|
+
<xsl:with-param name="content">
|
|
46
|
+
<xsl:if test="position() = 1 and parent::d:listitem">
|
|
47
|
+
<xsl:call-template name="anchor">
|
|
48
|
+
<xsl:with-param name="node" select="parent::d:listitem"/>
|
|
49
|
+
</xsl:call-template>
|
|
50
|
+
</xsl:if>
|
|
51
|
+
|
|
52
|
+
<xsl:call-template name="anchor"/>
|
|
53
|
+
<xsl:apply-templates/>
|
|
54
|
+
</xsl:with-param>
|
|
55
|
+
</xsl:call-template>
|
|
56
|
+
</xsl:template>
|
|
57
|
+
|
|
58
|
+
<xsl:template name="paragraph">
|
|
59
|
+
<xsl:param name="class" select="''"/>
|
|
60
|
+
<xsl:param name="content"/>
|
|
61
|
+
|
|
62
|
+
<xsl:variable name="p">
|
|
63
|
+
<p>
|
|
64
|
+
<xsl:call-template name="id.attribute"/>
|
|
65
|
+
<xsl:choose>
|
|
66
|
+
<xsl:when test="$class != ''">
|
|
67
|
+
<xsl:call-template name="common.html.attributes">
|
|
68
|
+
<xsl:with-param name="class" select="$class"/>
|
|
69
|
+
</xsl:call-template>
|
|
70
|
+
</xsl:when>
|
|
71
|
+
<xsl:otherwise>
|
|
72
|
+
<xsl:call-template name="common.html.attributes">
|
|
73
|
+
<xsl:with-param name="class" select="''"/>
|
|
74
|
+
</xsl:call-template>
|
|
75
|
+
</xsl:otherwise>
|
|
76
|
+
</xsl:choose>
|
|
77
|
+
|
|
78
|
+
<xsl:copy-of select="$content"/>
|
|
79
|
+
</p>
|
|
80
|
+
</xsl:variable>
|
|
81
|
+
|
|
82
|
+
<xsl:choose>
|
|
83
|
+
<xsl:when test="$html.cleanup != 0">
|
|
84
|
+
<xsl:call-template name="unwrap.p">
|
|
85
|
+
<xsl:with-param name="p" select="$p"/>
|
|
86
|
+
</xsl:call-template>
|
|
87
|
+
</xsl:when>
|
|
88
|
+
<xsl:otherwise>
|
|
89
|
+
<xsl:copy-of select="$p"/>
|
|
90
|
+
</xsl:otherwise>
|
|
91
|
+
</xsl:choose>
|
|
92
|
+
</xsl:template>
|
|
93
|
+
|
|
94
|
+
<xsl:template match="d:simpara">
|
|
95
|
+
<!-- see also listitem/simpara in lists.xsl -->
|
|
96
|
+
<p>
|
|
97
|
+
<xsl:call-template name="id.attribute"/>
|
|
98
|
+
<xsl:call-template name="locale.html.attributes"/>
|
|
99
|
+
<xsl:if test="@role and $para.propagates.style != 0">
|
|
100
|
+
<xsl:apply-templates select="." mode="class.attribute">
|
|
101
|
+
<xsl:with-param name="class" select="@role"/>
|
|
102
|
+
</xsl:apply-templates>
|
|
103
|
+
</xsl:if>
|
|
104
|
+
|
|
105
|
+
<xsl:call-template name="anchor"/>
|
|
106
|
+
<xsl:apply-templates/>
|
|
107
|
+
</p>
|
|
108
|
+
</xsl:template>
|
|
109
|
+
|
|
110
|
+
<xsl:template match="d:formalpara">
|
|
111
|
+
<xsl:call-template name="paragraph">
|
|
112
|
+
<xsl:with-param name="class">
|
|
113
|
+
<xsl:if test="@role and $para.propagates.style != 0">
|
|
114
|
+
<xsl:value-of select="@role"/>
|
|
115
|
+
</xsl:if>
|
|
116
|
+
</xsl:with-param>
|
|
117
|
+
<xsl:with-param name="content">
|
|
118
|
+
<xsl:call-template name="anchor"/>
|
|
119
|
+
<xsl:apply-templates/>
|
|
120
|
+
</xsl:with-param>
|
|
121
|
+
</xsl:call-template>
|
|
122
|
+
</xsl:template>
|
|
123
|
+
|
|
124
|
+
<!-- Only use title from info -->
|
|
125
|
+
<xsl:template match="d:formalpara/d:info">
|
|
126
|
+
<xsl:apply-templates select="d:title"/>
|
|
127
|
+
</xsl:template>
|
|
128
|
+
|
|
129
|
+
<xsl:template match="d:formalpara/d:title|d:formalpara/d:info/d:title">
|
|
130
|
+
<xsl:variable name="titleStr">
|
|
131
|
+
<xsl:apply-templates/>
|
|
132
|
+
</xsl:variable>
|
|
133
|
+
<xsl:variable name="lastChar">
|
|
134
|
+
<xsl:if test="$titleStr != ''">
|
|
135
|
+
<xsl:value-of select="substring($titleStr,string-length($titleStr),1)"/>
|
|
136
|
+
</xsl:if>
|
|
137
|
+
</xsl:variable>
|
|
138
|
+
|
|
139
|
+
<xsl:choose>
|
|
140
|
+
<xsl:when test="$make.clean.html != 0">
|
|
141
|
+
<span class="formalpara-title">
|
|
142
|
+
<xsl:copy-of select="$titleStr"/>
|
|
143
|
+
<xsl:if test="$lastChar != '' and not(contains($runinhead.title.end.punct, $lastChar))">
|
|
144
|
+
<xsl:value-of select="$runinhead.default.title.end.punct"/>
|
|
145
|
+
</xsl:if>
|
|
146
|
+
<xsl:text> </xsl:text>
|
|
147
|
+
</span>
|
|
148
|
+
</xsl:when>
|
|
149
|
+
<xsl:otherwise>
|
|
150
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
|
|
151
|
+
<xsl:copy-of select="$titleStr"/>
|
|
152
|
+
<xsl:if test="$lastChar != '' and not(contains($runinhead.title.end.punct, $lastChar))">
|
|
153
|
+
<xsl:value-of select="$runinhead.default.title.end.punct"/>
|
|
154
|
+
</xsl:if>
|
|
155
|
+
<xsl:text> </xsl:text>
|
|
156
|
+
</strong>
|
|
157
|
+
</xsl:otherwise>
|
|
158
|
+
</xsl:choose>
|
|
159
|
+
</xsl:template>
|
|
160
|
+
|
|
161
|
+
<xsl:template match="d:formalpara/d:para">
|
|
162
|
+
<xsl:apply-templates/>
|
|
163
|
+
</xsl:template>
|
|
164
|
+
|
|
165
|
+
<!-- ==================================================================== -->
|
|
166
|
+
|
|
167
|
+
<xsl:template match="d:blockquote">
|
|
168
|
+
<div>
|
|
169
|
+
<xsl:call-template name="common.html.attributes"/>
|
|
170
|
+
<xsl:call-template name="id.attribute"/>
|
|
171
|
+
<xsl:call-template name="anchor"/>
|
|
172
|
+
|
|
173
|
+
<xsl:choose>
|
|
174
|
+
<xsl:when test="d:attribution">
|
|
175
|
+
<table border="{$table.border.off}" class="blockquote">
|
|
176
|
+
<xsl:if test="$css.decoration != 0">
|
|
177
|
+
<xsl:attribute name="style">
|
|
178
|
+
<xsl:text>width: 100%; cellspacing: 0; cellpadding: 0;</xsl:text>
|
|
179
|
+
</xsl:attribute>
|
|
180
|
+
</xsl:if>
|
|
181
|
+
<xsl:if test="$div.element != 'section'">
|
|
182
|
+
<xsl:attribute name="summary">Block quote</xsl:attribute>
|
|
183
|
+
</xsl:if>
|
|
184
|
+
<tr>
|
|
185
|
+
<td width="10%" valign="top"> </td>
|
|
186
|
+
<td width="80%" valign="top">
|
|
187
|
+
<xsl:apply-templates select="child::*[local-name(.)!='attribution']"/>
|
|
188
|
+
</td>
|
|
189
|
+
<td width="10%" valign="top"> </td>
|
|
190
|
+
</tr>
|
|
191
|
+
<tr>
|
|
192
|
+
<td width="10%" valign="top"> </td>
|
|
193
|
+
<td colspan="2" align="{$direction.align.end}" valign="top">
|
|
194
|
+
<xsl:text>--</xsl:text>
|
|
195
|
+
<xsl:apply-templates select="d:attribution"/>
|
|
196
|
+
</td>
|
|
197
|
+
</tr>
|
|
198
|
+
</table>
|
|
199
|
+
</xsl:when>
|
|
200
|
+
<xsl:otherwise>
|
|
201
|
+
<blockquote>
|
|
202
|
+
<xsl:call-template name="common.html.attributes"/>
|
|
203
|
+
<xsl:apply-templates/>
|
|
204
|
+
</blockquote>
|
|
205
|
+
</xsl:otherwise>
|
|
206
|
+
</xsl:choose>
|
|
207
|
+
</div>
|
|
208
|
+
</xsl:template>
|
|
209
|
+
|
|
210
|
+
<xsl:template match="d:blockquote/d:title|d:blockquote/d:info/d:title">
|
|
211
|
+
<xsl:choose>
|
|
212
|
+
<xsl:when test="$make.clean.html != 0">
|
|
213
|
+
<div class="blockquote-title">
|
|
214
|
+
<xsl:apply-templates/>
|
|
215
|
+
</div>
|
|
216
|
+
</xsl:when>
|
|
217
|
+
<xsl:otherwise>
|
|
218
|
+
<div class="blockquote-title">
|
|
219
|
+
<p>
|
|
220
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
|
|
221
|
+
<xsl:apply-templates/>
|
|
222
|
+
</strong>
|
|
223
|
+
</p>
|
|
224
|
+
</div>
|
|
225
|
+
</xsl:otherwise>
|
|
226
|
+
</xsl:choose>
|
|
227
|
+
</xsl:template>
|
|
228
|
+
|
|
229
|
+
<!-- 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 -->
|
|
230
|
+
<xsl:template match="d:epigraph">
|
|
231
|
+
<div>
|
|
232
|
+
<xsl:call-template name="common.html.attributes"/>
|
|
233
|
+
<xsl:call-template name="id.attribute"/>
|
|
234
|
+
<xsl:apply-templates select="d:para|d:simpara|d:formalpara|d:literallayout"/>
|
|
235
|
+
<xsl:if test="d:attribution">
|
|
236
|
+
<div class="attribution">
|
|
237
|
+
<span>—<xsl:apply-templates select="d:attribution"/></span>
|
|
238
|
+
</div>
|
|
239
|
+
</xsl:if>
|
|
240
|
+
</div>
|
|
241
|
+
</xsl:template>
|
|
242
|
+
|
|
243
|
+
<xsl:template match="d:attribution">
|
|
244
|
+
<span>
|
|
245
|
+
<xsl:call-template name="common.html.attributes"/>
|
|
246
|
+
<xsl:call-template name="id.attribute"/>
|
|
247
|
+
<xsl:apply-templates/>
|
|
248
|
+
</span>
|
|
249
|
+
</xsl:template>
|
|
250
|
+
|
|
251
|
+
<!-- ==================================================================== -->
|
|
252
|
+
|
|
253
|
+
<xsl:template match="d:sidebar">
|
|
254
|
+
<div>
|
|
255
|
+
<xsl:call-template name="common.html.attributes"/>
|
|
256
|
+
<xsl:call-template name="id.attribute"/>
|
|
257
|
+
<xsl:call-template name="anchor"/>
|
|
258
|
+
<xsl:call-template name="sidebar.titlepage"/>
|
|
259
|
+
<xsl:apply-templates/>
|
|
260
|
+
</div>
|
|
261
|
+
</xsl:template>
|
|
262
|
+
|
|
263
|
+
<xsl:template match="d:abstract/d:title|d:sidebar/d:title">
|
|
264
|
+
</xsl:template>
|
|
265
|
+
|
|
266
|
+
<xsl:template match="d:sidebar/d:sidebarinfo|d:sidebar/d:info"/>
|
|
267
|
+
|
|
268
|
+
<xsl:template match="d:abstract">
|
|
269
|
+
<div>
|
|
270
|
+
<xsl:call-template name="common.html.attributes"/>
|
|
271
|
+
<xsl:call-template name="anchor"/>
|
|
272
|
+
<xsl:call-template name="formal.object.heading">
|
|
273
|
+
<xsl:with-param name="title">
|
|
274
|
+
<xsl:apply-templates select="." mode="title.markup">
|
|
275
|
+
<xsl:with-param name="allow-anchors" select="'1'"/>
|
|
276
|
+
</xsl:apply-templates>
|
|
277
|
+
</xsl:with-param>
|
|
278
|
+
</xsl:call-template>
|
|
279
|
+
<xsl:apply-templates/>
|
|
280
|
+
</div>
|
|
281
|
+
</xsl:template>
|
|
282
|
+
|
|
283
|
+
<!-- ==================================================================== -->
|
|
284
|
+
|
|
285
|
+
<xsl:template match="d:msgset">
|
|
286
|
+
<xsl:apply-templates/>
|
|
287
|
+
</xsl:template>
|
|
288
|
+
|
|
289
|
+
<xsl:template match="d:msgentry">
|
|
290
|
+
<xsl:call-template name="block.object"/>
|
|
291
|
+
</xsl:template>
|
|
292
|
+
|
|
293
|
+
<xsl:template match="d:simplemsgentry">
|
|
294
|
+
<xsl:call-template name="block.object"/>
|
|
295
|
+
</xsl:template>
|
|
296
|
+
|
|
297
|
+
<xsl:template match="d:msg">
|
|
298
|
+
<xsl:call-template name="block.object"/>
|
|
299
|
+
</xsl:template>
|
|
300
|
+
|
|
301
|
+
<xsl:template match="d:msgmain">
|
|
302
|
+
<xsl:apply-templates/>
|
|
303
|
+
</xsl:template>
|
|
304
|
+
|
|
305
|
+
<xsl:template match="d:msgmain/d:title">
|
|
306
|
+
<xsl:choose>
|
|
307
|
+
<xsl:when test="$make.clean.html != 0">
|
|
308
|
+
<span class="msgmain-title">
|
|
309
|
+
<xsl:apply-templates/>
|
|
310
|
+
</span>
|
|
311
|
+
</xsl:when>
|
|
312
|
+
<xsl:otherwise>
|
|
313
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></strong>
|
|
314
|
+
</xsl:otherwise>
|
|
315
|
+
</xsl:choose>
|
|
316
|
+
</xsl:template>
|
|
317
|
+
|
|
318
|
+
<xsl:template match="d:msgsub">
|
|
319
|
+
<xsl:apply-templates/>
|
|
320
|
+
</xsl:template>
|
|
321
|
+
|
|
322
|
+
<xsl:template match="d:msgsub/d:title">
|
|
323
|
+
<xsl:choose>
|
|
324
|
+
<xsl:when test="$make.clean.html != 0">
|
|
325
|
+
<span class="msgsub-title">
|
|
326
|
+
<xsl:apply-templates/>
|
|
327
|
+
</span>
|
|
328
|
+
</xsl:when>
|
|
329
|
+
<xsl:otherwise>
|
|
330
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></strong>
|
|
331
|
+
</xsl:otherwise>
|
|
332
|
+
</xsl:choose>
|
|
333
|
+
</xsl:template>
|
|
334
|
+
|
|
335
|
+
<xsl:template match="d:msgrel">
|
|
336
|
+
<xsl:apply-templates/>
|
|
337
|
+
</xsl:template>
|
|
338
|
+
|
|
339
|
+
<xsl:template match="d:msgrel/d:title">
|
|
340
|
+
<xsl:choose>
|
|
341
|
+
<xsl:when test="$make.clean.html != 0">
|
|
342
|
+
<span class="msgrel-title">
|
|
343
|
+
<xsl:apply-templates/>
|
|
344
|
+
</span>
|
|
345
|
+
</xsl:when>
|
|
346
|
+
<xsl:otherwise>
|
|
347
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></strong>
|
|
348
|
+
</xsl:otherwise>
|
|
349
|
+
</xsl:choose>
|
|
350
|
+
</xsl:template>
|
|
351
|
+
|
|
352
|
+
<xsl:template match="d:msgtext">
|
|
353
|
+
<xsl:apply-templates/>
|
|
354
|
+
</xsl:template>
|
|
355
|
+
|
|
356
|
+
<xsl:template match="d:msginfo">
|
|
357
|
+
<xsl:call-template name="block.object"/>
|
|
358
|
+
</xsl:template>
|
|
359
|
+
|
|
360
|
+
<xsl:template match="d:msglevel">
|
|
361
|
+
<xsl:choose>
|
|
362
|
+
<xsl:when test="$make.clean.html != 0">
|
|
363
|
+
<div class="msglevel">
|
|
364
|
+
<span class="msglevel-title">
|
|
365
|
+
<xsl:call-template name="gentext.template">
|
|
366
|
+
<xsl:with-param name="context" select="'msgset'"/>
|
|
367
|
+
<xsl:with-param name="name" select="'MsgLevel'"/>
|
|
368
|
+
</xsl:call-template>
|
|
369
|
+
</span>
|
|
370
|
+
<xsl:apply-templates/>
|
|
371
|
+
</div>
|
|
372
|
+
</xsl:when>
|
|
373
|
+
<xsl:otherwise>
|
|
374
|
+
<p>
|
|
375
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
|
|
376
|
+
<xsl:call-template name="gentext.template">
|
|
377
|
+
<xsl:with-param name="context" select="'msgset'"/>
|
|
378
|
+
<xsl:with-param name="name" select="'MsgLevel'"/>
|
|
379
|
+
</xsl:call-template>
|
|
380
|
+
</strong>
|
|
381
|
+
<xsl:apply-templates/>
|
|
382
|
+
</p>
|
|
383
|
+
</xsl:otherwise>
|
|
384
|
+
</xsl:choose>
|
|
385
|
+
</xsl:template>
|
|
386
|
+
|
|
387
|
+
<xsl:template match="d:msgorig">
|
|
388
|
+
<xsl:choose>
|
|
389
|
+
<xsl:when test="$make.clean.html != 0">
|
|
390
|
+
<div class="msgorig">
|
|
391
|
+
<span class="msgorig-title">
|
|
392
|
+
<xsl:call-template name="gentext.template">
|
|
393
|
+
<xsl:with-param name="context" select="'msgset'"/>
|
|
394
|
+
<xsl:with-param name="name" select="'MsgOrig'"/>
|
|
395
|
+
</xsl:call-template>
|
|
396
|
+
</span>
|
|
397
|
+
<xsl:apply-templates/>
|
|
398
|
+
</div>
|
|
399
|
+
</xsl:when>
|
|
400
|
+
<xsl:otherwise>
|
|
401
|
+
<p>
|
|
402
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
|
|
403
|
+
<xsl:call-template name="gentext.template">
|
|
404
|
+
<xsl:with-param name="context" select="'msgset'"/>
|
|
405
|
+
<xsl:with-param name="name" select="'MsgOrig'"/>
|
|
406
|
+
</xsl:call-template>
|
|
407
|
+
</strong>
|
|
408
|
+
<xsl:apply-templates/>
|
|
409
|
+
</p>
|
|
410
|
+
</xsl:otherwise>
|
|
411
|
+
</xsl:choose>
|
|
412
|
+
</xsl:template>
|
|
413
|
+
|
|
414
|
+
<xsl:template match="d:msgaud">
|
|
415
|
+
<xsl:choose>
|
|
416
|
+
<xsl:when test="$make.clean.html != 0">
|
|
417
|
+
<div class="msgaud">
|
|
418
|
+
<span class="msgaud-title">
|
|
419
|
+
<xsl:call-template name="gentext.template">
|
|
420
|
+
<xsl:with-param name="context" select="'msgset'"/>
|
|
421
|
+
<xsl:with-param name="name" select="'MsgAud'"/>
|
|
422
|
+
</xsl:call-template>
|
|
423
|
+
</span>
|
|
424
|
+
<xsl:apply-templates/>
|
|
425
|
+
</div>
|
|
426
|
+
</xsl:when>
|
|
427
|
+
<xsl:otherwise>
|
|
428
|
+
<p>
|
|
429
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
|
|
430
|
+
<xsl:call-template name="gentext.template">
|
|
431
|
+
<xsl:with-param name="context" select="'msgset'"/>
|
|
432
|
+
<xsl:with-param name="name" select="'MsgAud'"/>
|
|
433
|
+
</xsl:call-template>
|
|
434
|
+
</strong>
|
|
435
|
+
<xsl:apply-templates/>
|
|
436
|
+
</p>
|
|
437
|
+
</xsl:otherwise>
|
|
438
|
+
</xsl:choose>
|
|
439
|
+
</xsl:template>
|
|
440
|
+
|
|
441
|
+
<xsl:template match="d:msgexplan">
|
|
442
|
+
<xsl:call-template name="block.object"/>
|
|
443
|
+
</xsl:template>
|
|
444
|
+
|
|
445
|
+
<xsl:template match="d:msgexplan/d:title">
|
|
446
|
+
<xsl:choose>
|
|
447
|
+
<xsl:when test="$make.clean.html != 0">
|
|
448
|
+
<div class="msgexplan">
|
|
449
|
+
<span class="msgexplan-title">
|
|
450
|
+
<xsl:apply-templates/>
|
|
451
|
+
</span>
|
|
452
|
+
</div>
|
|
453
|
+
</xsl:when>
|
|
454
|
+
<xsl:otherwise>
|
|
455
|
+
<p>
|
|
456
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
|
|
457
|
+
<xsl:apply-templates/>
|
|
458
|
+
</strong>
|
|
459
|
+
</p>
|
|
460
|
+
</xsl:otherwise>
|
|
461
|
+
</xsl:choose>
|
|
462
|
+
</xsl:template>
|
|
463
|
+
|
|
464
|
+
<!-- ==================================================================== -->
|
|
465
|
+
|
|
466
|
+
<xsl:template match="d:revhistory">
|
|
467
|
+
<div>
|
|
468
|
+
<xsl:call-template name="common.html.attributes"/>
|
|
469
|
+
<xsl:call-template name="id.attribute"/>
|
|
470
|
+
<table>
|
|
471
|
+
<xsl:if test="$css.decoration != 0">
|
|
472
|
+
<xsl:attribute name="style">
|
|
473
|
+
<xsl:text>border-style:solid; width:100%;</xsl:text>
|
|
474
|
+
</xsl:attribute>
|
|
475
|
+
</xsl:if>
|
|
476
|
+
<!-- include summary attribute if not HTML5 -->
|
|
477
|
+
<xsl:if test="$div.element != 'section'">
|
|
478
|
+
<xsl:attribute name="summary">
|
|
479
|
+
<xsl:call-template name="gentext">
|
|
480
|
+
<xsl:with-param name="key">revhistory</xsl:with-param>
|
|
481
|
+
</xsl:call-template>
|
|
482
|
+
</xsl:attribute>
|
|
483
|
+
</xsl:if>
|
|
484
|
+
<tr>
|
|
485
|
+
<th align="{$direction.align.start}" valign="top" colspan="3">
|
|
486
|
+
<strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
|
|
487
|
+
<xsl:call-template name="gentext">
|
|
488
|
+
<xsl:with-param name="key" select="'RevHistory'"/>
|
|
489
|
+
</xsl:call-template>
|
|
490
|
+
</strong>
|
|
491
|
+
</th>
|
|
492
|
+
</tr>
|
|
493
|
+
<xsl:apply-templates/>
|
|
494
|
+
</table>
|
|
495
|
+
</div>
|
|
496
|
+
</xsl:template>
|
|
497
|
+
|
|
498
|
+
<xsl:template match="d:revhistory/d:revision">
|
|
499
|
+
<xsl:variable name="revnumber" select="d:revnumber"/>
|
|
500
|
+
<xsl:variable name="revdate" select="d:date"/>
|
|
501
|
+
<xsl:variable name="revauthor" select="d:authorinitials|d:author"/>
|
|
502
|
+
<xsl:variable name="revremark" select="d:revremark|d:revdescription"/>
|
|
503
|
+
<tr>
|
|
504
|
+
<td align="{$direction.align.start}">
|
|
505
|
+
<xsl:if test="$revnumber">
|
|
506
|
+
<xsl:call-template name="gentext">
|
|
507
|
+
<xsl:with-param name="key" select="'Revision'"/>
|
|
508
|
+
</xsl:call-template>
|
|
509
|
+
<xsl:call-template name="gentext.space"/>
|
|
510
|
+
<xsl:apply-templates select="$revnumber"/>
|
|
511
|
+
</xsl:if>
|
|
512
|
+
</td>
|
|
513
|
+
<td align="{$direction.align.start}">
|
|
514
|
+
<xsl:apply-templates select="$revdate"/>
|
|
515
|
+
</td>
|
|
516
|
+
<xsl:choose>
|
|
517
|
+
<xsl:when test="count($revauthor)=0">
|
|
518
|
+
<td align="{$direction.align.start}">
|
|
519
|
+
<xsl:call-template name="dingbat">
|
|
520
|
+
<xsl:with-param name="dingbat">nbsp</xsl:with-param>
|
|
521
|
+
</xsl:call-template>
|
|
522
|
+
</td>
|
|
523
|
+
</xsl:when>
|
|
524
|
+
<xsl:otherwise>
|
|
525
|
+
<td align="{$direction.align.start}">
|
|
526
|
+
<xsl:for-each select="$revauthor">
|
|
527
|
+
<xsl:apply-templates select="."/>
|
|
528
|
+
<xsl:if test="position() != last()">
|
|
529
|
+
<xsl:text>, </xsl:text>
|
|
530
|
+
</xsl:if>
|
|
531
|
+
</xsl:for-each>
|
|
532
|
+
</td>
|
|
533
|
+
</xsl:otherwise>
|
|
534
|
+
</xsl:choose>
|
|
535
|
+
</tr>
|
|
536
|
+
<xsl:if test="$revremark">
|
|
537
|
+
<tr>
|
|
538
|
+
<td align="{$direction.align.start}" colspan="3">
|
|
539
|
+
<xsl:apply-templates select="$revremark"/>
|
|
540
|
+
</td>
|
|
541
|
+
</tr>
|
|
542
|
+
</xsl:if>
|
|
543
|
+
</xsl:template>
|
|
544
|
+
|
|
545
|
+
<xsl:template match="d:revision/d:revnumber">
|
|
546
|
+
<xsl:apply-templates/>
|
|
547
|
+
</xsl:template>
|
|
548
|
+
|
|
549
|
+
<xsl:template match="d:revision/d:date">
|
|
550
|
+
<xsl:apply-templates/>
|
|
551
|
+
</xsl:template>
|
|
552
|
+
|
|
553
|
+
<xsl:template match="d:revision/d:authorinitials">
|
|
554
|
+
<xsl:text>, </xsl:text>
|
|
555
|
+
<xsl:apply-templates/>
|
|
556
|
+
</xsl:template>
|
|
557
|
+
|
|
558
|
+
<xsl:template match="d:revision/d:authorinitials[1]" priority="2">
|
|
559
|
+
<xsl:apply-templates/>
|
|
560
|
+
</xsl:template>
|
|
561
|
+
|
|
562
|
+
<xsl:template match="d:revision/d:revremark">
|
|
563
|
+
<xsl:apply-templates/>
|
|
564
|
+
</xsl:template>
|
|
565
|
+
|
|
566
|
+
<xsl:template match="d:revision/d:revdescription">
|
|
567
|
+
<xsl:apply-templates/>
|
|
568
|
+
</xsl:template>
|
|
569
|
+
|
|
570
|
+
<!-- ==================================================================== -->
|
|
571
|
+
|
|
572
|
+
<xsl:template match="d:ackno|d:acknowledgements[parent::d:article]">
|
|
573
|
+
<xsl:call-template name="block.object"/>
|
|
574
|
+
</xsl:template>
|
|
575
|
+
|
|
576
|
+
<!-- ==================================================================== -->
|
|
577
|
+
|
|
578
|
+
<xsl:template match="d:highlights">
|
|
579
|
+
<xsl:call-template name="block.object"/>
|
|
580
|
+
</xsl:template>
|
|
581
|
+
|
|
582
|
+
<!-- ==================================================================== -->
|
|
583
|
+
|
|
584
|
+
</xsl:stylesheet>
|