1 | <?xml version="1.0" encoding="ASCII"?>
|
---|
2 | <!--This file was created automatically by html2xhtml-->
|
---|
3 | <!--from the HTML stylesheets.-->
|
---|
4 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xlink suwl" version="1.0">
|
---|
5 |
|
---|
6 | <!-- ********************************************************************
|
---|
7 | $Id: inline.xsl 9663 2012-11-06 19:09:16Z bobstayton $
|
---|
8 | ********************************************************************
|
---|
9 |
|
---|
10 | This file is part of the XSL DocBook Stylesheet distribution.
|
---|
11 | See ../README or http://docbook.sf.net/release/xsl/current/ for
|
---|
12 | copyright and other information.
|
---|
13 |
|
---|
14 | ******************************************************************** -->
|
---|
15 |
|
---|
16 | <xsl:key name="glossentries" match="glossentry" use="normalize-space(glossterm)"/>
|
---|
17 | <xsl:key name="glossentries" match="glossentry" use="normalize-space(glossterm/@baseform)"/>
|
---|
18 |
|
---|
19 | <xsl:template name="simple.xlink">
|
---|
20 | <xsl:param name="node" select="."/>
|
---|
21 | <xsl:param name="content">
|
---|
22 | <xsl:apply-templates/>
|
---|
23 | </xsl:param>
|
---|
24 | <xsl:param name="linkend" select="$node/@linkend"/>
|
---|
25 | <xsl:param name="xhref" select="$node/@xlink:href"/>
|
---|
26 |
|
---|
27 | <!-- Support for @xlink:show -->
|
---|
28 | <xsl:variable name="target.show">
|
---|
29 | <xsl:choose>
|
---|
30 | <xsl:when test="$node/@xlink:show = 'new'">_blank</xsl:when>
|
---|
31 | <xsl:when test="$node/@xlink:show = 'replace'">_top</xsl:when>
|
---|
32 | <xsl:otherwise/>
|
---|
33 | </xsl:choose>
|
---|
34 | </xsl:variable>
|
---|
35 |
|
---|
36 | <xsl:variable name="link">
|
---|
37 | <xsl:choose>
|
---|
38 | <xsl:when test="$xhref and (not($node/@xlink:type) or $node/@xlink:type='simple')">
|
---|
39 |
|
---|
40 | <!-- Is it a local idref or a uri? -->
|
---|
41 | <xsl:variable name="is.idref">
|
---|
42 | <xsl:choose>
|
---|
43 | <!-- if the href starts with # and does not contain an "(" -->
|
---|
44 | <!-- or if the href starts with #xpointer(id(, it's just an ID -->
|
---|
45 | <xsl:when test="starts-with($xhref,'#') and (not(contains($xhref,'(')) or starts-with($xhref, '#xpointer(id('))">1</xsl:when>
|
---|
46 | <xsl:otherwise>0</xsl:otherwise>
|
---|
47 | </xsl:choose>
|
---|
48 | </xsl:variable>
|
---|
49 |
|
---|
50 | <!-- Is it an olink ? -->
|
---|
51 | <xsl:variable name="is.olink">
|
---|
52 | <xsl:choose>
|
---|
53 | <!-- If xlink:role="http://docbook.org/xlink/role/olink" -->
|
---|
54 | <!-- and if the href contains # -->
|
---|
55 | <xsl:when test="contains($xhref,'#') and @xlink:role = $xolink.role">1</xsl:when>
|
---|
56 | <xsl:otherwise>0</xsl:otherwise>
|
---|
57 | </xsl:choose>
|
---|
58 | </xsl:variable>
|
---|
59 |
|
---|
60 | <xsl:choose>
|
---|
61 | <xsl:when test="$is.olink = 1">
|
---|
62 | <xsl:call-template name="olink">
|
---|
63 | <xsl:with-param name="content" select="$content"/>
|
---|
64 | </xsl:call-template>
|
---|
65 | </xsl:when>
|
---|
66 |
|
---|
67 | <xsl:when test="$is.idref = 1">
|
---|
68 |
|
---|
69 | <xsl:variable name="idref">
|
---|
70 | <xsl:call-template name="xpointer.idref">
|
---|
71 | <xsl:with-param name="xpointer" select="$xhref"/>
|
---|
72 | </xsl:call-template>
|
---|
73 | </xsl:variable>
|
---|
74 |
|
---|
75 | <xsl:variable name="targets" select="key('id',$idref)"/>
|
---|
76 | <xsl:variable name="target" select="$targets[1]"/>
|
---|
77 |
|
---|
78 | <xsl:call-template name="check.id.unique">
|
---|
79 | <xsl:with-param name="linkend" select="$idref"/>
|
---|
80 | </xsl:call-template>
|
---|
81 |
|
---|
82 | <xsl:choose>
|
---|
83 | <xsl:when test="count($target) = 0">
|
---|
84 | <xsl:message>
|
---|
85 | <xsl:text>XLink to nonexistent id: </xsl:text>
|
---|
86 | <xsl:value-of select="$idref"/>
|
---|
87 | </xsl:message>
|
---|
88 | <xsl:copy-of select="$content"/>
|
---|
89 | </xsl:when>
|
---|
90 |
|
---|
91 | <xsl:otherwise>
|
---|
92 | <a>
|
---|
93 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
94 | <xsl:call-template name="id.attribute"/>
|
---|
95 |
|
---|
96 | <xsl:attribute name="href">
|
---|
97 | <xsl:call-template name="href.target">
|
---|
98 | <xsl:with-param name="object" select="$target"/>
|
---|
99 | </xsl:call-template>
|
---|
100 | </xsl:attribute>
|
---|
101 |
|
---|
102 | <xsl:choose>
|
---|
103 | <xsl:when test="$node/@xlink:title">
|
---|
104 | <xsl:attribute name="title">
|
---|
105 | <xsl:value-of select="$node/@xlink:title"/>
|
---|
106 | </xsl:attribute>
|
---|
107 | </xsl:when>
|
---|
108 | <xsl:otherwise>
|
---|
109 | <xsl:apply-templates select="$target" mode="html.title.attribute"/>
|
---|
110 | </xsl:otherwise>
|
---|
111 | </xsl:choose>
|
---|
112 |
|
---|
113 | <xsl:if test="$target.show !=''">
|
---|
114 | <xsl:attribute name="target">
|
---|
115 | <xsl:value-of select="$target.show"/>
|
---|
116 | </xsl:attribute>
|
---|
117 | </xsl:if>
|
---|
118 |
|
---|
119 | <xsl:copy-of select="$content"/>
|
---|
120 |
|
---|
121 | </a>
|
---|
122 | </xsl:otherwise>
|
---|
123 | </xsl:choose>
|
---|
124 | </xsl:when>
|
---|
125 |
|
---|
126 | <!-- otherwise it's a URI -->
|
---|
127 | <xsl:otherwise>
|
---|
128 | <a>
|
---|
129 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
130 | <xsl:call-template name="id.attribute"/>
|
---|
131 | <xsl:attribute name="href">
|
---|
132 | <xsl:value-of select="$xhref"/>
|
---|
133 | </xsl:attribute>
|
---|
134 | <xsl:if test="$node/@xlink:title">
|
---|
135 | <xsl:attribute name="title">
|
---|
136 | <xsl:value-of select="$node/@xlink:title"/>
|
---|
137 | </xsl:attribute>
|
---|
138 | </xsl:if>
|
---|
139 |
|
---|
140 | <!-- For URIs, use @xlink:show if defined, otherwise use ulink.target -->
|
---|
141 | <xsl:choose>
|
---|
142 | <xsl:when test="$target.show !=''">
|
---|
143 | <xsl:attribute name="target">
|
---|
144 | <xsl:value-of select="$target.show"/>
|
---|
145 | </xsl:attribute>
|
---|
146 | </xsl:when>
|
---|
147 | <xsl:when test="$ulink.target !=''">
|
---|
148 | <xsl:attribute name="target">
|
---|
149 | <xsl:value-of select="$ulink.target"/>
|
---|
150 | </xsl:attribute>
|
---|
151 | </xsl:when>
|
---|
152 | </xsl:choose>
|
---|
153 |
|
---|
154 | <xsl:copy-of select="$content"/>
|
---|
155 | </a>
|
---|
156 | </xsl:otherwise>
|
---|
157 | </xsl:choose>
|
---|
158 | </xsl:when>
|
---|
159 |
|
---|
160 | <xsl:when test="$linkend">
|
---|
161 | <xsl:variable name="targets" select="key('id',$linkend)"/>
|
---|
162 | <xsl:variable name="target" select="$targets[1]"/>
|
---|
163 |
|
---|
164 | <xsl:call-template name="check.id.unique">
|
---|
165 | <xsl:with-param name="linkend" select="$linkend"/>
|
---|
166 | </xsl:call-template>
|
---|
167 |
|
---|
168 | <a>
|
---|
169 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
170 | <xsl:call-template name="id.attribute"/>
|
---|
171 | <xsl:attribute name="href">
|
---|
172 | <xsl:call-template name="href.target">
|
---|
173 | <xsl:with-param name="object" select="$target"/>
|
---|
174 | </xsl:call-template>
|
---|
175 | </xsl:attribute>
|
---|
176 |
|
---|
177 | <xsl:apply-templates select="$target" mode="html.title.attribute"/>
|
---|
178 |
|
---|
179 | <xsl:copy-of select="$content"/>
|
---|
180 |
|
---|
181 | </a>
|
---|
182 | </xsl:when>
|
---|
183 | <xsl:otherwise>
|
---|
184 | <xsl:copy-of select="$content"/>
|
---|
185 | </xsl:otherwise>
|
---|
186 | </xsl:choose>
|
---|
187 | </xsl:variable>
|
---|
188 |
|
---|
189 | <xsl:choose>
|
---|
190 | <xsl:when test="function-available('suwl:unwrapLinks')">
|
---|
191 | <xsl:copy-of select="suwl:unwrapLinks($link)"/>
|
---|
192 | </xsl:when>
|
---|
193 | <xsl:otherwise>
|
---|
194 | <xsl:copy-of select="$link"/>
|
---|
195 | </xsl:otherwise>
|
---|
196 | </xsl:choose>
|
---|
197 | </xsl:template>
|
---|
198 |
|
---|
199 | <xsl:template name="inline.charseq">
|
---|
200 | <xsl:param name="content">
|
---|
201 | <xsl:call-template name="anchor"/>
|
---|
202 | <xsl:call-template name="simple.xlink">
|
---|
203 | <xsl:with-param name="content">
|
---|
204 | <xsl:apply-templates/>
|
---|
205 | </xsl:with-param>
|
---|
206 | </xsl:call-template>
|
---|
207 | </xsl:param>
|
---|
208 | <!-- * if you want output from the inline.charseq template wrapped in -->
|
---|
209 | <!-- * something other than a Span, call the template with some value -->
|
---|
210 | <!-- * for the 'wrapper-name' param -->
|
---|
211 | <xsl:param name="wrapper-name">span</xsl:param>
|
---|
212 | <xsl:element name="{$wrapper-name}" namespace="http://www.w3.org/1999/xhtml">
|
---|
213 | <xsl:attribute name="class">
|
---|
214 | <xsl:value-of select="local-name(.)"/>
|
---|
215 | </xsl:attribute>
|
---|
216 | <xsl:call-template name="id.attribute"/>
|
---|
217 | <xsl:call-template name="dir"/>
|
---|
218 | <xsl:call-template name="generate.html.title"/>
|
---|
219 | <xsl:copy-of select="$content"/>
|
---|
220 | <xsl:call-template name="apply-annotations"/>
|
---|
221 | </xsl:element>
|
---|
222 | </xsl:template>
|
---|
223 |
|
---|
224 | <xsl:template name="inline.monoseq">
|
---|
225 | <xsl:param name="content">
|
---|
226 | <xsl:call-template name="anchor"/>
|
---|
227 | <xsl:call-template name="simple.xlink">
|
---|
228 | <xsl:with-param name="content">
|
---|
229 | <xsl:apply-templates/>
|
---|
230 | </xsl:with-param>
|
---|
231 | </xsl:call-template>
|
---|
232 | </xsl:param>
|
---|
233 | <code>
|
---|
234 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
235 | <xsl:call-template name="id.attribute"/>
|
---|
236 | <xsl:copy-of select="$content"/>
|
---|
237 | <xsl:call-template name="apply-annotations"/>
|
---|
238 | </code>
|
---|
239 | </xsl:template>
|
---|
240 |
|
---|
241 | <xsl:template name="inline.boldseq">
|
---|
242 | <xsl:param name="content">
|
---|
243 | <xsl:call-template name="anchor"/>
|
---|
244 | <xsl:call-template name="simple.xlink">
|
---|
245 | <xsl:with-param name="content">
|
---|
246 | <xsl:apply-templates/>
|
---|
247 | </xsl:with-param>
|
---|
248 | </xsl:call-template>
|
---|
249 | </xsl:param>
|
---|
250 |
|
---|
251 | <span>
|
---|
252 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
253 | <xsl:call-template name="id.attribute"/>
|
---|
254 |
|
---|
255 | <!-- don't put <strong> inside figure, example, or table titles -->
|
---|
256 | <xsl:choose>
|
---|
257 | <xsl:when test="local-name(..) = 'title' and (local-name(../..) = 'figure' or local-name(../..) = 'example' or local-name(../..) = 'table')">
|
---|
258 | <xsl:copy-of select="$content"/>
|
---|
259 | </xsl:when>
|
---|
260 | <xsl:otherwise>
|
---|
261 | <strong>
|
---|
262 | <xsl:copy-of select="$content"/>
|
---|
263 | </strong>
|
---|
264 | </xsl:otherwise>
|
---|
265 | </xsl:choose>
|
---|
266 | <xsl:call-template name="apply-annotations"/>
|
---|
267 | </span>
|
---|
268 | </xsl:template>
|
---|
269 |
|
---|
270 | <xsl:template name="inline.italicseq">
|
---|
271 | <xsl:param name="content">
|
---|
272 | <xsl:call-template name="anchor"/>
|
---|
273 | <xsl:call-template name="simple.xlink">
|
---|
274 | <xsl:with-param name="content">
|
---|
275 | <xsl:apply-templates/>
|
---|
276 | </xsl:with-param>
|
---|
277 | </xsl:call-template>
|
---|
278 | </xsl:param>
|
---|
279 | <em>
|
---|
280 | <xsl:call-template name="common.html.attributes"/>
|
---|
281 | <xsl:call-template name="id.attribute"/>
|
---|
282 | <xsl:copy-of select="$content"/>
|
---|
283 | <xsl:call-template name="apply-annotations"/>
|
---|
284 | </em>
|
---|
285 | </xsl:template>
|
---|
286 |
|
---|
287 | <xsl:template name="inline.boldmonoseq">
|
---|
288 | <xsl:param name="content">
|
---|
289 | <xsl:call-template name="anchor"/>
|
---|
290 | <xsl:call-template name="simple.xlink">
|
---|
291 | <xsl:with-param name="content">
|
---|
292 | <xsl:apply-templates/>
|
---|
293 | </xsl:with-param>
|
---|
294 | </xsl:call-template>
|
---|
295 | </xsl:param>
|
---|
296 | <!-- don't put <strong> inside figure, example, or table titles -->
|
---|
297 | <!-- or other titles that may already be represented with <strong>'s. -->
|
---|
298 | <xsl:choose>
|
---|
299 | <xsl:when test="local-name(..) = 'title' and (local-name(../..) = 'figure' or local-name(../..) = 'example' or local-name(../..) = 'table' or local-name(../..) = 'formalpara')">
|
---|
300 | <code>
|
---|
301 | <xsl:call-template name="common.html.attributes"/>
|
---|
302 | <xsl:call-template name="id.attribute"/>
|
---|
303 | <xsl:copy-of select="$content"/>
|
---|
304 | <xsl:call-template name="apply-annotations"/>
|
---|
305 | </code>
|
---|
306 | </xsl:when>
|
---|
307 | <xsl:otherwise>
|
---|
308 | <strong>
|
---|
309 | <xsl:call-template name="common.html.attributes"/>
|
---|
310 | <xsl:call-template name="id.attribute"/>
|
---|
311 | <code>
|
---|
312 | <xsl:call-template name="generate.html.title"/>
|
---|
313 | <xsl:call-template name="dir"/>
|
---|
314 | <xsl:copy-of select="$content"/>
|
---|
315 | </code>
|
---|
316 | <xsl:call-template name="apply-annotations"/>
|
---|
317 | </strong>
|
---|
318 | </xsl:otherwise>
|
---|
319 | </xsl:choose>
|
---|
320 | </xsl:template>
|
---|
321 |
|
---|
322 | <xsl:template name="inline.italicmonoseq">
|
---|
323 | <xsl:param name="content">
|
---|
324 | <xsl:call-template name="anchor"/>
|
---|
325 | <xsl:call-template name="simple.xlink">
|
---|
326 | <xsl:with-param name="content">
|
---|
327 | <xsl:apply-templates/>
|
---|
328 | </xsl:with-param>
|
---|
329 | </xsl:call-template>
|
---|
330 | </xsl:param>
|
---|
331 | <em>
|
---|
332 | <xsl:call-template name="common.html.attributes"/>
|
---|
333 | <xsl:call-template name="id.attribute"/>
|
---|
334 | <code>
|
---|
335 | <xsl:call-template name="generate.html.title"/>
|
---|
336 | <xsl:call-template name="dir"/>
|
---|
337 | <xsl:copy-of select="$content"/>
|
---|
338 | <xsl:call-template name="apply-annotations"/>
|
---|
339 | </code>
|
---|
340 | </em>
|
---|
341 | </xsl:template>
|
---|
342 |
|
---|
343 | <xsl:template name="inline.superscriptseq">
|
---|
344 | <xsl:param name="content">
|
---|
345 | <xsl:call-template name="anchor"/>
|
---|
346 | <xsl:call-template name="simple.xlink">
|
---|
347 | <xsl:with-param name="content">
|
---|
348 | <xsl:apply-templates/>
|
---|
349 | </xsl:with-param>
|
---|
350 | </xsl:call-template>
|
---|
351 | </xsl:param>
|
---|
352 | <sup>
|
---|
353 | <xsl:call-template name="generate.html.title"/>
|
---|
354 | <xsl:call-template name="id.attribute"/>
|
---|
355 | <xsl:call-template name="dir"/>
|
---|
356 | <xsl:copy-of select="$content"/>
|
---|
357 | <xsl:call-template name="apply-annotations"/>
|
---|
358 | </sup>
|
---|
359 | </xsl:template>
|
---|
360 |
|
---|
361 | <xsl:template name="inline.subscriptseq">
|
---|
362 | <xsl:param name="content">
|
---|
363 | <xsl:call-template name="anchor"/>
|
---|
364 | <xsl:call-template name="simple.xlink">
|
---|
365 | <xsl:with-param name="content">
|
---|
366 | <xsl:apply-templates/>
|
---|
367 | </xsl:with-param>
|
---|
368 | </xsl:call-template>
|
---|
369 | </xsl:param>
|
---|
370 | <sub>
|
---|
371 | <xsl:call-template name="generate.html.title"/>
|
---|
372 | <xsl:call-template name="id.attribute"/>
|
---|
373 | <xsl:call-template name="dir"/>
|
---|
374 | <xsl:copy-of select="$content"/>
|
---|
375 | <xsl:call-template name="apply-annotations"/>
|
---|
376 | </sub>
|
---|
377 | </xsl:template>
|
---|
378 |
|
---|
379 | <!-- ==================================================================== -->
|
---|
380 | <!-- some special cases -->
|
---|
381 |
|
---|
382 | <xsl:template match="author">
|
---|
383 | <xsl:param name="content">
|
---|
384 | <xsl:call-template name="anchor"/>
|
---|
385 | <xsl:call-template name="simple.xlink">
|
---|
386 | <xsl:with-param name="content">
|
---|
387 | <xsl:call-template name="person.name"/>
|
---|
388 | </xsl:with-param>
|
---|
389 | </xsl:call-template>
|
---|
390 | <xsl:call-template name="apply-annotations"/>
|
---|
391 | </xsl:param>
|
---|
392 |
|
---|
393 | <span>
|
---|
394 | <xsl:call-template name="common.html.attributes"/>
|
---|
395 | <xsl:call-template name="id.attribute"/>
|
---|
396 | <xsl:copy-of select="$content"/>
|
---|
397 | </span>
|
---|
398 | </xsl:template>
|
---|
399 |
|
---|
400 | <xsl:template match="editor">
|
---|
401 | <xsl:param name="content">
|
---|
402 | <xsl:call-template name="anchor"/>
|
---|
403 | <xsl:call-template name="simple.xlink">
|
---|
404 | <xsl:with-param name="content">
|
---|
405 | <xsl:call-template name="person.name"/>
|
---|
406 | </xsl:with-param>
|
---|
407 | </xsl:call-template>
|
---|
408 | <xsl:call-template name="apply-annotations"/>
|
---|
409 | </xsl:param>
|
---|
410 |
|
---|
411 | <span>
|
---|
412 | <xsl:call-template name="common.html.attributes"/>
|
---|
413 | <xsl:call-template name="id.attribute"/>
|
---|
414 | <xsl:copy-of select="$content"/>
|
---|
415 | </span>
|
---|
416 | </xsl:template>
|
---|
417 |
|
---|
418 | <xsl:template match="othercredit">
|
---|
419 | <xsl:param name="content">
|
---|
420 | <xsl:call-template name="anchor"/>
|
---|
421 | <xsl:call-template name="simple.xlink">
|
---|
422 | <xsl:with-param name="content">
|
---|
423 | <xsl:call-template name="person.name"/>
|
---|
424 | </xsl:with-param>
|
---|
425 | </xsl:call-template>
|
---|
426 | <xsl:call-template name="apply-annotations"/>
|
---|
427 | </xsl:param>
|
---|
428 |
|
---|
429 | <span>
|
---|
430 | <xsl:call-template name="common.html.attributes"/>
|
---|
431 | <xsl:call-template name="id.attribute"/>
|
---|
432 | <xsl:copy-of select="$content"/>
|
---|
433 | </span>
|
---|
434 | </xsl:template>
|
---|
435 |
|
---|
436 | <xsl:template match="authorinitials">
|
---|
437 | <xsl:call-template name="inline.charseq"/>
|
---|
438 | </xsl:template>
|
---|
439 |
|
---|
440 | <!-- ==================================================================== -->
|
---|
441 |
|
---|
442 | <xsl:template match="accel">
|
---|
443 | <xsl:call-template name="inline.charseq"/>
|
---|
444 | </xsl:template>
|
---|
445 |
|
---|
446 | <xsl:template match="action">
|
---|
447 | <xsl:call-template name="inline.charseq"/>
|
---|
448 | </xsl:template>
|
---|
449 |
|
---|
450 | <xsl:template match="application">
|
---|
451 | <xsl:call-template name="inline.charseq"/>
|
---|
452 | </xsl:template>
|
---|
453 |
|
---|
454 | <xsl:template match="classname">
|
---|
455 | <xsl:call-template name="inline.monoseq"/>
|
---|
456 | </xsl:template>
|
---|
457 |
|
---|
458 | <xsl:template match="exceptionname">
|
---|
459 | <xsl:call-template name="inline.monoseq"/>
|
---|
460 | </xsl:template>
|
---|
461 |
|
---|
462 | <xsl:template match="interfacename">
|
---|
463 | <xsl:call-template name="inline.monoseq"/>
|
---|
464 | </xsl:template>
|
---|
465 |
|
---|
466 | <xsl:template match="methodname">
|
---|
467 | <xsl:call-template name="inline.monoseq"/>
|
---|
468 | </xsl:template>
|
---|
469 |
|
---|
470 | <xsl:template match="command">
|
---|
471 | <xsl:call-template name="inline.boldseq"/>
|
---|
472 | </xsl:template>
|
---|
473 |
|
---|
474 | <xsl:template match="computeroutput">
|
---|
475 | <xsl:call-template name="inline.monoseq"/>
|
---|
476 | </xsl:template>
|
---|
477 |
|
---|
478 | <xsl:template match="constant">
|
---|
479 | <xsl:call-template name="inline.monoseq"/>
|
---|
480 | </xsl:template>
|
---|
481 |
|
---|
482 | <xsl:template match="database">
|
---|
483 | <xsl:call-template name="inline.charseq"/>
|
---|
484 | </xsl:template>
|
---|
485 |
|
---|
486 | <xsl:template match="date">
|
---|
487 | <!-- should this support locale-specific formatting? how? -->
|
---|
488 | <xsl:call-template name="inline.charseq"/>
|
---|
489 | </xsl:template>
|
---|
490 |
|
---|
491 | <xsl:template match="errorcode">
|
---|
492 | <xsl:call-template name="inline.charseq"/>
|
---|
493 | </xsl:template>
|
---|
494 |
|
---|
495 | <xsl:template match="errorname">
|
---|
496 | <xsl:call-template name="inline.charseq"/>
|
---|
497 | </xsl:template>
|
---|
498 |
|
---|
499 | <xsl:template match="errortype">
|
---|
500 | <xsl:call-template name="inline.charseq"/>
|
---|
501 | </xsl:template>
|
---|
502 |
|
---|
503 | <xsl:template match="errortext">
|
---|
504 | <xsl:call-template name="inline.charseq"/>
|
---|
505 | </xsl:template>
|
---|
506 |
|
---|
507 | <xsl:template match="envar">
|
---|
508 | <xsl:call-template name="inline.monoseq"/>
|
---|
509 | </xsl:template>
|
---|
510 |
|
---|
511 | <xsl:template match="filename">
|
---|
512 | <xsl:call-template name="inline.monoseq"/>
|
---|
513 | </xsl:template>
|
---|
514 |
|
---|
515 | <xsl:template match="function">
|
---|
516 | <xsl:choose>
|
---|
517 | <xsl:when test="$function.parens != '0' and (parameter or function or replaceable)">
|
---|
518 | <xsl:variable name="nodes" select="text()|*"/>
|
---|
519 | <xsl:call-template name="inline.monoseq">
|
---|
520 | <xsl:with-param name="content">
|
---|
521 | <xsl:call-template name="simple.xlink">
|
---|
522 | <xsl:with-param name="content">
|
---|
523 | <xsl:apply-templates select="$nodes[1]"/>
|
---|
524 | </xsl:with-param>
|
---|
525 | </xsl:call-template>
|
---|
526 | </xsl:with-param>
|
---|
527 | </xsl:call-template>
|
---|
528 | <xsl:text>(</xsl:text>
|
---|
529 | <xsl:apply-templates select="$nodes[position()>1]"/>
|
---|
530 | <xsl:text>)</xsl:text>
|
---|
531 | </xsl:when>
|
---|
532 | <xsl:otherwise>
|
---|
533 | <xsl:call-template name="inline.monoseq"/>
|
---|
534 | </xsl:otherwise>
|
---|
535 | </xsl:choose>
|
---|
536 | </xsl:template>
|
---|
537 |
|
---|
538 | <xsl:template match="function/parameter" priority="2">
|
---|
539 | <xsl:call-template name="inline.italicmonoseq"/>
|
---|
540 | <xsl:if test="$function.parens != 0 and following-sibling::*">
|
---|
541 | <xsl:text>, </xsl:text>
|
---|
542 | </xsl:if>
|
---|
543 | </xsl:template>
|
---|
544 |
|
---|
545 | <xsl:template match="function/replaceable" priority="2">
|
---|
546 | <xsl:call-template name="inline.italicmonoseq"/>
|
---|
547 | <xsl:if test="$function.parens != 0 and following-sibling::*">
|
---|
548 | <xsl:text>, </xsl:text>
|
---|
549 | </xsl:if>
|
---|
550 | </xsl:template>
|
---|
551 |
|
---|
552 | <xsl:template match="guibutton">
|
---|
553 | <xsl:call-template name="inline.charseq"/>
|
---|
554 | </xsl:template>
|
---|
555 |
|
---|
556 | <xsl:template match="guiicon">
|
---|
557 | <xsl:call-template name="inline.charseq"/>
|
---|
558 | </xsl:template>
|
---|
559 |
|
---|
560 | <xsl:template match="guilabel">
|
---|
561 | <xsl:call-template name="inline.charseq"/>
|
---|
562 | </xsl:template>
|
---|
563 |
|
---|
564 | <xsl:template match="guimenu">
|
---|
565 | <xsl:call-template name="inline.charseq"/>
|
---|
566 | </xsl:template>
|
---|
567 |
|
---|
568 | <xsl:template match="guimenuitem">
|
---|
569 | <xsl:call-template name="inline.charseq"/>
|
---|
570 | </xsl:template>
|
---|
571 |
|
---|
572 | <xsl:template match="guisubmenu">
|
---|
573 | <xsl:call-template name="inline.charseq"/>
|
---|
574 | </xsl:template>
|
---|
575 |
|
---|
576 | <xsl:template match="hardware">
|
---|
577 | <xsl:call-template name="inline.charseq"/>
|
---|
578 | </xsl:template>
|
---|
579 |
|
---|
580 | <xsl:template match="interface">
|
---|
581 | <xsl:call-template name="inline.charseq"/>
|
---|
582 | </xsl:template>
|
---|
583 |
|
---|
584 | <xsl:template match="interfacedefinition">
|
---|
585 | <xsl:call-template name="inline.charseq"/>
|
---|
586 | </xsl:template>
|
---|
587 |
|
---|
588 | <xsl:template match="keycap">
|
---|
589 | <xsl:choose>
|
---|
590 | <xsl:when test="@function and normalize-space(.) = ''">
|
---|
591 | <xsl:call-template name="inline.boldseq">
|
---|
592 | <xsl:with-param name="content">
|
---|
593 | <xsl:call-template name="gentext.template">
|
---|
594 | <xsl:with-param name="context" select="'keycap'"/>
|
---|
595 | <xsl:with-param name="name" select="@function"/>
|
---|
596 | </xsl:call-template>
|
---|
597 | </xsl:with-param>
|
---|
598 | </xsl:call-template>
|
---|
599 | </xsl:when>
|
---|
600 | <xsl:otherwise>
|
---|
601 | <xsl:call-template name="inline.boldseq"/>
|
---|
602 | </xsl:otherwise>
|
---|
603 | </xsl:choose>
|
---|
604 | </xsl:template>
|
---|
605 |
|
---|
606 | <xsl:template match="keycode">
|
---|
607 | <xsl:call-template name="inline.charseq"/>
|
---|
608 | </xsl:template>
|
---|
609 |
|
---|
610 | <xsl:template match="keysym">
|
---|
611 | <xsl:call-template name="inline.charseq"/>
|
---|
612 | </xsl:template>
|
---|
613 |
|
---|
614 | <xsl:template match="literal">
|
---|
615 | <xsl:call-template name="inline.monoseq"/>
|
---|
616 | </xsl:template>
|
---|
617 |
|
---|
618 | <xsl:template match="code">
|
---|
619 | <xsl:call-template name="inline.monoseq"/>
|
---|
620 | </xsl:template>
|
---|
621 |
|
---|
622 | <xsl:template match="medialabel">
|
---|
623 | <xsl:call-template name="inline.italicseq"/>
|
---|
624 | </xsl:template>
|
---|
625 |
|
---|
626 | <xsl:template match="shortcut">
|
---|
627 | <xsl:call-template name="inline.boldseq"/>
|
---|
628 | </xsl:template>
|
---|
629 |
|
---|
630 | <xsl:template match="mousebutton">
|
---|
631 | <xsl:call-template name="inline.charseq"/>
|
---|
632 | </xsl:template>
|
---|
633 |
|
---|
634 | <xsl:template match="option">
|
---|
635 | <xsl:call-template name="inline.monoseq"/>
|
---|
636 | </xsl:template>
|
---|
637 |
|
---|
638 | <xsl:template match="package">
|
---|
639 | <xsl:call-template name="inline.charseq"/>
|
---|
640 | </xsl:template>
|
---|
641 |
|
---|
642 | <xsl:template match="parameter">
|
---|
643 | <xsl:call-template name="inline.italicmonoseq"/>
|
---|
644 | </xsl:template>
|
---|
645 |
|
---|
646 | <xsl:template match="property">
|
---|
647 | <xsl:call-template name="inline.charseq"/>
|
---|
648 | </xsl:template>
|
---|
649 |
|
---|
650 | <xsl:template match="prompt">
|
---|
651 | <xsl:call-template name="inline.monoseq"/>
|
---|
652 | </xsl:template>
|
---|
653 |
|
---|
654 | <xsl:template match="replaceable" priority="1">
|
---|
655 | <xsl:call-template name="inline.italicmonoseq"/>
|
---|
656 | </xsl:template>
|
---|
657 |
|
---|
658 | <xsl:template match="returnvalue">
|
---|
659 | <xsl:call-template name="inline.charseq"/>
|
---|
660 | </xsl:template>
|
---|
661 |
|
---|
662 | <xsl:template match="structfield">
|
---|
663 | <xsl:call-template name="inline.italicmonoseq"/>
|
---|
664 | </xsl:template>
|
---|
665 |
|
---|
666 | <xsl:template match="structname">
|
---|
667 | <xsl:call-template name="inline.charseq"/>
|
---|
668 | </xsl:template>
|
---|
669 |
|
---|
670 | <xsl:template match="symbol">
|
---|
671 | <xsl:call-template name="inline.charseq"/>
|
---|
672 | </xsl:template>
|
---|
673 |
|
---|
674 | <xsl:template match="systemitem">
|
---|
675 | <xsl:call-template name="inline.monoseq"/>
|
---|
676 | </xsl:template>
|
---|
677 |
|
---|
678 | <xsl:template match="token">
|
---|
679 | <xsl:call-template name="inline.charseq"/>
|
---|
680 | </xsl:template>
|
---|
681 |
|
---|
682 | <xsl:template match="type">
|
---|
683 | <xsl:call-template name="inline.charseq"/>
|
---|
684 | </xsl:template>
|
---|
685 |
|
---|
686 | <xsl:template match="userinput">
|
---|
687 | <xsl:call-template name="inline.boldmonoseq"/>
|
---|
688 | </xsl:template>
|
---|
689 |
|
---|
690 | <xsl:template match="abbrev">
|
---|
691 | <xsl:call-template name="inline.charseq">
|
---|
692 | <xsl:with-param name="wrapper-name">abbr</xsl:with-param>
|
---|
693 | </xsl:call-template>
|
---|
694 | </xsl:template>
|
---|
695 |
|
---|
696 | <xsl:template match="acronym">
|
---|
697 | <xsl:call-template name="inline.charseq">
|
---|
698 | <xsl:with-param name="wrapper-name">acronym</xsl:with-param>
|
---|
699 | </xsl:call-template>
|
---|
700 | </xsl:template>
|
---|
701 |
|
---|
702 | <xsl:template match="citerefentry">
|
---|
703 | <xsl:choose>
|
---|
704 | <xsl:when test="$citerefentry.link != '0'">
|
---|
705 | <a>
|
---|
706 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
707 | <xsl:attribute name="href">
|
---|
708 | <xsl:call-template name="generate.citerefentry.link"/>
|
---|
709 | </xsl:attribute>
|
---|
710 | <xsl:call-template name="inline.charseq"/>
|
---|
711 | </a>
|
---|
712 | </xsl:when>
|
---|
713 | <xsl:otherwise>
|
---|
714 | <xsl:call-template name="inline.charseq"/>
|
---|
715 | </xsl:otherwise>
|
---|
716 | </xsl:choose>
|
---|
717 | </xsl:template>
|
---|
718 |
|
---|
719 | <xsl:template name="generate.citerefentry.link">
|
---|
720 | <!-- nop -->
|
---|
721 | </xsl:template>
|
---|
722 |
|
---|
723 | <xsl:template name="x.generate.citerefentry.link">
|
---|
724 | <xsl:text>http://example.com/cgi-bin/man.cgi?</xsl:text>
|
---|
725 | <xsl:value-of select="refentrytitle"/>
|
---|
726 | <xsl:text>(</xsl:text>
|
---|
727 | <xsl:value-of select="manvolnum"/>
|
---|
728 | <xsl:text>)</xsl:text>
|
---|
729 | </xsl:template>
|
---|
730 |
|
---|
731 | <xsl:template match="citetitle">
|
---|
732 | <xsl:choose>
|
---|
733 | <xsl:when test="@pubwork = 'article'">
|
---|
734 | <xsl:call-template name="gentext.startquote"/>
|
---|
735 | <xsl:call-template name="inline.charseq"/>
|
---|
736 | <xsl:call-template name="gentext.endquote"/>
|
---|
737 | </xsl:when>
|
---|
738 | <xsl:otherwise>
|
---|
739 | <xsl:call-template name="inline.italicseq"/>
|
---|
740 | </xsl:otherwise>
|
---|
741 | </xsl:choose>
|
---|
742 | </xsl:template>
|
---|
743 |
|
---|
744 | <xsl:template match="emphasis">
|
---|
745 | <span>
|
---|
746 | <xsl:call-template name="id.attribute"/>
|
---|
747 | <xsl:choose>
|
---|
748 | <!-- We don't want empty @class values, so do not propagate empty @roles -->
|
---|
749 | <xsl:when test="@role and normalize-space(@role) != '' and $emphasis.propagates.style != 0">
|
---|
750 | <xsl:apply-templates select="." mode="common.html.attributes">
|
---|
751 | <xsl:with-param name="class" select="@role"/>
|
---|
752 | </xsl:apply-templates>
|
---|
753 | </xsl:when>
|
---|
754 | <xsl:otherwise>
|
---|
755 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
756 | </xsl:otherwise>
|
---|
757 | </xsl:choose>
|
---|
758 | <xsl:call-template name="anchor"/>
|
---|
759 |
|
---|
760 | <xsl:call-template name="simple.xlink">
|
---|
761 | <xsl:with-param name="content">
|
---|
762 | <xsl:choose>
|
---|
763 | <xsl:when test="@role = 'bold' or @role='strong'">
|
---|
764 | <!-- backwards compatibility: make bold into b elements, but -->
|
---|
765 | <!-- don't put bold inside figure, example, or table titles -->
|
---|
766 | <xsl:choose>
|
---|
767 | <xsl:when test="local-name(..) = 'title' and (local-name(../..) = 'figure' or local-name(../..) = 'example' or local-name(../..) = 'table')">
|
---|
768 | <xsl:apply-templates/>
|
---|
769 | </xsl:when>
|
---|
770 | <xsl:otherwise>
|
---|
771 | <strong><xsl:apply-templates/></strong>
|
---|
772 | </xsl:otherwise>
|
---|
773 | </xsl:choose>
|
---|
774 | </xsl:when>
|
---|
775 | <xsl:when test="@role and $emphasis.propagates.style != 0">
|
---|
776 | <xsl:apply-templates/>
|
---|
777 | </xsl:when>
|
---|
778 | <xsl:otherwise>
|
---|
779 | <em><xsl:apply-templates/></em>
|
---|
780 | </xsl:otherwise>
|
---|
781 | </xsl:choose>
|
---|
782 | </xsl:with-param>
|
---|
783 | </xsl:call-template>
|
---|
784 | </span>
|
---|
785 | </xsl:template>
|
---|
786 |
|
---|
787 | <xsl:template match="foreignphrase">
|
---|
788 | <span>
|
---|
789 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
790 | <xsl:call-template name="inline.italicseq"/>
|
---|
791 | </span>
|
---|
792 | </xsl:template>
|
---|
793 |
|
---|
794 | <xsl:template match="markup">
|
---|
795 | <xsl:call-template name="inline.charseq"/>
|
---|
796 | </xsl:template>
|
---|
797 |
|
---|
798 | <xsl:template match="phrase">
|
---|
799 | <span>
|
---|
800 | <xsl:call-template name="id.attribute"/>
|
---|
801 | <xsl:call-template name="locale.html.attributes"/>
|
---|
802 | <!-- We don't want empty @class values, so do not propagate empty @roles -->
|
---|
803 | <xsl:choose>
|
---|
804 | <xsl:when test="@role and normalize-space(@role) != '' and $phrase.propagates.style != 0">
|
---|
805 | <xsl:apply-templates select="." mode="class.attribute">
|
---|
806 | <xsl:with-param name="class" select="@role"/>
|
---|
807 | </xsl:apply-templates>
|
---|
808 | </xsl:when>
|
---|
809 | <xsl:otherwise>
|
---|
810 | <xsl:apply-templates select="." mode="class.attribute"/>
|
---|
811 | </xsl:otherwise>
|
---|
812 | </xsl:choose>
|
---|
813 | <xsl:call-template name="dir"/>
|
---|
814 | <xsl:call-template name="anchor"/>
|
---|
815 | <xsl:call-template name="simple.xlink">
|
---|
816 | <xsl:with-param name="content">
|
---|
817 | <xsl:apply-templates/>
|
---|
818 | </xsl:with-param>
|
---|
819 | </xsl:call-template>
|
---|
820 | <xsl:call-template name="apply-annotations"/>
|
---|
821 | </span>
|
---|
822 | </xsl:template>
|
---|
823 |
|
---|
824 | <xsl:template match="quote">
|
---|
825 | <xsl:variable name="depth">
|
---|
826 | <xsl:call-template name="dot.count">
|
---|
827 | <xsl:with-param name="string">
|
---|
828 | <xsl:number level="multiple"/>
|
---|
829 | </xsl:with-param>
|
---|
830 | </xsl:call-template>
|
---|
831 | </xsl:variable>
|
---|
832 | <span>
|
---|
833 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
834 | <xsl:choose>
|
---|
835 | <xsl:when test="$depth mod 2 = 0">
|
---|
836 | <xsl:call-template name="gentext.startquote"/>
|
---|
837 | <xsl:call-template name="inline.charseq"/>
|
---|
838 | <xsl:call-template name="gentext.endquote"/>
|
---|
839 | </xsl:when>
|
---|
840 | <xsl:otherwise>
|
---|
841 | <xsl:call-template name="gentext.nestedstartquote"/>
|
---|
842 | <xsl:call-template name="inline.charseq"/>
|
---|
843 | <xsl:call-template name="gentext.nestedendquote"/>
|
---|
844 | </xsl:otherwise>
|
---|
845 | </xsl:choose>
|
---|
846 | </span>
|
---|
847 | </xsl:template>
|
---|
848 |
|
---|
849 | <xsl:template match="varname">
|
---|
850 | <xsl:call-template name="inline.monoseq"/>
|
---|
851 | </xsl:template>
|
---|
852 |
|
---|
853 | <xsl:template match="wordasword">
|
---|
854 | <xsl:call-template name="inline.italicseq"/>
|
---|
855 | </xsl:template>
|
---|
856 |
|
---|
857 | <xsl:template match="lineannotation">
|
---|
858 | <em>
|
---|
859 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
860 | <xsl:call-template name="inline.charseq"/>
|
---|
861 | </em>
|
---|
862 | </xsl:template>
|
---|
863 |
|
---|
864 | <xsl:template match="superscript">
|
---|
865 | <xsl:call-template name="inline.superscriptseq"/>
|
---|
866 | </xsl:template>
|
---|
867 |
|
---|
868 | <xsl:template match="subscript">
|
---|
869 | <xsl:call-template name="inline.subscriptseq"/>
|
---|
870 | </xsl:template>
|
---|
871 |
|
---|
872 | <xsl:template match="trademark">
|
---|
873 | <xsl:call-template name="inline.charseq"/>
|
---|
874 | <xsl:choose>
|
---|
875 | <xsl:when test="@class = 'copyright' or @class = 'registered'">
|
---|
876 | <xsl:call-template name="dingbat">
|
---|
877 | <xsl:with-param name="dingbat" select="@class"/>
|
---|
878 | </xsl:call-template>
|
---|
879 | </xsl:when>
|
---|
880 | <xsl:when test="@class = 'service'">
|
---|
881 | <sup>SM</sup>
|
---|
882 | </xsl:when>
|
---|
883 | <xsl:otherwise>
|
---|
884 | <xsl:call-template name="dingbat">
|
---|
885 | <xsl:with-param name="dingbat" select="'trademark'"/>
|
---|
886 | </xsl:call-template>
|
---|
887 | </xsl:otherwise>
|
---|
888 | </xsl:choose>
|
---|
889 | </xsl:template>
|
---|
890 |
|
---|
891 | <xsl:template match="firstterm">
|
---|
892 | <xsl:call-template name="glossterm">
|
---|
893 | <xsl:with-param name="firstterm" select="1"/>
|
---|
894 | </xsl:call-template>
|
---|
895 | </xsl:template>
|
---|
896 |
|
---|
897 | <xsl:template match="glossterm" name="glossterm">
|
---|
898 | <xsl:param name="firstterm" select="0"/>
|
---|
899 |
|
---|
900 | <!-- To avoid extra <a name=""> anchor from inline.italicseq -->
|
---|
901 | <xsl:variable name="content">
|
---|
902 | <xsl:apply-templates/>
|
---|
903 | </xsl:variable>
|
---|
904 |
|
---|
905 | <xsl:choose>
|
---|
906 | <xsl:when test="($firstterm.only.link = 0 or $firstterm = 1) and @linkend">
|
---|
907 | <xsl:variable name="targets" select="key('id',@linkend)"/>
|
---|
908 | <xsl:variable name="target" select="$targets[1]"/>
|
---|
909 |
|
---|
910 | <xsl:call-template name="check.id.unique">
|
---|
911 | <xsl:with-param name="linkend" select="@linkend"/>
|
---|
912 | </xsl:call-template>
|
---|
913 |
|
---|
914 | <xsl:choose>
|
---|
915 | <xsl:when test="$target">
|
---|
916 | <a>
|
---|
917 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
918 | <xsl:if test="@id or @xml:id">
|
---|
919 | <xsl:attribute name="id">
|
---|
920 | <xsl:value-of select="(@id|@xml:id)[1]"/>
|
---|
921 | </xsl:attribute>
|
---|
922 | </xsl:if>
|
---|
923 |
|
---|
924 | <xsl:attribute name="href">
|
---|
925 | <xsl:call-template name="href.target">
|
---|
926 | <xsl:with-param name="object" select="$target"/>
|
---|
927 | </xsl:call-template>
|
---|
928 | </xsl:attribute>
|
---|
929 |
|
---|
930 | <xsl:call-template name="inline.italicseq">
|
---|
931 | <xsl:with-param name="content" select="$content"/>
|
---|
932 | </xsl:call-template>
|
---|
933 | </a>
|
---|
934 | </xsl:when>
|
---|
935 | <xsl:otherwise>
|
---|
936 | <xsl:call-template name="inline.italicseq">
|
---|
937 | <xsl:with-param name="content" select="$content"/>
|
---|
938 | </xsl:call-template>
|
---|
939 | </xsl:otherwise>
|
---|
940 | </xsl:choose>
|
---|
941 | </xsl:when>
|
---|
942 |
|
---|
943 | <xsl:when test="not(@linkend) and ($firstterm.only.link = 0 or $firstterm = 1) and ($glossterm.auto.link != 0) and $glossary.collection != ''">
|
---|
944 | <xsl:variable name="term">
|
---|
945 | <xsl:choose>
|
---|
946 | <xsl:when test="@baseform"><xsl:value-of select="@baseform"/></xsl:when>
|
---|
947 | <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
|
---|
948 | </xsl:choose>
|
---|
949 | </xsl:variable>
|
---|
950 |
|
---|
951 | <xsl:variable name="cterm" select="(document($glossary.collection,.)//glossentry[glossterm=$term])[1]"/>
|
---|
952 |
|
---|
953 | <!-- HACK HACK HACK! But it works... -->
|
---|
954 | <!-- You'd need to do more work if you wanted to chunk on glossdiv, though -->
|
---|
955 |
|
---|
956 | <xsl:variable name="glossary" select="//glossary[@role='auto']"/>
|
---|
957 |
|
---|
958 | <xsl:if test="count($glossary) != 1">
|
---|
959 | <xsl:message>
|
---|
960 | <xsl:text>Warning: glossary.collection specified, but there are </xsl:text>
|
---|
961 | <xsl:value-of select="count($glossary)"/>
|
---|
962 | <xsl:text> automatic glossaries</xsl:text>
|
---|
963 | </xsl:message>
|
---|
964 | </xsl:if>
|
---|
965 |
|
---|
966 | <xsl:variable name="glosschunk">
|
---|
967 | <xsl:call-template name="href.target">
|
---|
968 | <xsl:with-param name="object" select="$glossary"/>
|
---|
969 | </xsl:call-template>
|
---|
970 | </xsl:variable>
|
---|
971 |
|
---|
972 | <xsl:variable name="chunkbase">
|
---|
973 | <xsl:choose>
|
---|
974 | <xsl:when test="contains($glosschunk, '#')">
|
---|
975 | <xsl:value-of select="substring-before($glosschunk, '#')"/>
|
---|
976 | </xsl:when>
|
---|
977 | <xsl:otherwise>
|
---|
978 | <xsl:value-of select="$glosschunk"/>
|
---|
979 | </xsl:otherwise>
|
---|
980 | </xsl:choose>
|
---|
981 | </xsl:variable>
|
---|
982 |
|
---|
983 | <xsl:choose>
|
---|
984 | <xsl:when test="not($cterm)">
|
---|
985 | <xsl:message>
|
---|
986 | <xsl:text>There's no entry for </xsl:text>
|
---|
987 | <xsl:value-of select="$term"/>
|
---|
988 | <xsl:text> in </xsl:text>
|
---|
989 | <xsl:value-of select="$glossary.collection"/>
|
---|
990 | </xsl:message>
|
---|
991 | <xsl:call-template name="inline.italicseq"/>
|
---|
992 | </xsl:when>
|
---|
993 | <xsl:otherwise>
|
---|
994 | <xsl:variable name="id">
|
---|
995 | <xsl:call-template name="object.id">
|
---|
996 | <xsl:with-param name="object" select="$cterm"/>
|
---|
997 | </xsl:call-template>
|
---|
998 | </xsl:variable>
|
---|
999 | <a href="{$chunkbase}#{$id}">
|
---|
1000 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1001 | <xsl:call-template name="inline.italicseq">
|
---|
1002 | <xsl:with-param name="content" select="$content"/>
|
---|
1003 | </xsl:call-template>
|
---|
1004 | </a>
|
---|
1005 | </xsl:otherwise>
|
---|
1006 | </xsl:choose>
|
---|
1007 | </xsl:when>
|
---|
1008 |
|
---|
1009 | <xsl:when test="not(@linkend) and ($firstterm.only.link = 0 or $firstterm = 1) and $glossterm.auto.link != 0">
|
---|
1010 | <xsl:variable name="term">
|
---|
1011 | <xsl:choose>
|
---|
1012 | <xsl:when test="@baseform">
|
---|
1013 | <xsl:value-of select="normalize-space(@baseform)"/>
|
---|
1014 | </xsl:when>
|
---|
1015 | <xsl:otherwise>
|
---|
1016 | <xsl:value-of select="normalize-space(.)"/>
|
---|
1017 | </xsl:otherwise>
|
---|
1018 | </xsl:choose>
|
---|
1019 | </xsl:variable>
|
---|
1020 | <xsl:variable name="targets" select="key('glossentries', $term)"/>
|
---|
1021 | <xsl:variable name="target" select="$targets[1]"/>
|
---|
1022 |
|
---|
1023 | <xsl:choose>
|
---|
1024 | <xsl:when test="count($targets)=0">
|
---|
1025 | <xsl:message>
|
---|
1026 | <xsl:text>Error: no glossentry for glossterm: </xsl:text>
|
---|
1027 | <xsl:value-of select="."/>
|
---|
1028 | <xsl:text>.</xsl:text>
|
---|
1029 | </xsl:message>
|
---|
1030 | <xsl:call-template name="inline.italicseq"/>
|
---|
1031 | </xsl:when>
|
---|
1032 | <xsl:otherwise>
|
---|
1033 | <a>
|
---|
1034 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1035 | <xsl:if test="@id or @xml:id">
|
---|
1036 | <xsl:attribute name="id">
|
---|
1037 | <xsl:value-of select="(@id|@xml:id)[1]"/>
|
---|
1038 | </xsl:attribute>
|
---|
1039 | </xsl:if>
|
---|
1040 |
|
---|
1041 | <xsl:attribute name="href">
|
---|
1042 | <xsl:call-template name="href.target">
|
---|
1043 | <xsl:with-param name="object" select="$target"/>
|
---|
1044 | </xsl:call-template>
|
---|
1045 | </xsl:attribute>
|
---|
1046 |
|
---|
1047 | <xsl:call-template name="inline.italicseq">
|
---|
1048 | <xsl:with-param name="content" select="$content"/>
|
---|
1049 | </xsl:call-template>
|
---|
1050 | </a>
|
---|
1051 | </xsl:otherwise>
|
---|
1052 | </xsl:choose>
|
---|
1053 | </xsl:when>
|
---|
1054 |
|
---|
1055 | <xsl:otherwise>
|
---|
1056 | <xsl:call-template name="inline.italicseq"/>
|
---|
1057 | </xsl:otherwise>
|
---|
1058 | </xsl:choose>
|
---|
1059 | </xsl:template>
|
---|
1060 |
|
---|
1061 | <xsl:template match="termdef">
|
---|
1062 | <span>
|
---|
1063 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1064 | <xsl:call-template name="gentext.template">
|
---|
1065 | <xsl:with-param name="context" select="'termdef'"/>
|
---|
1066 | <xsl:with-param name="name" select="'prefix'"/>
|
---|
1067 | </xsl:call-template>
|
---|
1068 | <xsl:apply-templates/>
|
---|
1069 | <xsl:call-template name="gentext.template">
|
---|
1070 | <xsl:with-param name="context" select="'termdef'"/>
|
---|
1071 | <xsl:with-param name="name" select="'suffix'"/>
|
---|
1072 | </xsl:call-template>
|
---|
1073 | </span>
|
---|
1074 | </xsl:template>
|
---|
1075 |
|
---|
1076 | <xsl:template match="sgmltag|tag">
|
---|
1077 | <xsl:call-template name="format.sgmltag"/>
|
---|
1078 | </xsl:template>
|
---|
1079 |
|
---|
1080 | <xsl:template name="format.sgmltag">
|
---|
1081 | <xsl:param name="class">
|
---|
1082 | <xsl:choose>
|
---|
1083 | <xsl:when test="@class">
|
---|
1084 | <xsl:value-of select="@class"/>
|
---|
1085 | </xsl:when>
|
---|
1086 | <xsl:otherwise>element</xsl:otherwise>
|
---|
1087 | </xsl:choose>
|
---|
1088 | </xsl:param>
|
---|
1089 |
|
---|
1090 | <xsl:variable name="content">
|
---|
1091 | <xsl:choose>
|
---|
1092 | <xsl:when test="$class='attribute'">
|
---|
1093 | <xsl:apply-templates/>
|
---|
1094 | </xsl:when>
|
---|
1095 | <xsl:when test="$class='attvalue'">
|
---|
1096 | <xsl:apply-templates/>
|
---|
1097 | </xsl:when>
|
---|
1098 | <xsl:when test="$class='element'">
|
---|
1099 | <xsl:apply-templates/>
|
---|
1100 | </xsl:when>
|
---|
1101 | <xsl:when test="$class='endtag'">
|
---|
1102 | <xsl:text></</xsl:text>
|
---|
1103 | <xsl:apply-templates/>
|
---|
1104 | <xsl:text>></xsl:text>
|
---|
1105 | </xsl:when>
|
---|
1106 | <xsl:when test="$class='genentity'">
|
---|
1107 | <xsl:text>&</xsl:text>
|
---|
1108 | <xsl:apply-templates/>
|
---|
1109 | <xsl:text>;</xsl:text>
|
---|
1110 | </xsl:when>
|
---|
1111 | <xsl:when test="$class='numcharref'">
|
---|
1112 | <xsl:text>&#</xsl:text>
|
---|
1113 | <xsl:apply-templates/>
|
---|
1114 | <xsl:text>;</xsl:text>
|
---|
1115 | </xsl:when>
|
---|
1116 | <xsl:when test="$class='paramentity'">
|
---|
1117 | <xsl:text>%</xsl:text>
|
---|
1118 | <xsl:apply-templates/>
|
---|
1119 | <xsl:text>;</xsl:text>
|
---|
1120 | </xsl:when>
|
---|
1121 | <xsl:when test="$class='pi'">
|
---|
1122 | <xsl:text><?</xsl:text>
|
---|
1123 | <xsl:apply-templates/>
|
---|
1124 | <xsl:text>></xsl:text>
|
---|
1125 | </xsl:when>
|
---|
1126 | <xsl:when test="$class='xmlpi'">
|
---|
1127 | <xsl:text><?</xsl:text>
|
---|
1128 | <xsl:apply-templates/>
|
---|
1129 | <xsl:text>?></xsl:text>
|
---|
1130 | </xsl:when>
|
---|
1131 | <xsl:when test="$class='starttag'">
|
---|
1132 | <xsl:text><</xsl:text>
|
---|
1133 | <xsl:apply-templates/>
|
---|
1134 | <xsl:text>></xsl:text>
|
---|
1135 | </xsl:when>
|
---|
1136 | <xsl:when test="$class='emptytag'">
|
---|
1137 | <xsl:text><</xsl:text>
|
---|
1138 | <xsl:apply-templates/>
|
---|
1139 | <xsl:text>/></xsl:text>
|
---|
1140 | </xsl:when>
|
---|
1141 | <xsl:when test="$class='sgmlcomment' or $class='comment'">
|
---|
1142 | <xsl:text><!--</xsl:text>
|
---|
1143 | <xsl:apply-templates/>
|
---|
1144 | <xsl:text>--></xsl:text>
|
---|
1145 | </xsl:when>
|
---|
1146 | <xsl:otherwise>
|
---|
1147 | <xsl:apply-templates/>
|
---|
1148 | </xsl:otherwise>
|
---|
1149 | </xsl:choose>
|
---|
1150 | </xsl:variable>
|
---|
1151 |
|
---|
1152 | <code>
|
---|
1153 | <xsl:apply-templates select="." mode="common.html.attributes">
|
---|
1154 | <xsl:with-param name="class" select="concat('sgmltag-', $class)"/>
|
---|
1155 | </xsl:apply-templates>
|
---|
1156 | <xsl:call-template name="simple.xlink">
|
---|
1157 | <xsl:with-param name="content" select="$content"/>
|
---|
1158 | </xsl:call-template>
|
---|
1159 | </code>
|
---|
1160 | </xsl:template>
|
---|
1161 |
|
---|
1162 | <xsl:template match="email">
|
---|
1163 | <xsl:call-template name="inline.monoseq">
|
---|
1164 | <xsl:with-param name="content">
|
---|
1165 | <xsl:if test="not($email.delimiters.enabled = 0)">
|
---|
1166 | <xsl:text><</xsl:text>
|
---|
1167 | </xsl:if>
|
---|
1168 | <a>
|
---|
1169 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1170 | <xsl:call-template name="id.attribute"/>
|
---|
1171 | <xsl:attribute name="href">
|
---|
1172 | <xsl:text>mailto:</xsl:text>
|
---|
1173 | <xsl:value-of select="."/>
|
---|
1174 | </xsl:attribute>
|
---|
1175 | <xsl:apply-templates/>
|
---|
1176 | </a>
|
---|
1177 | <xsl:if test="not($email.delimiters.enabled = 0)">
|
---|
1178 | <xsl:text>></xsl:text>
|
---|
1179 | </xsl:if>
|
---|
1180 | </xsl:with-param>
|
---|
1181 | </xsl:call-template>
|
---|
1182 | </xsl:template>
|
---|
1183 |
|
---|
1184 | <xsl:template match="keycombo">
|
---|
1185 | <xsl:variable name="action" select="@action"/>
|
---|
1186 | <xsl:variable name="joinchar">
|
---|
1187 | <xsl:choose>
|
---|
1188 | <xsl:when test="$action='seq'"><xsl:text> </xsl:text></xsl:when>
|
---|
1189 | <xsl:when test="$action='simul'">+</xsl:when>
|
---|
1190 | <xsl:when test="$action='press'">-</xsl:when>
|
---|
1191 | <xsl:when test="$action='click'">-</xsl:when>
|
---|
1192 | <xsl:when test="$action='double-click'">-</xsl:when>
|
---|
1193 | <xsl:when test="$action='other'"/>
|
---|
1194 | <xsl:otherwise>+</xsl:otherwise>
|
---|
1195 | </xsl:choose>
|
---|
1196 | </xsl:variable>
|
---|
1197 | <xsl:for-each select="*">
|
---|
1198 | <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if>
|
---|
1199 | <xsl:apply-templates select="."/>
|
---|
1200 | </xsl:for-each>
|
---|
1201 | </xsl:template>
|
---|
1202 |
|
---|
1203 | <xsl:template match="uri">
|
---|
1204 | <xsl:call-template name="inline.monoseq"/>
|
---|
1205 | </xsl:template>
|
---|
1206 |
|
---|
1207 | <!-- ==================================================================== -->
|
---|
1208 |
|
---|
1209 | <xsl:template match="menuchoice">
|
---|
1210 | <xsl:variable name="shortcut" select="./shortcut"/>
|
---|
1211 | <xsl:call-template name="process.menuchoice"/>
|
---|
1212 | <xsl:if test="$shortcut">
|
---|
1213 | <xsl:text> (</xsl:text>
|
---|
1214 | <xsl:apply-templates select="$shortcut"/>
|
---|
1215 | <xsl:text>)</xsl:text>
|
---|
1216 | </xsl:if>
|
---|
1217 | </xsl:template>
|
---|
1218 |
|
---|
1219 | <xsl:template name="process.menuchoice">
|
---|
1220 | <xsl:param name="nodelist" select="guibutton|guiicon|guilabel|guimenu|guimenuitem|guisubmenu|interface"/><!-- not(shortcut) -->
|
---|
1221 | <xsl:param name="count" select="1"/>
|
---|
1222 |
|
---|
1223 | <xsl:choose>
|
---|
1224 | <xsl:when test="$count>count($nodelist)"/>
|
---|
1225 | <xsl:when test="$count=1">
|
---|
1226 | <xsl:apply-templates select="$nodelist[$count=position()]"/>
|
---|
1227 | <xsl:call-template name="process.menuchoice">
|
---|
1228 | <xsl:with-param name="nodelist" select="$nodelist"/>
|
---|
1229 | <xsl:with-param name="count" select="$count+1"/>
|
---|
1230 | </xsl:call-template>
|
---|
1231 | </xsl:when>
|
---|
1232 | <xsl:otherwise>
|
---|
1233 | <xsl:variable name="node" select="$nodelist[$count=position()]"/>
|
---|
1234 | <xsl:choose>
|
---|
1235 | <xsl:when test="local-name($node)='guimenuitem' or local-name($node)='guisubmenu'">
|
---|
1236 | <xsl:value-of select="$menuchoice.menu.separator"/>
|
---|
1237 | </xsl:when>
|
---|
1238 | <xsl:otherwise>
|
---|
1239 | <xsl:value-of select="$menuchoice.separator"/>
|
---|
1240 | </xsl:otherwise>
|
---|
1241 | </xsl:choose>
|
---|
1242 | <xsl:apply-templates select="$node"/>
|
---|
1243 | <xsl:call-template name="process.menuchoice">
|
---|
1244 | <xsl:with-param name="nodelist" select="$nodelist"/>
|
---|
1245 | <xsl:with-param name="count" select="$count+1"/>
|
---|
1246 | </xsl:call-template>
|
---|
1247 | </xsl:otherwise>
|
---|
1248 | </xsl:choose>
|
---|
1249 | </xsl:template>
|
---|
1250 |
|
---|
1251 | <!-- ==================================================================== -->
|
---|
1252 |
|
---|
1253 | <xsl:template match="optional">
|
---|
1254 | <xsl:value-of select="$arg.choice.opt.open.str"/>
|
---|
1255 | <xsl:call-template name="inline.charseq"/>
|
---|
1256 | <xsl:value-of select="$arg.choice.opt.close.str"/>
|
---|
1257 | </xsl:template>
|
---|
1258 |
|
---|
1259 | <xsl:template match="citation">
|
---|
1260 | <!-- todo: integrate with bibliography collection -->
|
---|
1261 | <xsl:variable name="targets" select="(//biblioentry | //bibliomixed)[abbrev = string(current())]"/>
|
---|
1262 | <xsl:variable name="target" select="$targets[1]"/>
|
---|
1263 |
|
---|
1264 | <xsl:choose>
|
---|
1265 | <!-- try automatic linking based on match to abbrev -->
|
---|
1266 | <xsl:when test="$target and not(xref) and not(link)">
|
---|
1267 |
|
---|
1268 | <xsl:text>[</xsl:text>
|
---|
1269 | <a>
|
---|
1270 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1271 | <xsl:attribute name="href">
|
---|
1272 | <xsl:call-template name="href.target">
|
---|
1273 | <xsl:with-param name="object" select="$target"/>
|
---|
1274 | </xsl:call-template>
|
---|
1275 | </xsl:attribute>
|
---|
1276 |
|
---|
1277 | <xsl:choose>
|
---|
1278 | <xsl:when test="$bibliography.numbered != 0">
|
---|
1279 | <xsl:call-template name="id.attribute"/>
|
---|
1280 | <xsl:apply-templates select="$target" mode="citation"/>
|
---|
1281 | </xsl:when>
|
---|
1282 | <xsl:otherwise>
|
---|
1283 | <xsl:call-template name="inline.charseq"/>
|
---|
1284 | </xsl:otherwise>
|
---|
1285 | </xsl:choose>
|
---|
1286 |
|
---|
1287 | </a>
|
---|
1288 | <xsl:text>]</xsl:text>
|
---|
1289 | </xsl:when>
|
---|
1290 | <xsl:otherwise>
|
---|
1291 | <xsl:text>[</xsl:text>
|
---|
1292 | <xsl:call-template name="inline.charseq"/>
|
---|
1293 | <xsl:text>]</xsl:text>
|
---|
1294 | </xsl:otherwise>
|
---|
1295 | </xsl:choose>
|
---|
1296 | </xsl:template>
|
---|
1297 |
|
---|
1298 | <xsl:template match="citebiblioid">
|
---|
1299 | <xsl:variable name="targets" select="//*[biblioid = string(current())]"/>
|
---|
1300 | <xsl:variable name="target" select="$targets[1]"/>
|
---|
1301 |
|
---|
1302 | <xsl:choose>
|
---|
1303 | <!-- try automatic linking based on match to parent of biblioid -->
|
---|
1304 | <xsl:when test="$target and not(xref) and not(link)">
|
---|
1305 |
|
---|
1306 | <xsl:text>[</xsl:text>
|
---|
1307 | <a>
|
---|
1308 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1309 | <xsl:attribute name="href">
|
---|
1310 | <xsl:call-template name="href.target">
|
---|
1311 | <xsl:with-param name="object" select="$target"/>
|
---|
1312 | </xsl:call-template>
|
---|
1313 | </xsl:attribute>
|
---|
1314 |
|
---|
1315 | <xsl:call-template name="inline.charseq"/>
|
---|
1316 |
|
---|
1317 | </a>
|
---|
1318 | <xsl:text>]</xsl:text>
|
---|
1319 | </xsl:when>
|
---|
1320 | <xsl:otherwise>
|
---|
1321 | <xsl:text>[</xsl:text>
|
---|
1322 | <xsl:call-template name="inline.charseq"/>
|
---|
1323 | <xsl:text>]</xsl:text>
|
---|
1324 | </xsl:otherwise>
|
---|
1325 | </xsl:choose>
|
---|
1326 | </xsl:template>
|
---|
1327 |
|
---|
1328 | <xsl:template match="biblioentry|bibliomixed" mode="citation">
|
---|
1329 | <xsl:number from="bibliography" count="biblioentry|bibliomixed" level="any" format="1"/>
|
---|
1330 | </xsl:template>
|
---|
1331 |
|
---|
1332 | <!-- ==================================================================== -->
|
---|
1333 |
|
---|
1334 | <xsl:template match="comment[parent::answer|parent::appendix|parent::article|parent::bibliodiv| parent::bibliography|parent::blockquote|parent::caution|parent::chapter| parent::glossary|parent::glossdiv|parent::important|parent::index| parent::indexdiv|parent::listitem|parent::note|parent::orderedlist| parent::partintro|parent::preface|parent::procedure|parent::qandadiv| parent::qandaset|parent::question|parent::refentry|parent::refnamediv| parent::refsect1|parent::refsect2|parent::refsect3|parent::refsection| parent::refsynopsisdiv|parent::sect1|parent::sect2|parent::sect3|parent::sect4| parent::sect5|parent::section|parent::setindex|parent::sidebar| parent::simplesect|parent::taskprerequisites|parent::taskrelated| parent::tasksummary|parent::warning|parent::topic]|remark[parent::answer|parent::appendix|parent::article|parent::bibliodiv| parent::bibliography|parent::blockquote|parent::caution|parent::chapter| parent::glossary|parent::glossdiv|parent::important|parent::index| parent::indexdiv|parent::listitem|parent::note|parent::orderedlist| parent::partintro|parent::preface|parent::procedure|parent::qandadiv| parent::qandaset|parent::question|parent::refentry|parent::refnamediv| parent::refsect1|parent::refsect2|parent::refsect3|parent::refsection| parent::refsynopsisdiv|parent::sect1|parent::sect2|parent::sect3|parent::sect4| parent::sect5|parent::section|parent::setindex|parent::sidebar| parent::simplesect|parent::taskprerequisites|parent::taskrelated| parent::tasksummary|parent::warning|parent::topic]">
|
---|
1335 | <xsl:if test="$show.comments != 0">
|
---|
1336 | <p class="remark"><em><xsl:call-template name="inline.charseq"/></em></p>
|
---|
1337 | </xsl:if>
|
---|
1338 | </xsl:template>
|
---|
1339 |
|
---|
1340 | <xsl:template match="comment|remark">
|
---|
1341 | <xsl:if test="$show.comments != 0">
|
---|
1342 | <em><xsl:call-template name="inline.charseq"/></em>
|
---|
1343 | </xsl:if>
|
---|
1344 | </xsl:template>
|
---|
1345 |
|
---|
1346 | <!-- ==================================================================== -->
|
---|
1347 |
|
---|
1348 | <xsl:template match="productname">
|
---|
1349 | <xsl:call-template name="inline.charseq"/>
|
---|
1350 | <xsl:if test="@class">
|
---|
1351 | <xsl:call-template name="dingbat">
|
---|
1352 | <xsl:with-param name="dingbat" select="@class"/>
|
---|
1353 | </xsl:call-template>
|
---|
1354 | </xsl:if>
|
---|
1355 | </xsl:template>
|
---|
1356 |
|
---|
1357 | <xsl:template match="productnumber">
|
---|
1358 | <xsl:call-template name="inline.charseq"/>
|
---|
1359 | </xsl:template>
|
---|
1360 |
|
---|
1361 | <!-- ==================================================================== -->
|
---|
1362 |
|
---|
1363 | <xsl:template match="pob|street|city|state|postcode|country|otheraddr">
|
---|
1364 | <xsl:call-template name="inline.charseq"/>
|
---|
1365 | </xsl:template>
|
---|
1366 |
|
---|
1367 | <xsl:template match="phone|fax">
|
---|
1368 | <xsl:call-template name="inline.charseq"/>
|
---|
1369 | </xsl:template>
|
---|
1370 |
|
---|
1371 | <!-- in Addresses, for example -->
|
---|
1372 | <xsl:template match="honorific|firstname|surname|lineage|othername">
|
---|
1373 | <xsl:call-template name="inline.charseq"/>
|
---|
1374 | </xsl:template>
|
---|
1375 |
|
---|
1376 | <!-- ==================================================================== -->
|
---|
1377 |
|
---|
1378 | <xsl:template match="person">
|
---|
1379 | <xsl:param name="content">
|
---|
1380 | <xsl:call-template name="anchor"/>
|
---|
1381 | <xsl:call-template name="simple.xlink">
|
---|
1382 | <xsl:with-param name="content">
|
---|
1383 | <xsl:apply-templates select="personname"/>
|
---|
1384 | </xsl:with-param>
|
---|
1385 | </xsl:call-template>
|
---|
1386 | <xsl:call-template name="apply-annotations"/>
|
---|
1387 | </xsl:param>
|
---|
1388 |
|
---|
1389 | <span>
|
---|
1390 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1391 | <xsl:call-template name="id.attribute"/>
|
---|
1392 | <xsl:copy-of select="$content"/>
|
---|
1393 | </span>
|
---|
1394 | </xsl:template>
|
---|
1395 |
|
---|
1396 | <xsl:template match="personname">
|
---|
1397 | <xsl:param name="content">
|
---|
1398 | <xsl:call-template name="anchor"/>
|
---|
1399 | <xsl:call-template name="simple.xlink">
|
---|
1400 | <xsl:with-param name="content">
|
---|
1401 | <xsl:call-template name="person.name"/>
|
---|
1402 | </xsl:with-param>
|
---|
1403 | </xsl:call-template>
|
---|
1404 | <xsl:call-template name="apply-annotations"/>
|
---|
1405 | </xsl:param>
|
---|
1406 |
|
---|
1407 | <span>
|
---|
1408 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1409 | <xsl:call-template name="id.attribute"/>
|
---|
1410 | <xsl:copy-of select="$content"/>
|
---|
1411 | </span>
|
---|
1412 | </xsl:template>
|
---|
1413 |
|
---|
1414 | <!-- ==================================================================== -->
|
---|
1415 |
|
---|
1416 | <xsl:template match="org">
|
---|
1417 | <xsl:param name="content">
|
---|
1418 | <xsl:call-template name="anchor"/>
|
---|
1419 | <xsl:call-template name="simple.xlink">
|
---|
1420 | <xsl:with-param name="content">
|
---|
1421 | <xsl:apply-templates/>
|
---|
1422 | </xsl:with-param>
|
---|
1423 | </xsl:call-template>
|
---|
1424 | <xsl:call-template name="apply-annotations"/>
|
---|
1425 | </xsl:param>
|
---|
1426 |
|
---|
1427 | <span>
|
---|
1428 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1429 | <xsl:call-template name="id.attribute"/>
|
---|
1430 | <xsl:copy-of select="$content"/>
|
---|
1431 | </span>
|
---|
1432 | </xsl:template>
|
---|
1433 |
|
---|
1434 | <xsl:template match="orgname">
|
---|
1435 | <xsl:param name="content">
|
---|
1436 | <xsl:call-template name="anchor"/>
|
---|
1437 | <xsl:call-template name="simple.xlink">
|
---|
1438 | <xsl:with-param name="content">
|
---|
1439 | <xsl:apply-templates/>
|
---|
1440 | </xsl:with-param>
|
---|
1441 | </xsl:call-template>
|
---|
1442 | <xsl:call-template name="apply-annotations"/>
|
---|
1443 | </xsl:param>
|
---|
1444 |
|
---|
1445 | <span>
|
---|
1446 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1447 | <xsl:call-template name="id.attribute"/>
|
---|
1448 | <xsl:copy-of select="$content"/>
|
---|
1449 | </span>
|
---|
1450 | </xsl:template>
|
---|
1451 |
|
---|
1452 | <xsl:template match="orgdiv">
|
---|
1453 | <xsl:param name="content">
|
---|
1454 | <xsl:call-template name="anchor"/>
|
---|
1455 | <xsl:call-template name="simple.xlink">
|
---|
1456 | <xsl:with-param name="content">
|
---|
1457 | <xsl:apply-templates/>
|
---|
1458 | </xsl:with-param>
|
---|
1459 | </xsl:call-template>
|
---|
1460 | <xsl:call-template name="apply-annotations"/>
|
---|
1461 | </xsl:param>
|
---|
1462 |
|
---|
1463 | <span>
|
---|
1464 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1465 | <xsl:copy-of select="$content"/>
|
---|
1466 | </span>
|
---|
1467 | </xsl:template>
|
---|
1468 |
|
---|
1469 | <xsl:template match="affiliation">
|
---|
1470 | <xsl:param name="content">
|
---|
1471 | <xsl:call-template name="anchor"/>
|
---|
1472 | <xsl:call-template name="simple.xlink">
|
---|
1473 | <xsl:with-param name="content">
|
---|
1474 | <xsl:call-template name="person.name"/>
|
---|
1475 | </xsl:with-param>
|
---|
1476 | </xsl:call-template>
|
---|
1477 | <xsl:call-template name="apply-annotations"/>
|
---|
1478 | </xsl:param>
|
---|
1479 |
|
---|
1480 | <span>
|
---|
1481 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1482 | <xsl:call-template name="id.attribute"/>
|
---|
1483 | <xsl:copy-of select="$content"/>
|
---|
1484 | </span>
|
---|
1485 | </xsl:template>
|
---|
1486 |
|
---|
1487 | <!-- ==================================================================== -->
|
---|
1488 |
|
---|
1489 | <xsl:template match="beginpage">
|
---|
1490 | <!-- does nothing; this *is not* markup to force a page break. -->
|
---|
1491 | </xsl:template>
|
---|
1492 |
|
---|
1493 | </xsl:stylesheet>
|
---|