~ubuntu-branches/ubuntu/natty/kde4libs/natty-proposed

« back to all changes in this revision

Viewing changes to kdoctools/docbook/xsl/html/inline.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell, Jonathan Riddell, Scott Kitterman
  • Date: 2011-01-21 11:32:24 UTC
  • mfrom: (1.14.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110121113224-c9tebdkklj5u3awu
Tags: 4:4.6.0-0ubuntu1~ppa1
[ Jonathan Riddell ]
* New upstream release
* Reluctantly add kcm_ssl to kdelibs5-plugins, this should be in kdebase

[ Scott Kitterman ]
* Update libkatepartinterfaces4.symbols and libkdecore5.symbols for 4.5.95
  and confirm symbols on all architectures with pkgkde-symbolshelper
  - Thanks to Jonathan Thomas for verifying the missing symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0'?>
2
 
<!DOCTYPE xsl:stylesheet [
3
 
  <!ENTITY comment.block.parents "parent::answer|parent::appendix|parent::article|parent::bibliodiv|
4
 
                                  parent::bibliography|parent::blockquote|parent::caution|parent::chapter|
5
 
                                  parent::glossary|parent::glossdiv|parent::important|parent::index|
6
 
                                  parent::indexdiv|parent::listitem|parent::note|parent::orderedlist|
7
 
                                  parent::partintro|parent::preface|parent::procedure|parent::qandadiv|
8
 
                                  parent::qandaset|parent::question|parent::refentry|parent::refnamediv|
9
 
                                  parent::refsect1|parent::refsect2|parent::refsect3|parent::refsection|
10
 
                                  parent::refsynopsisdiv|parent::sect1|parent::sect2|parent::sect3|parent::sect4|
11
 
                                  parent::sect5|parent::section|parent::setindex|parent::sidebar|
12
 
                                  parent::simplesect|parent::taskprerequisites|parent::taskrelated|
13
 
                                  parent::tasksummary|parent::warning">
14
 
]>
15
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
16
 
                xmlns:xlink='http://www.w3.org/1999/xlink'
17
 
                xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks"
18
 
                exclude-result-prefixes="xlink suwl"
19
 
                version='1.0'>
20
 
 
21
 
<!-- ********************************************************************
22
 
     $Id: inline.xsl 384406 2005-01-31 00:11:27Z raabe $
23
 
     ********************************************************************
24
 
 
25
 
     This file is part of the XSL DocBook Stylesheet distribution.
26
 
     See ../README or http://nwalsh.com/docbook/xsl/ for copyright
27
 
     and other information.
28
 
 
29
 
     ******************************************************************** -->
30
 
 
31
 
<xsl:template name="simple.xlink">
32
 
  <xsl:param name="node" select="."/>
33
 
  <xsl:param name="content">
34
 
    <xsl:apply-templates/>
35
 
  </xsl:param>
36
 
 
37
 
  <xsl:variable name="link">
38
 
    <xsl:choose>
39
 
      <xsl:when test="$node/@xlink:href
40
 
                      and (not($node/@xlink:type) or $node/@xlink:type='simple')">
41
 
        <a>
42
 
          <xsl:if test="@xlink.title">
43
 
            <xsl:attribute name="title">
44
 
              <xsl:value-of select="@xlink:title"/>
45
 
            </xsl:attribute>
46
 
          </xsl:if>
47
 
 
48
 
          <xsl:attribute name="href">
49
 
            <xsl:choose>
50
 
              <!-- if the href starts with # and does not contain an "(" -->
51
 
              <!-- or if the href starts with #xpointer(id(, it's just an ID -->
52
 
              <xsl:when test="starts-with(@xlink:href,'#')
53
 
                              and (not(contains(@xlink:href,'&#40;'))
54
 
                              or starts-with(@xlink:href,'#xpointer&#40;id&#40;'))">
55
 
                <xsl:variable name="idref">
56
 
                  <xsl:call-template name="xpointer.idref">
57
 
                    <xsl:with-param name="xpointer" select="@xlink:href"/>
58
 
                  </xsl:call-template>
59
 
                </xsl:variable>
60
 
 
61
 
                <xsl:variable name="targets" select="key('id',$idref)"/>
62
 
                <xsl:variable name="target" select="$targets[1]"/>
63
 
 
64
 
                <xsl:call-template name="check.id.unique">
65
 
                  <xsl:with-param name="linkend" select="@linkend"/>
66
 
                </xsl:call-template>
67
 
 
68
 
                <xsl:choose>
69
 
                  <xsl:when test="count($target) = 0">
70
 
                    <xsl:message>
71
 
                      <xsl:text>XLink to nonexistent id: </xsl:text>
72
 
                      <xsl:value-of select="$idref"/>
73
 
                    </xsl:message>
74
 
                    <xsl:text>???</xsl:text>
75
 
                  </xsl:when>
76
 
                  <xsl:otherwise>
77
 
                    <xsl:call-template name="href.target">
78
 
                      <xsl:with-param name="object" select="$target"/>
79
 
                    </xsl:call-template>
80
 
                  </xsl:otherwise>
81
 
                </xsl:choose>
82
 
              </xsl:when>
83
 
 
84
 
              <!-- otherwise it's a URI -->
85
 
              <xsl:otherwise>
86
 
                <xsl:value-of select="@xlink:href"/>
87
 
              </xsl:otherwise>
88
 
            </xsl:choose>
89
 
          </xsl:attribute>
90
 
          <xsl:copy-of select="$content"/>
91
 
        </a>
92
 
      </xsl:when>
93
 
      <xsl:otherwise>
94
 
        <xsl:copy-of select="$content"/>
95
 
      </xsl:otherwise>
96
 
    </xsl:choose>
97
 
  </xsl:variable>
98
 
 
99
 
  <xsl:choose>
100
 
    <xsl:when test="function-available('suwl:unwrapLinks')">
101
 
      <xsl:copy-of select="suwl:unwrapLinks($link)"/>
102
 
    </xsl:when>
103
 
    <xsl:otherwise>
104
 
      <xsl:copy-of select="$link"/>
105
 
    </xsl:otherwise>
106
 
  </xsl:choose>
107
 
</xsl:template>
108
 
 
109
 
<xsl:template name="inline.charseq">
110
 
  <xsl:param name="content">
111
 
    <xsl:call-template name="anchor"/>
112
 
    <xsl:call-template name="simple.xlink">
113
 
      <xsl:with-param name="content">
114
 
        <xsl:apply-templates/>
115
 
      </xsl:with-param>
116
 
    </xsl:call-template>
117
 
  </xsl:param>
118
 
  <span class="{local-name(.)}">
119
 
    <xsl:if test="@dir">
120
 
      <xsl:attribute name="dir">
121
 
        <xsl:value-of select="@dir"/>
122
 
      </xsl:attribute>
123
 
    </xsl:if>
124
 
    <xsl:copy-of select="$content"/>
125
 
  </span>
126
 
</xsl:template>
127
 
 
128
 
<xsl:template name="inline.monoseq">
129
 
  <xsl:param name="content">
130
 
    <xsl:call-template name="anchor"/>
131
 
    <xsl:call-template name="simple.xlink">
132
 
      <xsl:with-param name="content">
133
 
        <xsl:apply-templates/>
134
 
      </xsl:with-param>
135
 
    </xsl:call-template>
136
 
  </xsl:param>
137
 
  <code class="{local-name(.)}">
138
 
    <xsl:if test="@dir">
139
 
      <xsl:attribute name="dir">
140
 
        <xsl:value-of select="@dir"/>
141
 
      </xsl:attribute>
142
 
    </xsl:if>
143
 
    <xsl:copy-of select="$content"/>
144
 
  </code>
145
 
</xsl:template>
146
 
 
147
 
<xsl:template name="inline.boldseq">
148
 
  <xsl:param name="content">
149
 
    <xsl:call-template name="anchor"/>
150
 
    <xsl:call-template name="simple.xlink">
151
 
      <xsl:with-param name="content">
152
 
        <xsl:apply-templates/>
153
 
      </xsl:with-param>
154
 
    </xsl:call-template>
155
 
  </xsl:param>
156
 
 
157
 
  <span>
158
 
    <xsl:if test="@dir">
159
 
      <xsl:attribute name="dir">
160
 
        <xsl:value-of select="@dir"/>
161
 
      </xsl:attribute>
162
 
    </xsl:if>
163
 
 
164
 
    <!-- don't put <strong> inside figure, example, or table titles -->
165
 
    <xsl:choose>
166
 
      <xsl:when test="local-name(..) = 'title'
167
 
                      and (local-name(../..) = 'figure'
168
 
                      or local-name(../..) = 'example'
169
 
                      or local-name(../..) = 'table')">
170
 
        <xsl:copy-of select="$content"/>
171
 
      </xsl:when>
172
 
      <xsl:otherwise>
173
 
        <strong class="{local-name(.)}">
174
 
          <xsl:copy-of select="$content"/>
175
 
        </strong>
176
 
      </xsl:otherwise>
177
 
    </xsl:choose>
178
 
  </span>
179
 
</xsl:template>
180
 
 
181
 
<xsl:template name="inline.italicseq">
182
 
  <xsl:param name="content">
183
 
    <xsl:call-template name="anchor"/>
184
 
    <xsl:call-template name="simple.xlink">
185
 
      <xsl:with-param name="content">
186
 
        <xsl:apply-templates/>
187
 
      </xsl:with-param>
188
 
    </xsl:call-template>
189
 
  </xsl:param>
190
 
  <em class="{local-name(.)}">
191
 
    <xsl:if test="@dir">
192
 
      <xsl:attribute name="dir">
193
 
        <xsl:value-of select="@dir"/>
194
 
      </xsl:attribute>
195
 
    </xsl:if>
196
 
    <xsl:copy-of select="$content"/>
197
 
  </em>
198
 
</xsl:template>
199
 
 
200
 
<xsl:template name="inline.boldmonoseq">
201
 
  <xsl:param name="content">
202
 
    <xsl:call-template name="anchor"/>
203
 
    <xsl:call-template name="simple.xlink">
204
 
      <xsl:with-param name="content">
205
 
        <xsl:apply-templates/>
206
 
      </xsl:with-param>
207
 
    </xsl:call-template>
208
 
  </xsl:param>
209
 
  <!-- don't put <strong> inside figure, example, or table titles -->
210
 
  <!-- or other titles that may already be represented with <strong>'s. -->
211
 
  <xsl:choose>
212
 
    <xsl:when test="local-name(..) = 'title'
213
 
                    and (local-name(../..) = 'figure'
214
 
                         or local-name(../..) = 'example'
215
 
                         or local-name(../..) = 'table'
216
 
                         or local-name(../..) = 'formalpara')">
217
 
      <code class="{local-name(.)}">
218
 
        <xsl:if test="@dir">
219
 
          <xsl:attribute name="dir">
220
 
            <xsl:value-of select="@dir"/>
221
 
          </xsl:attribute>
222
 
        </xsl:if>
223
 
        <xsl:copy-of select="$content"/>
224
 
      </code>
225
 
    </xsl:when>
226
 
    <xsl:otherwise>
227
 
      <strong class="{local-name(.)}">
228
 
        <code>
229
 
          <xsl:if test="@dir">
230
 
            <xsl:attribute name="dir">
231
 
              <xsl:value-of select="@dir"/>
232
 
            </xsl:attribute>
233
 
          </xsl:if>
234
 
          <xsl:copy-of select="$content"/>
235
 
        </code>
236
 
      </strong>
237
 
    </xsl:otherwise>
238
 
  </xsl:choose>
239
 
</xsl:template>
240
 
 
241
 
<xsl:template name="inline.italicmonoseq">
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
 
  <em class="{local-name(.)}">
251
 
    <code>
252
 
      <xsl:if test="@dir">
253
 
        <xsl:attribute name="dir">
254
 
          <xsl:value-of select="@dir"/>
255
 
        </xsl:attribute>
256
 
      </xsl:if>
257
 
      <xsl:copy-of select="$content"/>
258
 
    </code>
259
 
  </em>
260
 
</xsl:template>
261
 
 
262
 
<xsl:template name="inline.superscriptseq">
263
 
  <xsl:param name="content">
264
 
    <xsl:call-template name="anchor"/>
265
 
    <xsl:call-template name="simple.xlink">
266
 
      <xsl:with-param name="content">
267
 
        <xsl:apply-templates/>
268
 
      </xsl:with-param>
269
 
    </xsl:call-template>
270
 
  </xsl:param>
271
 
  <sup>
272
 
    <xsl:if test="@dir">
273
 
      <xsl:attribute name="dir">
274
 
        <xsl:value-of select="@dir"/>
275
 
      </xsl:attribute>
276
 
    </xsl:if>
277
 
    <xsl:copy-of select="$content"/>
278
 
  </sup>
279
 
</xsl:template>
280
 
 
281
 
<xsl:template name="inline.subscriptseq">
282
 
  <xsl:param name="content">
283
 
    <xsl:call-template name="anchor"/>
284
 
    <xsl:call-template name="simple.xlink">
285
 
      <xsl:with-param name="content">
286
 
        <xsl:apply-templates/>
287
 
      </xsl:with-param>
288
 
    </xsl:call-template>
289
 
  </xsl:param>
290
 
  <sub>
291
 
    <xsl:if test="@dir">
292
 
      <xsl:attribute name="dir">
293
 
        <xsl:value-of select="@dir"/>
294
 
      </xsl:attribute>
295
 
    </xsl:if>
296
 
    <xsl:copy-of select="$content"/>
297
 
  </sub>
298
 
</xsl:template>
299
 
 
300
 
<!-- ==================================================================== -->
301
 
<!-- some special cases -->
302
 
 
303
 
<xsl:template match="author">
304
 
  <span class="{name(.)}">
305
 
    <xsl:call-template name="anchor"/>
306
 
    <xsl:call-template name="person.name"/>
307
 
  </span>
308
 
</xsl:template>
309
 
 
310
 
<xsl:template match="editor">
311
 
  <span class="{name(.)}">
312
 
    <xsl:call-template name="anchor"/>
313
 
    <xsl:call-template name="person.name"/>
314
 
  </span>
315
 
</xsl:template>
316
 
 
317
 
<xsl:template match="othercredit">
318
 
  <span class="{name(.)}">
319
 
    <xsl:call-template name="anchor"/>
320
 
    <xsl:call-template name="person.name"/>
321
 
  </span>
322
 
</xsl:template>
323
 
 
324
 
<xsl:template match="authorinitials">
325
 
  <xsl:call-template name="inline.charseq"/>
326
 
</xsl:template>
327
 
 
328
 
<!-- ==================================================================== -->
329
 
 
330
 
<xsl:template match="accel">
331
 
  <xsl:call-template name="inline.charseq"/>
332
 
</xsl:template>
333
 
 
334
 
<xsl:template match="action">
335
 
  <xsl:call-template name="inline.charseq"/>
336
 
</xsl:template>
337
 
 
338
 
<xsl:template match="application">
339
 
  <xsl:call-template name="inline.charseq"/>
340
 
</xsl:template>
341
 
 
342
 
<xsl:template match="classname">
343
 
  <xsl:call-template name="inline.monoseq"/>
344
 
</xsl:template>
345
 
 
346
 
<xsl:template match="exceptionname">
347
 
  <xsl:call-template name="inline.monoseq"/>
348
 
</xsl:template>
349
 
 
350
 
<xsl:template match="interfacename">
351
 
  <xsl:call-template name="inline.monoseq"/>
352
 
</xsl:template>
353
 
 
354
 
<xsl:template match="methodname">
355
 
  <xsl:call-template name="inline.monoseq"/>
356
 
</xsl:template>
357
 
 
358
 
<xsl:template match="command">
359
 
  <xsl:call-template name="inline.boldseq"/>
360
 
</xsl:template>
361
 
 
362
 
<xsl:template match="computeroutput">
363
 
  <xsl:call-template name="inline.monoseq"/>
364
 
</xsl:template>
365
 
 
366
 
<xsl:template match="constant">
367
 
  <xsl:call-template name="inline.monoseq"/>
368
 
</xsl:template>
369
 
 
370
 
<xsl:template match="database">
371
 
  <xsl:call-template name="inline.charseq"/>
372
 
</xsl:template>
373
 
 
374
 
<xsl:template match="errorcode">
375
 
  <xsl:call-template name="inline.charseq"/>
376
 
</xsl:template>
377
 
 
378
 
<xsl:template match="errorname">
379
 
  <xsl:call-template name="inline.charseq"/>
380
 
</xsl:template>
381
 
 
382
 
<xsl:template match="errortype">
383
 
  <xsl:call-template name="inline.charseq"/>
384
 
</xsl:template>
385
 
 
386
 
<xsl:template match="errortext">
387
 
  <xsl:call-template name="inline.charseq"/>
388
 
</xsl:template>
389
 
 
390
 
<xsl:template match="envar">
391
 
  <xsl:call-template name="inline.monoseq"/>
392
 
</xsl:template>
393
 
 
394
 
<xsl:template match="filename">
395
 
  <xsl:call-template name="inline.monoseq"/>
396
 
</xsl:template>
397
 
 
398
 
<xsl:template match="function">
399
 
  <xsl:choose>
400
 
    <xsl:when test="$function.parens != '0'
401
 
                    and (parameter or function or replaceable)">
402
 
      <xsl:variable name="nodes" select="text()|*"/>
403
 
      <xsl:call-template name="inline.monoseq">
404
 
        <xsl:with-param name="content">
405
 
          <xsl:call-template name="simple.xlink">
406
 
            <xsl:with-param name="content">
407
 
              <xsl:apply-templates select="$nodes[1]"/>
408
 
            </xsl:with-param>
409
 
          </xsl:call-template>
410
 
        </xsl:with-param>
411
 
      </xsl:call-template>
412
 
      <xsl:text>(</xsl:text>
413
 
      <xsl:apply-templates select="$nodes[position()>1]"/>
414
 
      <xsl:text>)</xsl:text>
415
 
    </xsl:when>
416
 
    <xsl:otherwise>
417
 
     <xsl:call-template name="inline.monoseq"/>
418
 
    </xsl:otherwise>
419
 
  </xsl:choose>
420
 
</xsl:template>
421
 
 
422
 
<xsl:template match="function/parameter" priority="2">
423
 
  <xsl:call-template name="inline.italicmonoseq"/>
424
 
  <xsl:if test="following-sibling::*">
425
 
    <xsl:text>, </xsl:text>
426
 
  </xsl:if>
427
 
</xsl:template>
428
 
 
429
 
<xsl:template match="function/replaceable" priority="2">
430
 
  <xsl:call-template name="inline.italicmonoseq"/>
431
 
  <xsl:if test="following-sibling::*">
432
 
    <xsl:text>, </xsl:text>
433
 
  </xsl:if>
434
 
</xsl:template>
435
 
 
436
 
<xsl:template match="guibutton">
437
 
  <xsl:call-template name="inline.charseq"/>
438
 
</xsl:template>
439
 
 
440
 
<xsl:template match="guiicon">
441
 
  <xsl:call-template name="inline.charseq"/>
442
 
</xsl:template>
443
 
 
444
 
<xsl:template match="guilabel">
445
 
  <xsl:call-template name="inline.charseq"/>
446
 
</xsl:template>
447
 
 
448
 
<xsl:template match="guimenu">
449
 
  <xsl:call-template name="inline.charseq"/>
450
 
</xsl:template>
451
 
 
452
 
<xsl:template match="guimenuitem">
453
 
  <xsl:call-template name="inline.charseq"/>
454
 
</xsl:template>
455
 
 
456
 
<xsl:template match="guisubmenu">
457
 
  <xsl:call-template name="inline.charseq"/>
458
 
</xsl:template>
459
 
 
460
 
<xsl:template match="hardware">
461
 
  <xsl:call-template name="inline.charseq"/>
462
 
</xsl:template>
463
 
 
464
 
<xsl:template match="interface">
465
 
  <xsl:call-template name="inline.charseq"/>
466
 
</xsl:template>
467
 
 
468
 
<xsl:template match="interfacedefinition">
469
 
  <xsl:call-template name="inline.charseq"/>
470
 
</xsl:template>
471
 
 
472
 
<xsl:template match="keycap">
473
 
  <xsl:call-template name="inline.boldseq"/>
474
 
</xsl:template>
475
 
 
476
 
<xsl:template match="keycode">
477
 
  <xsl:call-template name="inline.charseq"/>
478
 
</xsl:template>
479
 
 
480
 
<xsl:template match="keysym">
481
 
  <xsl:call-template name="inline.charseq"/>
482
 
</xsl:template>
483
 
 
484
 
<xsl:template match="literal">
485
 
  <xsl:call-template name="inline.monoseq"/>
486
 
</xsl:template>
487
 
 
488
 
<xsl:template match="code">
489
 
  <xsl:call-template name="inline.monoseq"/>
490
 
</xsl:template>
491
 
 
492
 
<xsl:template match="medialabel">
493
 
  <xsl:call-template name="inline.italicseq"/>
494
 
</xsl:template>
495
 
 
496
 
<xsl:template match="shortcut">
497
 
  <xsl:call-template name="inline.boldseq"/>
498
 
</xsl:template>
499
 
 
500
 
<xsl:template match="mousebutton">
501
 
  <xsl:call-template name="inline.charseq"/>
502
 
</xsl:template>
503
 
 
504
 
<xsl:template match="option">
505
 
  <xsl:call-template name="inline.monoseq"/>
506
 
</xsl:template>
507
 
 
508
 
<xsl:template match="package">
509
 
  <xsl:call-template name="inline.charseq"/>
510
 
</xsl:template>
511
 
 
512
 
<xsl:template match="parameter">
513
 
  <xsl:call-template name="inline.italicmonoseq"/>
514
 
</xsl:template>
515
 
 
516
 
<xsl:template match="property">
517
 
  <xsl:call-template name="inline.charseq"/>
518
 
</xsl:template>
519
 
 
520
 
<xsl:template match="prompt">
521
 
  <xsl:call-template name="inline.monoseq"/>
522
 
</xsl:template>
523
 
 
524
 
<xsl:template match="replaceable" priority="1">
525
 
  <xsl:call-template name="inline.italicmonoseq"/>
526
 
</xsl:template>
527
 
 
528
 
<xsl:template match="returnvalue">
529
 
  <xsl:call-template name="inline.charseq"/>
530
 
</xsl:template>
531
 
 
532
 
<xsl:template match="structfield">
533
 
  <xsl:call-template name="inline.italicmonoseq"/>
534
 
</xsl:template>
535
 
 
536
 
<xsl:template match="structname">
537
 
  <xsl:call-template name="inline.charseq"/>
538
 
</xsl:template>
539
 
 
540
 
<xsl:template match="symbol">
541
 
  <xsl:call-template name="inline.charseq"/>
542
 
</xsl:template>
543
 
 
544
 
<xsl:template match="systemitem">
545
 
  <xsl:call-template name="inline.monoseq"/>
546
 
</xsl:template>
547
 
 
548
 
<xsl:template match="token">
549
 
  <xsl:call-template name="inline.charseq"/>
550
 
</xsl:template>
551
 
 
552
 
<xsl:template match="type">
553
 
  <xsl:call-template name="inline.charseq"/>
554
 
</xsl:template>
555
 
 
556
 
<xsl:template match="userinput">
557
 
  <xsl:call-template name="inline.boldmonoseq"/>
558
 
</xsl:template>
559
 
 
560
 
<xsl:template match="abbrev">
561
 
  <xsl:call-template name="inline.charseq"/>
562
 
</xsl:template>
563
 
 
564
 
<xsl:template match="acronym">
565
 
  <xsl:call-template name="inline.charseq"/>
566
 
</xsl:template>
567
 
 
568
 
<xsl:template match="citerefentry">
569
 
  <xsl:choose>
570
 
    <xsl:when test="$citerefentry.link != '0'">
571
 
      <a>
572
 
        <xsl:attribute name="href">
573
 
          <xsl:call-template name="generate.citerefentry.link"/>
574
 
        </xsl:attribute>
575
 
        <xsl:call-template name="inline.charseq"/>
576
 
      </a>
577
 
    </xsl:when>
578
 
    <xsl:otherwise>
579
 
      <xsl:call-template name="inline.charseq"/>
580
 
    </xsl:otherwise>
581
 
  </xsl:choose>
582
 
</xsl:template>
583
 
 
584
 
<xsl:template name="generate.citerefentry.link">
585
 
  <!-- nop -->
586
 
</xsl:template>
587
 
 
588
 
<xsl:template name="x.generate.citerefentry.link">
589
 
  <xsl:text>http://example.com/cgi-bin/man.cgi?</xsl:text>
590
 
  <xsl:value-of select="refentrytitle"/>
591
 
  <xsl:text>(</xsl:text>
592
 
  <xsl:value-of select="manvolnum"/>
593
 
  <xsl:text>)</xsl:text>
594
 
</xsl:template>
595
 
 
596
 
<xsl:template match="citetitle">
597
 
  <xsl:choose>
598
 
    <xsl:when test="@pubwork = 'article'">
599
 
      <xsl:call-template name="gentext.startquote"/>
600
 
      <xsl:call-template name="inline.charseq"/>
601
 
      <xsl:call-template name="gentext.endquote"/>
602
 
    </xsl:when>
603
 
    <xsl:otherwise>
604
 
      <xsl:call-template name="inline.italicseq"/>
605
 
    </xsl:otherwise>
606
 
  </xsl:choose>
607
 
</xsl:template>
608
 
 
609
 
<xsl:template match="emphasis">
610
 
  <span>
611
 
    <xsl:choose>
612
 
      <xsl:when test="@role and $emphasis.propagates.style != 0">
613
 
        <xsl:attribute name="class">
614
 
          <xsl:value-of select="@role"/>
615
 
        </xsl:attribute>
616
 
      </xsl:when>
617
 
      <xsl:otherwise>
618
 
        <xsl:attribute name="class">
619
 
          <xsl:text>emphasis</xsl:text>
620
 
        </xsl:attribute>
621
 
      </xsl:otherwise>
622
 
    </xsl:choose>
623
 
    <xsl:call-template name="anchor"/>
624
 
 
625
 
    <xsl:call-template name="simple.xlink">
626
 
      <xsl:with-param name="content">
627
 
        <xsl:choose>
628
 
          <xsl:when test="@role = 'bold' or @role='strong'">
629
 
            <!-- backwards compatibility: make bold into b elements, but -->
630
 
            <!-- don't put bold inside figure, example, or table titles -->
631
 
            <xsl:choose>
632
 
              <xsl:when test="local-name(..) = 'title'
633
 
                              and (local-name(../..) = 'figure'
634
 
                              or local-name(../..) = 'example'
635
 
                              or local-name(../..) = 'table')">
636
 
                <xsl:apply-templates/>
637
 
              </xsl:when>
638
 
              <xsl:otherwise>
639
 
                <strong><xsl:apply-templates/></strong>
640
 
              </xsl:otherwise>
641
 
            </xsl:choose>
642
 
          </xsl:when>
643
 
          <xsl:when test="@role and $emphasis.propagates.style != 0">
644
 
            <xsl:apply-templates/>
645
 
          </xsl:when>
646
 
          <xsl:otherwise>
647
 
            <em><xsl:apply-templates/></em>
648
 
          </xsl:otherwise>
649
 
        </xsl:choose>
650
 
      </xsl:with-param>
651
 
    </xsl:call-template>
652
 
  </span>
653
 
</xsl:template>
654
 
 
655
 
<xsl:template match="foreignphrase">
656
 
  <span class="foreignphrase">
657
 
    <xsl:if test="@lang or @xml:lang">
658
 
      <xsl:call-template name="language.attribute"/>
659
 
    </xsl:if>
660
 
    <xsl:call-template name="inline.italicseq"/>
661
 
  </span>
662
 
</xsl:template>
663
 
 
664
 
<xsl:template match="markup">
665
 
  <xsl:call-template name="inline.charseq"/>
666
 
</xsl:template>
667
 
 
668
 
<xsl:template match="phrase">
669
 
  <span>
670
 
    <xsl:if test="@lang or @xml:lang">
671
 
      <xsl:call-template name="language.attribute"/>
672
 
    </xsl:if>
673
 
    <xsl:if test="@role and $phrase.propagates.style != 0">
674
 
      <xsl:attribute name="class">
675
 
        <xsl:value-of select="@role"/>
676
 
      </xsl:attribute>
677
 
    </xsl:if>
678
 
    <xsl:call-template name="anchor"/>
679
 
    <xsl:call-template name="simple.xlink">
680
 
      <xsl:with-param name="content">
681
 
        <xsl:apply-templates/>
682
 
      </xsl:with-param>
683
 
    </xsl:call-template>
684
 
  </span>
685
 
</xsl:template>
686
 
 
687
 
<xsl:template match="quote">
688
 
  <xsl:variable name="depth">
689
 
    <xsl:call-template name="dot.count">
690
 
      <xsl:with-param name="string"><xsl:number level="multiple"/></xsl:with-param>
691
 
    </xsl:call-template>
692
 
  </xsl:variable>
693
 
  <xsl:choose>
694
 
    <xsl:when test="$depth mod 2 = 0">
695
 
      <xsl:call-template name="gentext.startquote"/>
696
 
      <xsl:call-template name="inline.charseq"/>
697
 
      <xsl:call-template name="gentext.endquote"/>
698
 
    </xsl:when>
699
 
    <xsl:otherwise>
700
 
      <xsl:call-template name="gentext.nestedstartquote"/>
701
 
      <xsl:call-template name="inline.charseq"/>
702
 
      <xsl:call-template name="gentext.nestedendquote"/>
703
 
    </xsl:otherwise>
704
 
  </xsl:choose>
705
 
</xsl:template>
706
 
 
707
 
<xsl:template match="varname">
708
 
  <xsl:call-template name="inline.monoseq"/>
709
 
</xsl:template>
710
 
 
711
 
<xsl:template match="wordasword">
712
 
  <xsl:call-template name="inline.italicseq"/>
713
 
</xsl:template>
714
 
 
715
 
<xsl:template match="lineannotation">
716
 
  <em class="{local-name(.)}">
717
 
    <xsl:call-template name="inline.charseq"/>
718
 
  </em>
719
 
</xsl:template>
720
 
 
721
 
<xsl:template match="superscript">
722
 
  <xsl:call-template name="inline.superscriptseq"/>
723
 
</xsl:template>
724
 
 
725
 
<xsl:template match="subscript">
726
 
  <xsl:call-template name="inline.subscriptseq"/>
727
 
</xsl:template>
728
 
 
729
 
<xsl:template match="trademark">
730
 
  <xsl:call-template name="inline.charseq"/>
731
 
  <xsl:choose>
732
 
    <xsl:when test="@class = 'copyright'
733
 
                    or @class = 'registered'">
734
 
      <xsl:call-template name="dingbat">
735
 
        <xsl:with-param name="dingbat" select="@class"/>
736
 
      </xsl:call-template>
737
 
    </xsl:when>
738
 
    <xsl:when test="@class = 'service'">
739
 
      <sup>SM</sup>
740
 
    </xsl:when>
741
 
    <xsl:otherwise>
742
 
      <xsl:call-template name="dingbat">
743
 
        <xsl:with-param name="dingbat" select="'trademark'"/>
744
 
      </xsl:call-template>
745
 
    </xsl:otherwise>
746
 
  </xsl:choose>
747
 
</xsl:template>
748
 
 
749
 
<xsl:template match="firstterm">
750
 
  <xsl:call-template name="glossterm">
751
 
    <xsl:with-param name="firstterm" select="1"/>
752
 
  </xsl:call-template>
753
 
</xsl:template>
754
 
 
755
 
<xsl:template match="glossterm" name="glossterm">
756
 
  <xsl:param name="firstterm" select="0"/>
757
 
 
758
 
  <!-- To avoid extra <a name=""> anchor from inline.italicseq -->
759
 
  <xsl:variable name="content">
760
 
    <xsl:apply-templates/>
761
 
  </xsl:variable>
762
 
 
763
 
  <xsl:choose>
764
 
    <xsl:when test="($firstterm.only.link = 0 or $firstterm = 1) and @linkend">
765
 
      <xsl:variable name="targets" select="key('id',@linkend)"/>
766
 
      <xsl:variable name="target" select="$targets[1]"/>
767
 
 
768
 
      <xsl:call-template name="check.id.unique">
769
 
        <xsl:with-param name="linkend" select="@linkend"/>
770
 
      </xsl:call-template>
771
 
 
772
 
      <a>
773
 
        <xsl:if test="@id">
774
 
          <xsl:attribute name="name">
775
 
            <xsl:value-of select="@id"/>
776
 
          </xsl:attribute>
777
 
        </xsl:if>
778
 
 
779
 
        <xsl:attribute name="href">
780
 
          <xsl:call-template name="href.target">
781
 
            <xsl:with-param name="object" select="$target"/>
782
 
          </xsl:call-template>
783
 
        </xsl:attribute>
784
 
 
785
 
        <xsl:call-template name="inline.italicseq">
786
 
          <xsl:with-param name="content" select="$content"/>
787
 
        </xsl:call-template>
788
 
      </a>
789
 
    </xsl:when>
790
 
 
791
 
    <xsl:when test="not(@linkend)
792
 
                    and ($firstterm.only.link = 0 or $firstterm = 1)
793
 
                    and ($glossterm.auto.link != 0)
794
 
                    and $glossary.collection != ''">
795
 
      <xsl:variable name="term">
796
 
        <xsl:choose>
797
 
          <xsl:when test="@baseform"><xsl:value-of select="@baseform"/></xsl:when>
798
 
          <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
799
 
        </xsl:choose>
800
 
      </xsl:variable>
801
 
 
802
 
      <xsl:variable name="cterm"
803
 
           select="(document($glossary.collection,.)//glossentry[glossterm=$term])[1]"/>
804
 
 
805
 
      <!-- HACK HACK HACK! But it works... -->
806
 
      <!-- You'd need to do more work if you wanted to chunk on glossdiv, though -->
807
 
 
808
 
      <xsl:variable name="glossary" select="//glossary[@role='auto']"/>
809
 
 
810
 
      <xsl:if test="count($glossary) != 1">
811
 
        <xsl:message>
812
 
          <xsl:text>Warning: glossary.collection specified, but there are </xsl:text>
813
 
          <xsl:value-of select="count($glossary)"/>
814
 
          <xsl:text> automatic glossaries</xsl:text>
815
 
        </xsl:message>
816
 
      </xsl:if>
817
 
 
818
 
      <xsl:variable name="glosschunk">
819
 
        <xsl:call-template name="href.target">
820
 
          <xsl:with-param name="object" select="$glossary"/>
821
 
        </xsl:call-template>
822
 
      </xsl:variable>
823
 
 
824
 
      <xsl:variable name="chunkbase">
825
 
        <xsl:choose>
826
 
          <xsl:when test="contains($glosschunk, '#')">
827
 
            <xsl:value-of select="substring-before($glosschunk, '#')"/>
828
 
          </xsl:when>
829
 
          <xsl:otherwise>
830
 
            <xsl:value-of select="$glosschunk"/>
831
 
          </xsl:otherwise>
832
 
        </xsl:choose>
833
 
      </xsl:variable>
834
 
 
835
 
      <xsl:choose>
836
 
        <xsl:when test="not($cterm)">
837
 
          <xsl:message>
838
 
            <xsl:text>There's no entry for </xsl:text>
839
 
            <xsl:value-of select="$term"/>
840
 
            <xsl:text> in </xsl:text>
841
 
            <xsl:value-of select="$glossary.collection"/>
842
 
          </xsl:message>
843
 
          <xsl:call-template name="inline.italicseq"/>
844
 
        </xsl:when>
845
 
        <xsl:otherwise>
846
 
          <xsl:variable name="id">
847
 
            <xsl:choose>
848
 
              <xsl:when test="$cterm/@id">
849
 
                <xsl:value-of select="$cterm/@id"/>
850
 
              </xsl:when>
851
 
              <xsl:otherwise>
852
 
                <xsl:value-of select="generate-id($cterm)"/>
853
 
              </xsl:otherwise>
854
 
            </xsl:choose>
855
 
          </xsl:variable>
856
 
          <a href="{$chunkbase}#{$id}">
857
 
            <xsl:call-template name="inline.italicseq">
858
 
              <xsl:with-param name="content" select="$content"/>
859
 
            </xsl:call-template>
860
 
          </a>
861
 
        </xsl:otherwise>
862
 
      </xsl:choose>
863
 
    </xsl:when>
864
 
 
865
 
    <xsl:when test="not(@linkend)
866
 
                    and ($firstterm.only.link = 0 or $firstterm = 1)
867
 
                    and $glossterm.auto.link != 0">
868
 
      <xsl:variable name="term">
869
 
        <xsl:choose>
870
 
          <xsl:when test="@baseform">
871
 
            <xsl:value-of select="normalize-space(@baseform)"/>
872
 
          </xsl:when>
873
 
          <xsl:otherwise>
874
 
            <xsl:value-of select="normalize-space(.)"/>
875
 
          </xsl:otherwise>
876
 
        </xsl:choose>
877
 
      </xsl:variable>
878
 
      <xsl:variable name="targets"
879
 
                    select="//glossentry[normalize-space(glossterm)=$term
880
 
                              or normalize-space(glossterm/@baseform)=$term]"/>
