1
<?xml version='1.0' encoding='utf-8'?><!-- -*- indent-tabs-mode: nil -*- -->
2
<xsl:stylesheet version="1.0"
3
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/xsl-format"
5
xmlns:_msg="http://www.gnome.org/~shaunm/gnome-doc-utils/xsl-format">
7
<title xmlns="http://www.gnome.org/~shaunm/xsldoc">Format Templates</title>
10
<!-- == format.citetitle =================================================== -->
12
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
13
<name>format.citetitle</name>
15
Format a <xmltag>citetitle</xmltag> element
20
The <sgmltag>citetitle</sgmltag> element to format
26
The role of the label, extracted from the
27
<sgmltag class="attribute">pubwork</sgmltag> attribute
31
<para>This template used for formatting the <sgmltag>citetitle</sgmltag>
32
element in DocBook. The <sgmltag>citetitle</sgmltag> element has a
33
<sgmltag class="attribute">pubwork</sgmltag> attribute that can be set
34
to one of the following values:
35
<literal>article</literal>, <literal>bbs</literal>,
36
<literal>book</literal>, <literal>cdrom</literal>,
37
<literal>chapter</literal>, <literal>dvd</literal>,
38
<literal>emailmessage</literal>, <literal>gopher</literal>,
39
<literal>journal</literal>, <literal>manuscript</literal>,
40
<literal>newsposting</literal>, <literal>part</literal>,
41
<literal>refentry</literal>, <literal>section</literal>,
42
<literal>series</literal>, <literal>set</literal>,
43
<literal>webpage</literal>, <literal>wiki</literal>.
44
This template allows multiple role format strings, using the value of
45
<sgmltag class="attribute">pubwork</sgmltag> as the role. Translators
46
can use this to customize the appearance of a cited title based on the
47
type of document being cited. The default formatting is as follows:</para>
48
<programlisting><![CDATA[
49
<msg:msgstr role="article">“%t{node}”</msg:msgstr>
50
<msg:msgstr><i>%t{node}</i></msg:msgstr>]]></programlisting>
51
<para>This puts the title of an article citation in quotes. For all other
52
types of works, the title is simply italicized.</para>
55
<title>Arguments</title>
56
<para>This is a format template constructed by
57
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
58
The following arguments are available for translators:</para>
61
<term><parameter>node</parameter></term>
62
<listitem><para>A template argument which processes the contents of
63
the <sgmltag>citetitle</sgmltag> element.</para></listitem>
69
<xsl:template name="format.citetitle">
70
<xsl:param name="node" select="."/>
71
<xsl:param name="role"/>
72
<msg:msg id="format.citetitle">
74
citetitle - The title of a cited work
75
http://docbook.org/tdg/en/html/citetitle.html
77
This template formats an inline title citation. This template uses
78
roles to specify the type of publication being cited, such as article
81
Read this: ghelp:gnome-doc-xslt#translating
82
Then this: ghelp:gnome-doc-xslt#format.citetitle
84
<_msg:msgstr>format.citetitle</_msg:msgstr>
85
<msg:msgstr xml:lang="C">
86
<msg:msgstr role="article">“%t{node}”</msg:msgstr>
87
<msg:msgstr><i>%t{node}</i></msg:msgstr>
91
<xsl:apply-templates select="$node/node()"/>
96
<!-- == format.date ======================================================== -->
98
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
99
<name>format.date</name>
106
The year in the Gregorian calendar
112
The number of the month
118
The number of the day in the month
123
<xsl:template name="format.date">
124
<xsl:param name="year"/>
125
<xsl:param name="month"/>
126
<xsl:param name="day"/>
127
<msg:msg id="format.date">
128
<_msg:msgstr>format.date</_msg:msgstr>
129
<msg:msgstr xml:lang="C">
132
<xsl:when test="$month = 1"><xsl:text>January </xsl:text></xsl:when>
133
<xsl:when test="$month = 2"><xsl:text>February </xsl:text></xsl:when>
134
<xsl:when test="$month = 3"><xsl:text>March </xsl:text></xsl:when>
135
<xsl:when test="$month = 4"><xsl:text>April </xsl:text></xsl:when>
136
<xsl:when test="$month = 5"><xsl:text>May </xsl:text></xsl:when>
137
<xsl:when test="$month = 6"><xsl:text>June </xsl:text></xsl:when>
138
<xsl:when test="$month = 7"><xsl:text>July </xsl:text></xsl:when>
139
<xsl:when test="$month = 8"><xsl:text>August </xsl:text></xsl:when>
140
<xsl:when test="$month = 9"><xsl:text>September </xsl:text></xsl:when>
141
<xsl:when test="$month = 10"><xsl:text>October </xsl:text></xsl:when>
142
<xsl:when test="$month = 11"><xsl:text>November </xsl:text></xsl:when>
143
<xsl:when test="$month = 12"><xsl:text>December </xsl:text></xsl:when>
145
<xsl:value-of select="$day"/>
146
<xsl:text>, </xsl:text>
147
<xsl:value-of select="$year"/>
151
<msg:arg name="year">
152
<xsl:value-of select="$year"/>
154
<msg:arg name="month">
155
<xsl:value-of select="$month"/>
158
<xsl:value-of select="$day"/>
164
<!-- == format.quote.outer ================================================= -->
166
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
167
<name>format.quote.outer</name>
169
Format a <xmltag>quote</xmltag> element
174
The <xmltag>quote</xmltag> element to format
178
<title>Arguments</title>
179
<para>This is a format template constructed by
180
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
181
The following arguments are available for translators:</para>
184
<term><parameter>node</parameter></term>
185
<listitem><para>A template argument which processes the contents of
186
the <sgmltag>quote</sgmltag> element.</para></listitem>
192
<xsl:template name="format.quote.outer">
193
<xsl:param name="node" select="."/>
194
<msg:msg id="format.quote.outer">
196
quote - An inline quotation
197
http://docbook.org/tdg/en/html/quote.html
199
This template formats an inline quotation. The default
200
rendering in the C locale is this: “%t{node}”
202
Read this: ghelp:gnome-doc-xslt#translating
203
Then this: ghelp:gnome-doc-xslt#format.quote.outer
205
<_msg:msgstr>format.quote.outer</_msg:msgstr>
206
<msg:msgstr xml:lang="C">“%t{node}”</msg:msgstr>
208
<msg:arg name="node">
209
<xsl:apply-templates select="$node/node()"/>
214
<!-- == format.quote.inner ================================================= -->
216
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
217
<name>format.quote.inner</name>
219
Format a nested <xmltag>quote</xmltag> element
224
The <xmltag>quote</xmltag> element to format
228
<title>Arguments</title>
229
<para>This is a format template constructed by
230
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
231
The following arguments are available for translators:</para>
234
<term><parameter>node</parameter></term>
235
<listitem><para>A template argument which processes the contents of
236
the <sgmltag>quote</sgmltag> element.</para></listitem>
242
<xsl:template name="format.quote.inner">
243
<xsl:param name="node" select="."/>
244
<msg:msg id="format.quote.inner">
246
quote - An inline quotation
247
http://docbook.org/tdg/en/html/quote.html
249
This template formats a nested inline quotation. The default
250
rendering in the C locale is this: ‘%t{node}’
252
Read this: ghelp:gnome-doc-xslt#translating
253
Then this: ghelp:gnome-doc-xslt#format.quote.inner
255
<_msg:msgstr>format.quote.inner</_msg:msgstr>
256
<msg:msgstr xml:lang="C">‘%t{node}’</msg:msgstr>
258
<msg:arg name="node">
259
<xsl:apply-templates select="$node/node()"/>
264
<!-- == format.appendix.label ============================================== -->
266
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
267
<name>format.appendix.label</name>
269
Format the label for a <xmltag>appendix</xmltag> element
274
The <xmltag>appendix</xmltag> element to format
280
The role of the label
284
<title>Arguments</title>
285
<para>This is a format template constructed by
286
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
287
The following arguments are available for translators:</para>
290
<term><parameter>number</parameter></term>
291
<listitem><para>A template argument which extracts the number
292
portion of the label.</para></listitem>
295
<term><parameter>title</parameter></term>
296
<listitem><para>A template argument which extracts the title
297
of the element.</para></listitem>
303
<xsl:template name="format.appendix.label">
304
<xsl:param name="node" select="."/>
305
<xsl:param name="role"/>
306
<msg:msg id="format.appendix.label">
308
appendix - An appendix in a book or article
309
http://docbook.org/tdg/en/html/appendix.html
311
This template formats the label of an appendix. This tmeplate uses
312
roles to mark different uses of the label. The standard label roles
313
('header', 'li', and 'xref') should be defined, as well as any extra
314
roles you would like supported for your locale.
316
A simple rendering might look like this: Appendix %t{number}
318
Read this: ghelp:gnome-doc-xslt#translating
319
Then this: ghelp:gnome-doc-xslt#format.appendix.label
321
<_msg:msgstr>format.appendix.label</_msg:msgstr>
322
<msg:msgstr xml:lang="C">
323
<msg:msgstr role="header">%t{number}. </msg:msgstr>
324
<msg:msgstr role="li">%t{number}. </msg:msgstr>
325
<msg:msgstr role="xref">Appendix %t{number} ― %t{title}</msg:msgstr>
326
<msg:msgstr>Appendix %t{number}</msg:msgstr>
329
<msg:arg name="number">
330
<xsl:call-template name="db.label.number">
331
<xsl:with-param name="node" select="$node"/>
334
<msg:arg name="title">
335
<xsl:call-template name="db.title">
336
<xsl:with-param name="node" select="$node"/>
342
<!-- == format.chapter.label =============================================== -->
344
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
345
<name>format.chapter.label</name>
347
Format the label for a <xmltag>chapter</xmltag> element
352
The <xmltag>chapter</xmltag> element to format
358
The role of the label
362
<title>Arguments</title>
363
<para>This is a format template constructed by
364
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
365
The following arguments are available for translators:</para>
368
<term><parameter>number</parameter></term>
369
<listitem><para>A template argument which extracts the number
370
portion of the label.</para></listitem>
373
<term><parameter>title</parameter></term>
374
<listitem><para>A template argument which extracts the title
375
of the element.</para></listitem>
381
<xsl:template name="format.chapter.label">
382
<xsl:param name="node" select="."/>
383
<xsl:param name="role"/>
384
<msg:msg id="format.chapter.label">
386
chapter - A chapter, as of a book
387
http://docbook.org/tdg/en/html/chapter.html
389
This template formats the label of a chapter. This tmeplate uses
390
roles to mark different uses of the label. The standard label roles
391
('header', 'li', and 'xref') should be defined, as well as any extra
392
roles you would like supported for your locale.
394
A simple rendering might look like this: Chapter %t{number}
396
Read this: ghelp:gnome-doc-xslt#translating
397
Then this: ghelp:gnome-doc-xslt#format.chapter.label
399
<_msg:msgstr>format.chapter.label</_msg:msgstr>
400
<msg:msgstr xml:lang="C">
401
<msg:msgstr role="header">%t{number}. </msg:msgstr>
402
<msg:msgstr role="li">%t{number}. </msg:msgstr>
403
<msg:msgstr role="xref">Chapter %t{number} ― %t{title}</msg:msgstr>
404
<msg:msgstr>Chapter %t{number}</msg:msgstr>
407
<msg:arg name="number">
408
<xsl:call-template name="db.label.number">
409
<xsl:with-param name="node" select="$node"/>
412
<msg:arg name="title">
413
<xsl:call-template name="db.title">
414
<xsl:with-param name="node" select="$node"/>
420
<!-- == format.example.label =============================================== -->
422
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
423
<name>format.example.label</name>
425
Format the label for a <xmltag>example</xmltag> element
430
The <xmltag>example</xmltag> element to format
436
The role of the label
440
<title>Arguments</title>
441
<para>This is a format template constructed by
442
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
443
The following arguments are available for translators:</para>
446
<term><parameter>number</parameter></term>
447
<listitem><para>A template argument which extracts the number
448
portion of the label.</para></listitem>
451
<term><parameter>title</parameter></term>
452
<listitem><para>A template argument which extracts the title
453
of the element.</para></listitem>
459
<xsl:template name="format.example.label">
460
<xsl:param name="node" select="."/>
461
<xsl:param name="role"/>
462
<msg:msg id="format.example.label">
464
example - A formal example, with a title
465
http://docbook.org/tdg/en/html/example.html
467
This template formats the label of an example. This tmeplate uses
468
roles to mark different uses of the label. The standard label roles
469
('header', 'li', and 'xref') should be defined, as well as any extra
470
roles you would like supported for your locale.
472
A simple rendering might look like this: Example %t{number}
474
Read this: ghelp:gnome-doc-xslt#translating
475
Then this: ghelp:gnome-doc-xslt#format.example.label
477
<_msg:msgstr>format.example.label</_msg:msgstr>
478
<msg:msgstr xml:lang="C">
479
<msg:msgstr role="header"><i>Example %t{number}</i> </msg:msgstr>
480
<msg:msgstr>Example %t{number}</msg:msgstr>
483
<msg:arg name="number">
484
<xsl:call-template name="db.label.number">
485
<xsl:with-param name="node" select="$node"/>
488
<msg:arg name="title">
489
<xsl:call-template name="db.title">
490
<xsl:with-param name="node" select="$node"/>
496
<!-- == format.figure.label ================================================ -->
498
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
499
<name>format.figure.label</name>
501
Format the label for a <xmltag>figure</xmltag> element
506
The <xmltag>figure</xmltag> element to format
512
The role of the label
516
<title>Arguments</title>
517
<para>This is a format template constructed by
518
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
519
The following arguments are available for translators:</para>
522
<term><parameter>number</parameter></term>
523
<listitem><para>A template argument which extracts the number
524
portion of the label.</para></listitem>
527
<term><parameter>title</parameter></term>
528
<listitem><para>A template argument which extracts the title
529
of the element.</para></listitem>
535
<xsl:template name="format.figure.label">
536
<xsl:param name="node" select="."/>
537
<xsl:param name="role"/>
538
<msg:msg id="format.figure.label">
540
figure - A formal figure, generally an illustration, with a title
541
http://docbook.org/tdg/en/html/figure.html
543
This template formats the label of a figure. This tmeplate uses
544
roles to mark different uses of the label. The standard label roles
545
('header', 'li', and 'xref') should be defined, as well as any extra
546
roles you would like supported for your locale.
548
A simple rendering might look like this: Figure %t{number}
550
Read this: ghelp:gnome-doc-xslt#translating
551
Then this: ghelp:gnome-doc-xslt#format.figure.label
553
<_msg:msgstr>format.figure.label</_msg:msgstr>
554
<msg:msgstr xml:lang="C">
555
<msg:msgstr role="header"><i>Figure %t{number}</i> </msg:msgstr>
556
<msg:msgstr>Figure %t{number}</msg:msgstr>
559
<msg:arg name="number">
560
<xsl:call-template name="db.label.number">
561
<xsl:with-param name="node" select="$node"/>
564
<msg:arg name="title">
565
<xsl:call-template name="db.title">
566
<xsl:with-param name="node" select="$node"/>
572
<!-- == format.manvolnum =================================================== -->
574
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
575
<name>format.manvolnum</name>
577
Format a <xmltag>manvolnum</xmltag> element
582
The <xmltag>manvolnum</xmltag> element to format
587
<xsl:template name="format.manvolnum">
588
<xsl:param name="node" select="."/>
589
<msg:msg id="format.manvolnum">
591
manvolnum - A reference volume number
592
http://docbook.org/tdg/en/html/manvolnum.html
594
This template formats the manvolnum element. A manvolnum is typically
595
a number or short string used to identify a sectionof man pages. It
596
is typically placed inside parenthesis, like so: (%t{node})
598
Read this: ghelp:gnome-doc-xslt#translating
599
Then this: ghelp:gnome-doc-xslt#format.manvolnum
601
<_msg:msgstr>format.manvolnum</_msg:msgstr>
602
<msg:msgstr xml:lang="C">(%t{node})</msg:msgstr>
604
<msg:arg name="node">
605
<xsl:apply-templates select="$node/node()"/>
610
<!-- == format.part.label ================================================== -->
612
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
613
<name>format.part.label</name>
615
Format the label for a <xmltag>part</xmltag> element
620
The <xmltag>part</xmltag> element to format
626
The role of the label
630
<title>Arguments</title>
631
<para>This is a format template constructed by
632
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
633
The following arguments are available for translators:</para>
636
<term><parameter>number</parameter></term>
637
<listitem><para>A template argument which extracts the number
638
portion of the label.</para></listitem>
641
<term><parameter>title</parameter></term>
642
<listitem><para>A template argument which extracts the title
643
of the element.</para></listitem>
649
<xsl:template name="format.part.label">
650
<xsl:param name="node" select="."/>
651
<xsl:param name="role"/>
652
<msg:msg id="format.chapter.label">
654
part - A division in a book
655
http://docbook.org/tdg/en/html/part.html
657
This template formats the label of a part. This tmeplate uses
658
roles to mark different uses of the label. The standard label roles
659
('header', 'li', and 'xref') should be defined, as well as any extra
660
roles you would like supported for your locale.
662
A simple rendering might look like this: Part %t{number}
664
Read this: ghelp:gnome-doc-xslt#translating
665
Then this: ghelp:gnome-doc-xslt#format.part.label
667
<_msg:msgstr>format.part.label</_msg:msgstr>
668
<msg:msgstr xml:lang="C">
669
<msg:msgstr role="header">%t{number}. </msg:msgstr>
670
<msg:msgstr role="li">%t{number}. </msg:msgstr>
671
<msg:msgstr role="xref">Part %t{number} ― %t{title}</msg:msgstr>
672
<msg:msgstr>Part %t{number}</msg:msgstr>
675
<msg:arg name="number">
676
<xsl:call-template name="db.label.number">
677
<xsl:with-param name="node" select="$node"/>
680
<msg:arg name="title">
681
<xsl:call-template name="db.title">
682
<xsl:with-param name="node" select="$node"/>
688
<!-- == format.refentry.label ============================================== -->
690
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
691
<name>format.refentry.label</name>
693
Format the label for a <xmltag>refentry</xmltag> element
698
The <xmltag>refentry</xmltag> element to format
704
The role of the label
708
<title>Arguments</title>
709
<para>This is a format template constructed by
710
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
711
The following arguments are available for translators:</para>
714
<term><parameter>title</parameter></term>
715
<listitem><para>A template argument which extracts the title
716
of the element.</para></listitem>
722
<xsl:template name="format.refentry.label">
723
<xsl:param name="node" select="."/>
724
<xsl:param name="role"/>
725
<msg:msg id="format.refentry.label">
727
refentry - A reference page (originally a UNIX man-style reference page)
728
http://docbook.org/tdg/en/html/refentry.html
730
This template formats the label of a refentry. This tmeplate uses
731
roles to mark different uses of the label. The standard label roles
732
('header', 'li', and 'xref') should be defined, as well as any extra
733
roles you would like supported for your locale.
735
A simple rendering might look like this: %t{title}
737
Note that unlike most other labelled elements, refentry is not numbered
738
by the stylesheets. Consequently, the number argument is not supported.
740
Read this: ghelp:gnome-doc-xslt#translating
741
Then this: ghelp:gnome-doc-xslt#format.refentry.label
743
<_msg:msgstr>format.refentry.label</_msg:msgstr>
744
<msg:msgstr xml:lang="C">
745
<msg:msgstr role="xref">%t{title}</msg:msgstr>
746
<msg:msgstr>%t{title}</msg:msgstr>
749
<msg:arg name="title">
750
<xsl:call-template name="db.title">
751
<xsl:with-param name="node" select="$node"/>
757
<!-- == format.section.label =============================================== -->
759
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
760
<name>format.section.label</name>
762
Format the label for a <xmltag>section</xmltag> element
767
The <xmltag>section</xmltag> element to format
773
The role of the label
777
<title>Arguments</title>
778
<para>This is a format template constructed by
779
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
780
The following arguments are available for translators:</para>
783
<term><parameter>number</parameter></term>
784
<listitem><para>A template argument which extracts the number
785
portion of the label.</para></listitem>
788
<term><parameter>title</parameter></term>
789
<listitem><para>A template argument which extracts the title
790
of the element.</para></listitem>
796
<xsl:template name="format.section.label">
797
<xsl:param name="node" select="."/>
798
<xsl:param name="role"/>
799
<msg:msg id="format.section.label">
801
http://docbook.org/tdg/en/html/section.html
802
http://docbook.org/tdg/en/html/sect1.html
803
http://docbook.org/tdg/en/html/sect2.html
804
http://docbook.org/tdg/en/html/sect3.html
805
http://docbook.org/tdg/en/html/sect4.html
806
http://docbook.org/tdg/en/html/sect5.html
807
http://docbook.org/tdg/en/html/refsection.html
808
http://docbook.org/tdg/en/html/refsect1.html
809
http://docbook.org/tdg/en/html/refsect2.html
810
http://docbook.org/tdg/en/html/refsect3.html
812
This template formats the label of a section. This tmeplate uses
813
roles to mark different uses of the label. The standard label roles
814
('header', 'li', and 'xref') should be defined, as well as any extra
815
roles you would like supported for your locale.
817
A simple rendering might look like this: Section %t{number}
819
Read this: ghelp:gnome-doc-xslt#translating
820
Then this: ghelp:gnome-doc-xslt#format.section.label
822
<_msg:msgstr>format.section.label</_msg:msgstr>
823
<msg:msgstr xml:lang="C">
824
<msg:msgstr role="header">%t{number}. </msg:msgstr>
825
<msg:msgstr role="li">%t{number}. </msg:msgstr>
826
<msg:msgstr role="xref">Section %t{number} ― %t{title}</msg:msgstr>
827
<msg:msgstr>Section %t{number}</msg:msgstr>
830
<msg:arg name="number">
831
<xsl:call-template name="db.label.number">
832
<xsl:with-param name="node" select="$node"/>
835
<msg:arg name="title">
836
<xsl:call-template name="db.title">
837
<xsl:with-param name="node" select="$node"/>
843
<!-- == format.table.label ================================================= -->
845
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
846
<name>format.table.label</name>
848
Format the label for a <xmltag>table</xmltag> element
853
The <xmltag>table</xmltag> element to format
859
The role of the label
863
<title>Arguments</title>
864
<para>This is a format template constructed by
865
<function role='xsl-template' moreinfo='refentry'>format2xsl</function>.
866
The following arguments are available for translators:</para>
869
<term><parameter>number</parameter></term>
870
<listitem><para>A template argument which extracts the number
871
portion of the label.</para></listitem>
874
<term><parameter>title</parameter></term>
875
<listitem><para>A template argument which extracts the title
876
of the element.</para></listitem>
882
<xsl:template name="format.table.label">
883
<xsl:param name="node" select="."/>
884
<xsl:param name="role"/>
885
<msg:msg id="format.table.label">
887
table - A formal table in a document
888
http://docbook.org/tdg/en/html/table.html
890
This template formats the label of a table. This tmeplate uses
891
roles to mark different uses of the label. The standard label roles
892
('header', 'li', and 'xref') should be defined, as well as any extra
893
roles you would like supported for your locale.
895
A simple rendering might look like this: Table %t{number}
897
Read this: ghelp:gnome-doc-xslt#translating
898
Then this: ghelp:gnome-doc-xslt#format.table.label
900
<_msg:msgstr>format.table.label</_msg:msgstr>
901
<msg:msgstr xml:lang="C">
902
<msg:msgstr role="header"><i>Table %t{number}</i> </msg:msgstr>
903
<msg:msgstr>Table %t{number}</msg:msgstr>
906
<msg:arg name="number">
907
<xsl:call-template name="db.label.number">
908
<xsl:with-param name="node" select="$node"/>
911
<msg:arg name="title">
912
<xsl:call-template name="db.title">
913
<xsl:with-param name="node" select="$node"/>
919
<!-- == format.example.number ============================================== -->
921
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
922
<name>format.example.number</name>
924
Format the number for a <xmltag>example</xmltag> element
929
The element for which to generate a number
934
<xsl:template name="format.example.number">
935
<xsl:param name="node" select="."/>
936
<msg:msg id="format.example.number">
938
example - A formal example, with a title
939
http://docbook.org/tdg/en/html/example.html
941
This template formats the number portion of the label for an example.
942
The parent argument calls the number formatter for the enclosing
943
chapter, and the number argument formats the number of the element
946
A simple rendering might look like this: %t{parent}-%1{number}
948
Read this: ghelp:gnome-doc-xslt#translating
949
Then this: ghelp:gnome-doc-xslt#format.example.number
951
<_msg:msgstr>format.example.number</_msg:msgstr>
952
<msg:msgstr xml:lang="C">%t{parent}-%1{number}</msg:msgstr>
954
<msg:arg name="parent">
955
<xsl:call-template name="db.label.number">
956
<xsl:with-param name="node" select="
957
$node/ancestor::appendix |
958
$node/ancestor::chapter "/>
961
<msg:arg name="number">
962
<xsl:number level="any" count="example" from="chapter | appendix"/>
967
<!-- == format.example.number.flat ========================================= -->
969
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
970
<name>format.example.number.flat</name>
972
Format the number for a <xmltag>example</xmltag> element in a flat document
977
The element for which to generate a number
982
<xsl:template name="format.example.number.flat">
983
<xsl:param name="node" select="."/>
984
<msg:msg id="format.example.number.flat">
986
example - A formal example, with a title
987
http://docbook.org/tdg/en/html/example.html
989
This template formats the number portion of the label for an example
990
inside an article. In articles, formal block elements use a flat
991
numbering scheme, rather than being numbered by chapter.
993
A simple rendering might look like this: %1{number}
995
Read this: ghelp:gnome-doc-xslt#translating
996
Then this: ghelp:gnome-doc-xslt#format.example.number.flat
998
<_msg:msgstr>format.example.number.flat</_msg:msgstr>
999
<msg:msgstr xml:lang="C">%1{number}</msg:msgstr>
1001
<msg:arg name="number">
1002
<xsl:number level="any" count="example" from="chapter | appendix"/>
1007
<!-- == format.figure.number =============================================== -->
1009
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
1010
<name>format.figure.number</name>
1012
Format the number for a <xmltag>figure</xmltag> element
1017
The element for which to generate a number
1022
<xsl:template name="format.figure.number">
1023
<xsl:param name="node" select="."/>
1024
<msg:msg id="format.figure.number">
1026
figure - A formal figure, generally an illustration, with a title
1027
http://docbook.org/tdg/en/html/figure.html
1029
This template formats the number portion of the label for a figure.
1030
The parent argument calls the number formatter for the enclosing
1031
chapter, and the number argument formats the number of the element
1034
A simple rendering might look like this: %t{parent}-%1{number}
1036
Read this: ghelp:gnome-doc-xslt#translating
1037
Then this: ghelp:gnome-doc-xslt#format.figure.number
1039
<_msg:msgstr>format.figure.number</_msg:msgstr>
1040
<msg:msgstr xml:lang="C">%t{parent}-%1{number}</msg:msgstr>
1042
<msg:arg name="parent">
1043
<xsl:call-template name="db.label.number">
1044
<xsl:with-param name="node" select="
1045
$node/ancestor::appendix |
1046
$node/ancestor::chapter "/>
1047
</xsl:call-template>
1049
<msg:arg name="number">
1050
<xsl:number level="any" count="figure" from="chapter | appendix"/>
1055
<!-- == format.figure.number.flat ========================================== -->
1057
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
1058
<name>format.figure.number.flat</name>
1060
Format the number for a <xmltag>figure</xmltag> element in a flat document
1065
The element for which to generate a number
1070
<xsl:template name="format.figure.number.flat">
1071
<xsl:param name="node" select="."/>
1072
<msg:msg id="format.figure.number.flat">
1074
figure - A formal figure, generally an illustration, with a title
1075
http://docbook.org/tdg/en/html/figure.html
1077
This template formats the number portion of the label for a figure
1078
inside an article. In articles, formal block elements use a flat
1079
numbering scheme, rather than being numbered by chapter.
1081
A simple rendering might look like this: %1{number}
1083
Read this: ghelp:gnome-doc-xslt#translating
1084
Then this: ghelp:gnome-doc-xslt#format.figure.number.flat
1086
<_msg:msgstr>format.figure.number.flat</_msg:msgstr>
1087
<msg:msgstr xml:lang="C">%1{number}</msg:msgstr>
1089
<msg:arg name="number">
1090
<xsl:number level="any" count="figure" from="chapter | appendix"/>
1095
<!-- == format.part.number ================================================= -->
1097
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
1098
<name>format.part.number</name>
1100
Format the number for a <xmltag>part</xmltag> element
1105
The element for which to generate a number
1110
<xsl:template name="format.part.number">
1111
<xsl:param name="node" select="."/>
1112
<msg:msg id="format.part.number">
1114
part - A division in a book
1115
http://docbook.org/tdg/en/html/part.html
1117
This template formats the number portion of the label for a part.
1118
A simple rendering might look like this: %I{number}
1120
Read this: ghelp:gnome-doc-xslt#translating
1121
Then this: ghelp:gnome-doc-xslt#format.part.number
1123
<_msg:msgstr>format.part.number</_msg:msgstr>
1124
<msg:msgstr xml:lang="C">%I{number}</msg:msgstr>
1126
<msg:arg name="number">
1127
<xsl:number value="count($node/preceding-sibling::part) + 1"/>
1132
<!-- == format.table.number ================================================ -->
1134
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
1135
<name>format.table.number</name>
1137
Format the number for a <xmltag>table</xmltag> element
1142
The element for which to generate a number
1147
<xsl:template name="format.table.number">
1148
<xsl:param name="node" select="."/>
1149
<msg:msg id="format.table.number">
1151
table - A formal table in a document
1152
http://docbook.org/tdg/en/html/table.html
1154
This template formats the number portion of the label for a table.
1155
The parent argument calls the number formatter for the enclosing
1156
chapter, and the number argument formats the number of the element
1159
A simple rendering might look like this: %t{parent}-%1{number}
1161
Read this: ghelp:gnome-doc-xslt#translating
1162
Then this: ghelp:gnome-doc-xslt#format.table.number
1164
<_msg:msgstr>format.table.number</_msg:msgstr>
1165
<msg:msgstr xml:lang="C">%t{parent}-%1{number}</msg:msgstr>
1167
<msg:arg name="parent">
1168
<xsl:call-template name="db.label.number">
1169
<xsl:with-param name="node" select="
1170
$node/ancestor::appendix |
1171
$node/ancestor::chapter "/>
1172
</xsl:call-template>
1174
<msg:arg name="number">
1175
<xsl:number level="any" count="table" from="chapter | appendix"/>
1180
<!-- == format.table.number.flat =========================================== -->
1182
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
1183
<name>format.table.number.flat</name>
1185
Format the number for a <xmltag>table</xmltag> element in a flat document
1190
The element for which to generate a number
1195
<xsl:template name="format.table.number.flat">
1196
<xsl:param name="node" select="."/>
1197
<msg:msg id="format.table.number.flat">
1199
table - A formal table in a document
1200
http://docbook.org/tdg/en/html/table.html
1202
This template formats the number portion of the label for a table
1203
inside an article. In articles, formal block elements use a flat
1204
numbering scheme, rather than being numbered by chapter.
1206
A simple rendering might look like this: %1{number}
1208
Read this: ghelp:gnome-doc-xslt#translating
1209
Then this: ghelp:gnome-doc-xslt#format.table.number.flat
1211
<_msg:msgstr>format.table.number.flat</_msg:msgstr>
1212
<msg:msgstr xml:lang="C">%1{number}</msg:msgstr>
1214
<msg:arg name="number">
1215
<xsl:number level="any" count="table" from="chapter | appendix"/>
1220
<!-- == format.tooltip.glossentry ========================================== -->
1222
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
1223
<name>format.tooltip.glossentry</name>
1225
Format the tooltip for a link to a <xmltag>glossentry</xmltag>
1230
The <xmltag>glossentry</xmltag> element
1235
<xsl:template name="format.tooltip.glossentry">
1236
<xsl:param name="node" select="."/>
1237
<msg:msg id="format.tooltip.glossentry">
1239
glossentry - An entry in a glossary or glosslist
1240
http://docbook.org/tdg/en/html/glossentry.html
1242
This template formats a tooltip for links to glossentry elements.
1243
The default rendering is: Read the definition for ‘%s{node}’
1245
Read this: ghelp:gnome-doc-xslt#translating
1246
Then this: ghelp:gnome-doc-xslt#format.tooltip.glossentry
1248
<_msg:msgstr>format.tooltip.glossentry</_msg:msgstr>
1249
<msg:msgstr xml:lang="C">Read the definition for ‘%s{node}’</msg:msgstr>
1251
<msg:arg name="node">
1252
<xsl:value-of select="normalize-space($node/glossterm)"/>
1257
<!-- == format.tooltip.mailto ============================================== -->
1259
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
1260
<name>format.tooltip.mailto</name>
1262
Format the tooltip for a link to a
1263
<systemitem role="protocol">mailto</systemitem> URI.
1272
<name>address</name>
1279
<xsl:template name="format.tooltip.mailto">
1280
<xsl:param name="node"/>
1281
<xsl:param name="address"/>
1282
<msg:msg id="format.tooltip.mailto">
1284
This template formats a tooltip for mailto: links.
1285
The default rendering is: Send email to ‘%s{address}’
1287
Read this: ghelp:gnome-doc-xslt#translating
1288
Then this: ghelp:gnome-doc-xslt#format.tooltip.mailto
1290
<_msg:msgstr>format.tooltip.mailto</_msg:msgstr>
1291
<msg:msgstr xml:lang="C">Send email to ‘%s{address}’</msg:msgstr>
1293
<msg:arg name="address">
1294
<xsl:value-of select="normalize-space($address)"/>