881
 
      <xsl:variable name="target" select="$targets[1]"/>
882
 
 
883
 
      <xsl:choose>
884
 
        <xsl:when test="count($targets)=0">
885
 
          <xsl:message>
886
 
            <xsl:text>Error: no glossentry for glossterm: </xsl:text>
887
 
            <xsl:value-of select="."/>
888
 
            <xsl:text>.</xsl:text>
889
 
          </xsl:message>
890
 
          <xsl:call-template name="inline.italicseq"/>
891
 
        </xsl:when>
892
 
        <xsl:otherwise>
893
 
          <a>
894
 
            <xsl:if test="@id">
895
 
              <xsl:attribute name="name">
896
 
                <xsl:value-of select="@id"/>
897
 
              </xsl:attribute>
898
 
            </xsl:if>
899
 
 
900
 
            <xsl:attribute name="href">
901
 
              <xsl:call-template name="href.target">
902
 
                <xsl:with-param name="object" select="$target"/>
903
 
              </xsl:call-template>
904
 
            </xsl:attribute>
905
 
 
906
 
            <xsl:call-template name="inline.italicseq">
907
 
              <xsl:with-param name="content" select="$content"/>
908
 
            </xsl:call-template>
909
 
          </a>
910
 
        </xsl:otherwise>
911
 
      </xsl:choose>
912
 
    </xsl:when>
913
 
 
914
 
    <xsl:otherwise>
915
 
      <xsl:call-template name="inline.italicseq"/>
916
 
    </xsl:otherwise>
917
 
  </xsl:choose>
918
 
</xsl:template>
919
 
 
920
 
<xsl:template match="sgmltag|tag">
921
 
  <xsl:call-template name="format.sgmltag"/>
922
 
</xsl:template>
923
 
 
924
 
<xsl:template name="format.sgmltag">
925
 
  <xsl:param name="class">
926
 
    <xsl:choose>
927
 
      <xsl:when test="@class">
928
 
        <xsl:value-of select="@class"/>
929
 
      </xsl:when>
930
 
      <xsl:otherwise>element</xsl:otherwise>
931
 
    </xsl:choose>
932
 
  </xsl:param>
933
 
 
934
 
  <code class="sgmltag-{$class}">
935
 
    <xsl:choose>
936
 
      <xsl:when test="$class='attribute'">
937
 
        <xsl:apply-templates/>
938
 
      </xsl:when>
939
 
      <xsl:when test="$class='attvalue'">
940
 
        <xsl:apply-templates/>
941
 
      </xsl:when>
942
 
      <xsl:when test="$class='element'">
943
 
        <xsl:apply-templates/>
944
 
      </xsl:when>
945
 
      <xsl:when test="$class='endtag'">
946
 
        <xsl:text>&lt;/</xsl:text>
947
 
        <xsl:apply-templates/>
948
 
        <xsl:text>&gt;</xsl:text>
949
 
      </xsl:when>
950
 
      <xsl:when test="$class='genentity'">
951
 
        <xsl:text>&amp;</xsl:text>
952
 
        <xsl:apply-templates/>
953
 
        <xsl:text>;</xsl:text>
954
 
      </xsl:when>
955
 
      <xsl:when test="$class='numcharref'">
956
 
        <xsl:text>&amp;#</xsl:text>
957
 
        <xsl:apply-templates/>
958
 
        <xsl:text>;</xsl:text>
959
 
      </xsl:when>
960
 
      <xsl:when test="$class='paramentity'">
961
 
        <xsl:text>%</xsl:text>
962
 
        <xsl:apply-templates/>
963
 
        <xsl:text>;</xsl:text>
964
 
      </xsl:when>
965
 
      <xsl:when test="$class='pi'">
966
 
        <xsl:text>&lt;?</xsl:text>
967
 
        <xsl:apply-templates/>
968
 
        <xsl:text>&gt;</xsl:text>
969
 
      </xsl:when>
970
 
      <xsl:when test="$class='xmlpi'">
971
 
        <xsl:text>&lt;?</xsl:text>
972
 
        <xsl:apply-templates/>
973
 
        <xsl:text>?&gt;</xsl:text>
974
 
      </xsl:when>
975
 
      <xsl:when test="$class='starttag'">
976
 
        <xsl:text>&lt;</xsl:text>
977
 
        <xsl:apply-templates/>
978
 
        <xsl:text>&gt;</xsl:text>
979
 
      </xsl:when>
980
 
      <xsl:when test="$class='emptytag'">
981
 
        <xsl:text>&lt;</xsl:text>
982
 
        <xsl:apply-templates/>
983
 
        <xsl:text>/&gt;</xsl:text>
984
 
      </xsl:when>
985
 
      <xsl:when test="$class='sgmlcomment'">
986
 
        <xsl:text>&lt;!--</xsl:text>
987
 
        <xsl:apply-templates/>
988
 
        <xsl:text>--&gt;</xsl:text>
989
 
      </xsl:when>
990
 
      <xsl:otherwise>
991
 
        <xsl:apply-templates/>
992
 
      </xsl:otherwise>
993
 
    </xsl:choose>
994
 
  </code>
995
 
</xsl:template>
996
 
 
997
 
<xsl:template match="email">
998
 
  <xsl:call-template name="inline.monoseq">
999
 
    <xsl:with-param name="content">
1000
 
      <xsl:text>&lt;</xsl:text>
1001
 
      <a>
1002
 
       <xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute>
1003
 
       <xsl:apply-templates/>
1004
 
      </a>
1005
 
      <xsl:text>&gt;</xsl:text>
1006
 
    </xsl:with-param>
1007
 
  </xsl:call-template>
1008
 
</xsl:template>
1009
 
 
1010
 
<xsl:template match="keycombo">
1011
 
  <xsl:variable name="action" select="@action"/>
1012
 
  <xsl:variable name="joinchar">
1013
 
    <xsl:choose>
1014
 
      <xsl:when test="$action='seq'"><xsl:text> </xsl:text></xsl:when>
1015
 
      <xsl:when test="$action='simul'">+</xsl:when>
1016
 
      <xsl:when test="$action='press'">-</xsl:when>
1017
 
      <xsl:when test="$action='click'">-</xsl:when>
1018
 
      <xsl:when test="$action='double-click'">-</xsl:when>
1019
 
      <xsl:when test="$action='other'"></xsl:when>
1020
 
      <xsl:otherwise>-</xsl:otherwise>
1021
 
    </xsl:choose>
1022
 
  </xsl:variable>
1023
 
  <xsl:for-each select="*">
1024
 
    <xsl:if test="position()>1"><xsl:value-of select="$joinchar"/></xsl:if>
1025
 
    <xsl:apply-templates select="."/>
1026
 
  </xsl:for-each>
1027
 
</xsl:template>
1028
 
 
1029
 
<xsl:template match="uri">
1030
 
  <xsl:call-template name="inline.monoseq"/>
1031
 
</xsl:template>
1032
 
 
1033
 
<!-- ==================================================================== -->
1034
 
 
1035
 
<xsl:template match="menuchoice">
1036
 
  <xsl:variable name="shortcut" select="./shortcut"/>
1037
 
  <xsl:call-template name="process.menuchoice"/>
1038
 
  <xsl:if test="$shortcut">
1039
 
    <xsl:text> (</xsl:text>
1040
 
    <xsl:apply-templates select="$shortcut"/>
1041
 
    <xsl:text>)</xsl:text>
1042
 
  </xsl:if>
1043
 
</xsl:template>
1044
 
 
1045
 
<xsl:template name="process.menuchoice">
1046
 
  <xsl:param name="nodelist" select="guibutton|guiicon|guilabel|guimenu|guimenuitem|guisubmenu|interface"/><!-- not(shortcut) -->
1047
 
  <xsl:param name="count" select="1"/>
1048
 
 
1049
 
  <xsl:choose>
1050
 
    <xsl:when test="$count>count($nodelist)"></xsl:when>
1051
 
    <xsl:when test="$count=1">
1052
 
      <xsl:apply-templates select="$nodelist[$count=position()]"/>
1053
 
      <xsl:call-template name="process.menuchoice">
1054
 
        <xsl:with-param name="nodelist" select="$nodelist"/>
1055
 
        <xsl:with-param name="count" select="$count+1"/>
1056
 
      </xsl:call-template>
1057
 
    </xsl:when>
1058
 
    <xsl:otherwise>
1059
 
      <xsl:variable name="node" select="$nodelist[$count=position()]"/>
1060
 
      <xsl:choose>
1061
 
        <xsl:when test="name($node)='guimenuitem'
1062
 
                        or name($node)='guisubmenu'">
1063
 
          <xsl:value-of select="$menuchoice.menu.separator"/>
1064
 
        </xsl:when>
1065
 
        <xsl:otherwise>
1066
 
          <xsl:value-of select="$menuchoice.separator"/>
1067
 
        </xsl:otherwise>
1068
 
      </xsl:choose>
1069
 
      <xsl:apply-templates select="$node"/>
1070
 
      <xsl:call-template name="process.menuchoice">
1071
 
        <xsl:with-param name="nodelist" select="$nodelist"/>
1072
 
        <xsl:with-param name="count" select="$count+1"/>
1073
 
      </xsl:call-template>
1074
 
    </xsl:otherwise>
1075
 
  </xsl:choose>
1076
 
</xsl:template>
1077
 
 
1078
 
<!-- ==================================================================== -->
1079
 
 
1080
 
<xsl:template match="optional">
1081
 
  <xsl:value-of select="$arg.choice.opt.open.str"/>
1082
 
  <xsl:call-template name="inline.charseq"/>
1083
 
  <xsl:value-of select="$arg.choice.opt.close.str"/>
1084
 
</xsl:template>
1085
 
 
1086
 
<xsl:template match="citation">
1087
 
  <!-- todo: biblio-citation-check -->
1088
 
  <xsl:text>[</xsl:text>
1089
 
  <xsl:call-template name="inline.charseq"/>
1090
 
  <xsl:text>]</xsl:text>
1091
 
</xsl:template>
1092
 
 
1093
 
<!-- ==================================================================== -->
1094
 
 
1095
 
<xsl:template match="comment[&comment.block.parents;]|remark[&comment.block.parents;]">
1096
 
  <xsl:if test="$show.comments != 0">
1097
 
    <p class="remark"><i><xsl:call-template name="inline.charseq"/></i></p>
1098
 
  </xsl:if>
1099
 
</xsl:template>
1100
 
 
1101
 
<xsl:template match="comment|remark">
1102
 
  <xsl:if test="$show.comments != 0">
1103
 
    <em><xsl:call-template name="inline.charseq"/></em>
1104
 
  </xsl:if>
1105
 
</xsl:template>
1106
 
 
1107
 
<!-- ==================================================================== -->
1108
 
 
1109
 
<xsl:template match="productname">
1110
 
  <xsl:call-template name="inline.charseq"/>
1111
 
  <xsl:if test="@class">
1112
 
    <xsl:call-template name="dingbat">
1113
 
      <xsl:with-param name="dingbat" select="@class"/>
1114
 
    </xsl:call-template>
1115
 
  </xsl:if>
1116
 
</xsl:template>
1117
 
 
1118
 
<xsl:template match="productnumber">
1119
 
  <xsl:call-template name="inline.charseq"/>
1120
 
</xsl:template>
1121
 
 
1122
 
<!-- ==================================================================== -->
1123
 
 
1124
 
<xsl:template match="pob|street|city|state|postcode|country|otheraddr">
1125
 
  <xsl:call-template name="inline.charseq"/>
1126
 
</xsl:template>
1127
 
 
1128
 
<xsl:template match="phone|fax">
1129
 
  <xsl:call-template name="inline.charseq"/>
1130
 
</xsl:template>
1131
 
 
1132
 
<!-- in Addresses, for example -->
1133
 
<xsl:template match="honorific|firstname|surname|lineage|othername">
1134
 
  <xsl:call-template name="inline.charseq"/>
1135
 
</xsl:template>
1136
 
 
1137
 
<!-- ==================================================================== -->
1138
 
 
1139
 
<xsl:template match="personname">
1140
 
  <xsl:call-template name="anchor"/>
1141
 
  <xsl:call-template name="person.name"/>
1142
 
</xsl:template>
1143
 
 
1144
 
<!-- ==================================================================== -->
1145
 
 
1146
 
<xsl:template match="beginpage">
1147
 
  <!-- does nothing; this *is not* markup to force a page break. -->
1148
 
</xsl:template>
1149
 
 
1150
 
</xsl:stylesheet>
1151