docbook_xsl_wrapper 0.1.2 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/CHANGELOG +41 -0
- data/README.md +9 -17
- data/bin/docbook_xsl_wrapper +9 -14
- data/docbook_xsl_wrapper.gemspec +8 -7
- data/lib/docbook_xsl_wrapper.rb +24 -1
- data/lib/docbook_xsl_wrapper/epub.rb +124 -122
- data/lib/docbook_xsl_wrapper/options.rb +1 -1
- data/lib/docbook_xsl_wrapper/validate.rb +22 -0
- data/lib/docbook_xsl_wrapper/version.rb +1 -1
- data/schema/docbookxi.rng +18654 -0
- data/spec/docbook_xsl_wrapper/validate_spec.rb +64 -0
- data/xsl/AUTHORS +4 -0
- data/xsl/COPYING +48 -0
- data/xsl/REVISION +1 -0
- data/xsl/VERSION.xsl +115 -0
- data/xsl/common/addns.xsl +124 -0
- data/xsl/common/af.xml +1272 -0
- data/xsl/common/am.xml +1272 -0
- data/xsl/common/ar.xml +1272 -0
- data/xsl/common/as.xml +703 -0
- data/xsl/common/ast.xml +703 -0
- data/xsl/common/autoidx-kimber.xsl +45 -0
- data/xsl/common/autoidx-kosek.xsl +155 -0
- data/xsl/common/az.xml +715 -0
- data/xsl/common/bg.xml +767 -0
- data/xsl/common/bn.xml +1272 -0
- data/xsl/common/bn_in.xml +703 -0
- data/xsl/common/bs.xml +705 -0
- data/xsl/common/ca.xml +703 -0
- data/xsl/common/charmap.xsl +222 -0
- data/xsl/common/common.xsl +2129 -0
- data/xsl/common/cs.xml +743 -0
- data/xsl/common/cy.xml +1288 -0
- data/xsl/common/da.xml +707 -0
- data/xsl/common/de.xml +709 -0
- data/xsl/common/el.xml +772 -0
- data/xsl/common/en.xml +1272 -0
- data/xsl/common/entities.ent +67 -0
- data/xsl/common/eo.xml +1272 -0
- data/xsl/common/es.xml +719 -0
- data/xsl/common/et.xml +1272 -0
- data/xsl/common/eu.xml +1272 -0
- data/xsl/common/fa.xml +703 -0
- data/xsl/common/fi.xml +713 -0
- data/xsl/common/fr.xml +733 -0
- data/xsl/common/ga.xml +1272 -0
- data/xsl/common/gentext.xsl +855 -0
- data/xsl/common/gl.xml +1272 -0
- data/xsl/common/gu.xml +703 -0
- data/xsl/common/he.xml +1272 -0
- data/xsl/common/hi.xml +703 -0
- data/xsl/common/hr.xml +705 -0
- data/xsl/common/hu.xml +721 -0
- data/xsl/common/id.xml +1272 -0
- data/xsl/common/insertfile.xsl +113 -0
- data/xsl/common/is.xml +715 -0
- data/xsl/common/it.xml +1272 -0
- data/xsl/common/ja.xml +703 -0
- data/xsl/common/ka.xml +743 -0
- data/xsl/common/kn.xml +1272 -0
- data/xsl/common/ko.xml +1272 -0
- data/xsl/common/ky.xml +775 -0
- data/xsl/common/l10n.dtd +64 -0
- data/xsl/common/l10n.xml +78 -0
- data/xsl/common/l10n.xsl +598 -0
- data/xsl/common/la.xml +1272 -0
- data/xsl/common/labels.xsl +933 -0
- data/xsl/common/lt.xml +721 -0
- data/xsl/common/lv.xml +1272 -0
- data/xsl/common/ml.xml +703 -0
- data/xsl/common/mn.xml +773 -0
- data/xsl/common/mr.xml +703 -0
- data/xsl/common/nb.xml +1272 -0
- data/xsl/common/nds.xml +709 -0
- data/xsl/common/nl.xml +703 -0
- data/xsl/common/nn.xml +1272 -0
- data/xsl/common/olink.xsl +1284 -0
- data/xsl/common/or.xml +1272 -0
- data/xsl/common/pa.xml +703 -0
- data/xsl/common/pi.xml +168 -0
- data/xsl/common/pi.xsl +347 -0
- data/xsl/common/pl.xml +721 -0
- data/xsl/common/pt.xml +1272 -0
- data/xsl/common/pt_br.xml +1272 -0
- data/xsl/common/refentry.xsl +1353 -0
- data/xsl/common/ro.xml +1272 -0
- data/xsl/common/ru.xml +769 -0
- data/xsl/common/sk.xml +1272 -0
- data/xsl/common/sl.xml +1272 -0
- data/xsl/common/sq.xml +1272 -0
- data/xsl/common/sr.xml +763 -0
- data/xsl/common/sr_Latn.xml +722 -0
- data/xsl/common/subtitles.xsl +181 -0
- data/xsl/common/sv.xml +707 -0
- data/xsl/common/ta.xml +703 -0
- data/xsl/common/table.xsl +515 -0
- data/xsl/common/targetdatabase.dtd +49 -0
- data/xsl/common/targets.xsl +338 -0
- data/xsl/common/te.xml +703 -0
- data/xsl/common/th.xml +1272 -0
- data/xsl/common/titles.xsl +850 -0
- data/xsl/common/tl.xml +1272 -0
- data/xsl/common/tr.xml +709 -0
- data/xsl/common/uk.xml +769 -0
- data/xsl/common/ur.xml +705 -0
- data/xsl/common/utility.xsl +291 -0
- data/xsl/common/vi.xml +1272 -0
- data/xsl/common/xh.xml +1272 -0
- data/xsl/common/zh.xml +703 -0
- data/xsl/common/zh_cn.xml +703 -0
- data/xsl/common/zh_tw.xml +703 -0
- data/xsl/epub/docbook.xsl +1769 -0
- data/xsl/epub3/chunk.xsl +30 -0
- data/xsl/epub3/docbook-epub.css.xml +142 -0
- data/xsl/epub3/docbook.xsl +20 -0
- data/xsl/epub3/epub3-chunk-mods.xsl +52 -0
- data/xsl/epub3/epub3-element-mods.xsl +2533 -0
- data/xsl/epub3/titlepage.templates.xml +712 -0
- data/xsl/epub3/titlepage.templates.xsl +3842 -0
- data/xsl/lib/lib.xsl +533 -0
- data/xsl/xhtml/admon.xsl +142 -0
- data/xsl/xhtml/annotations.xsl +160 -0
- data/xsl/xhtml/autoidx.xsl +831 -0
- data/xsl/xhtml/autotoc.xsl +706 -0
- data/xsl/xhtml/biblio-iso690.xsl +1302 -0
- data/xsl/xhtml/biblio.xsl +1371 -0
- data/xsl/xhtml/block.xsl +584 -0
- data/xsl/xhtml/callout.xsl +210 -0
- data/xsl/xhtml/chunk-code.xsl +675 -0
- data/xsl/xhtml/chunk-common.xsl +1627 -0
- data/xsl/xhtml/chunker.xsl +317 -0
- data/xsl/xhtml/component.xsl +440 -0
- data/xsl/xhtml/division.xsl +214 -0
- data/xsl/xhtml/ebnf.xsl +331 -0
- data/xsl/xhtml/footnote.xsl +346 -0
- data/xsl/xhtml/formal.xsl +496 -0
- data/xsl/xhtml/glossary.xsl +602 -0
- data/xsl/xhtml/graphics.xsl +1537 -0
- data/xsl/xhtml/html-rtf.xsl +321 -0
- data/xsl/xhtml/html.xsl +690 -0
- data/xsl/xhtml/htmltbl.xsl +102 -0
- data/xsl/xhtml/index.xsl +264 -0
- data/xsl/xhtml/info.xsl +48 -0
- data/xsl/xhtml/inline.xsl +1508 -0
- data/xsl/xhtml/its.xsl +109 -0
- data/xsl/xhtml/keywords.xsl +38 -0
- data/xsl/xhtml/lists.xsl +1227 -0
- data/xsl/xhtml/math.xsl +286 -0
- data/xsl/xhtml/param.xsl +449 -0
- data/xsl/xhtml/pi.xsl +1237 -0
- data/xsl/xhtml/qandaset.xsl +440 -0
- data/xsl/xhtml/refentry.xsl +307 -0
- data/xsl/xhtml/sections.xsl +564 -0
- data/xsl/xhtml/synop.xsl +1623 -0
- data/xsl/xhtml/table.xsl +1179 -0
- data/xsl/xhtml/task.xsl +76 -0
- data/xsl/xhtml/titlepage.templates.xsl +4005 -0
- data/xsl/xhtml/titlepage.xsl +1108 -0
- data/xsl/xhtml/toc.xsl +334 -0
- data/xsl/xhtml/verbatim.xsl +389 -0
- data/xsl/xhtml/xref.xsl +1268 -0
- data/xsl/xhtml5/docbook.xsl +22 -0
- data/xsl/xhtml5/html5-chunk-mods.xsl +112 -0
- data/xsl/xhtml5/html5-element-mods.xsl +791 -0
- data/xsl/xhtml5/xhtml-docbook.xsl +531 -0
- metadata +207 -27
- data/.rvmrc +0 -48
- data/xslt/obfuscate.xsl +0 -12
@@ -0,0 +1,602 @@
|
|
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:d="http://docbook.org/ns/docbook"
|
5
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xlink d" version="1.0">
|
6
|
+
|
7
|
+
<!-- ********************************************************************
|
8
|
+
$Id: glossary.xsl 9709 2013-01-22 18:56:09Z bobstayton $
|
9
|
+
********************************************************************
|
10
|
+
|
11
|
+
This file is part of the XSL DocBook Stylesheet distribution.
|
12
|
+
See ../README or http://docbook.sf.net/release/xsl/current/ for
|
13
|
+
copyright and other information.
|
14
|
+
|
15
|
+
******************************************************************** -->
|
16
|
+
|
17
|
+
<!-- ==================================================================== -->
|
18
|
+
|
19
|
+
<xsl:template match="d:glossary">
|
20
|
+
|
21
|
+
<xsl:variable name="language">
|
22
|
+
<xsl:call-template name="l10n.language"/>
|
23
|
+
</xsl:variable>
|
24
|
+
|
25
|
+
<xsl:variable name="lowercase">
|
26
|
+
<xsl:call-template name="gentext">
|
27
|
+
<xsl:with-param name="key">normalize.sort.input</xsl:with-param>
|
28
|
+
</xsl:call-template>
|
29
|
+
</xsl:variable>
|
30
|
+
|
31
|
+
<xsl:variable name="uppercase">
|
32
|
+
<xsl:call-template name="gentext">
|
33
|
+
<xsl:with-param name="key">normalize.sort.output</xsl:with-param>
|
34
|
+
</xsl:call-template>
|
35
|
+
</xsl:variable>
|
36
|
+
|
37
|
+
<xsl:call-template name="id.warning"/>
|
38
|
+
|
39
|
+
<xsl:element name="{$div.element}" namespace="http://www.w3.org/1999/xhtml">
|
40
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
41
|
+
<xsl:call-template name="id.attribute">
|
42
|
+
<xsl:with-param name="conditional" select="0"/>
|
43
|
+
</xsl:call-template>
|
44
|
+
|
45
|
+
<xsl:call-template name="glossary.titlepage"/>
|
46
|
+
|
47
|
+
<xsl:choose>
|
48
|
+
<xsl:when test="d:glossdiv">
|
49
|
+
<xsl:apply-templates select="(d:glossdiv[1]/preceding-sibling::*)"/>
|
50
|
+
</xsl:when>
|
51
|
+
<xsl:when test="d:glossentry">
|
52
|
+
<xsl:apply-templates select="(d:glossentry[1]/preceding-sibling::*)"/>
|
53
|
+
</xsl:when>
|
54
|
+
<xsl:otherwise>
|
55
|
+
<xsl:apply-templates/>
|
56
|
+
</xsl:otherwise>
|
57
|
+
</xsl:choose>
|
58
|
+
|
59
|
+
<xsl:choose>
|
60
|
+
<xsl:when test="d:glossdiv">
|
61
|
+
<xsl:apply-templates select="d:glossdiv"/>
|
62
|
+
</xsl:when>
|
63
|
+
<xsl:when test="d:glossentry">
|
64
|
+
<dl>
|
65
|
+
<xsl:choose>
|
66
|
+
<xsl:when test="$glossary.sort != 0">
|
67
|
+
<xsl:apply-templates select="d:glossentry">
|
68
|
+
<xsl:sort lang="{$language}" select="normalize-space(translate(concat(@sortas, d:glossterm[not(parent::d:glossentry/@sortas) or parent::d:glossentry/@sortas = '']), 'AaÀàÁáÂâÃãÄäÅåĀāĂ㥹ǍǎǞǟǠǡǺǻȀȁȂȃȦȧḀḁẚẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặBbƀƁɓƂƃḂḃḄḅḆḇCcÇçĆćĈĉĊċČčƇƈɕḈḉDdĎďĐđƊɗƋƌDžDzȡɖḊḋḌḍḎḏḐḑḒḓEeÈèÉéÊêËëĒēĔĕĖėĘęĚěȄȅȆȇȨȩḔḕḖḗḘḙḚḛḜḝẸẹẺẻẼẽẾếỀềỂểỄễỆệFfƑƒḞḟGgĜĝĞğĠġĢģƓɠǤǥǦǧǴǵḠḡHhĤĥĦħȞȟɦḢḣḤḥḦḧḨḩḪḫẖIiÌìÍíÎîÏïĨĩĪīĬĭĮįİƗɨǏǐȈȉȊȋḬḭḮḯỈỉỊịJjĴĵǰʝKkĶķƘƙǨǩḰḱḲḳḴḵLlĹĺĻļĽľĿŀŁłƚLjȴɫɬɭḶḷḸḹḺḻḼḽMmɱḾḿṀṁṂṃNnÑñŃńŅņŇňƝɲƞȠNjǸǹȵɳṄṅṆṇṈṉṊṋOoÒòÓóÔôÕõÖöØøŌōŎŏŐőƟƠơǑǒǪǫǬǭǾǿȌȍȎȏȪȫȬȭȮȯȰȱṌṍṎṏṐṑṒṓỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợPpƤƥṔṕṖṗQqʠRrŔŕŖŗŘřȐȑȒȓɼɽɾṘṙṚṛṜṝṞṟSsŚśŜŝŞşŠšȘșʂṠṡṢṣṤṥṦṧṨṩTtŢţŤťŦŧƫƬƭƮʈȚțȶṪṫṬṭṮṯṰṱẗUuÙùÚúÛûÜüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜȔȕȖȗṲṳṴṵṶṷṸṹṺṻỤụỦủỨứỪừỬửỮữỰựVvƲʋṼṽṾṿWwŴŵẀẁẂẃẄẅẆẇẈẉẘXxẊẋẌẍYyÝýÿŸŶŷƳƴȲȳẎẏẙỲỳỴỵỶỷỸỹZzŹźŻżŽžƵƶȤȥʐʑẐẑẒẓẔẕẕ', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJKKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPPPPPPPPQQQRRRRRRRRRRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUVVVVVVVVWWWWWWWWWWWWWWWXXXXXXYYYYYYYYYYYYYYYYYYYYYYYZZZZZZZZZZZZZZZZZZZZZ'))"/>
|
69
|
+
</xsl:apply-templates>
|
70
|
+
</xsl:when>
|
71
|
+
<xsl:otherwise>
|
72
|
+
<xsl:apply-templates select="d:glossentry"/>
|
73
|
+
</xsl:otherwise>
|
74
|
+
</xsl:choose>
|
75
|
+
</dl>
|
76
|
+
</xsl:when>
|
77
|
+
<xsl:otherwise>
|
78
|
+
<!-- empty glossary -->
|
79
|
+
</xsl:otherwise>
|
80
|
+
</xsl:choose>
|
81
|
+
|
82
|
+
<xsl:if test="not(parent::d:article)">
|
83
|
+
<xsl:call-template name="process.footnotes"/>
|
84
|
+
</xsl:if>
|
85
|
+
</xsl:element>
|
86
|
+
</xsl:template>
|
87
|
+
|
88
|
+
<xsl:template match="d:glossary/d:glossaryinfo"/>
|
89
|
+
<xsl:template match="d:glossary/d:info"/>
|
90
|
+
<xsl:template match="d:glossary/d:title"/>
|
91
|
+
<xsl:template match="d:glossary/d:subtitle"/>
|
92
|
+
<xsl:template match="d:glossary/d:titleabbrev"/>
|
93
|
+
|
94
|
+
<!-- ==================================================================== -->
|
95
|
+
|
96
|
+
<xsl:template match="d:glosslist">
|
97
|
+
|
98
|
+
<xsl:variable name="language">
|
99
|
+
<xsl:call-template name="l10n.language"/>
|
100
|
+
</xsl:variable>
|
101
|
+
|
102
|
+
<xsl:variable name="lowercase">
|
103
|
+
<xsl:call-template name="gentext">
|
104
|
+
<xsl:with-param name="key">normalize.sort.input</xsl:with-param>
|
105
|
+
</xsl:call-template>
|
106
|
+
</xsl:variable>
|
107
|
+
|
108
|
+
<xsl:variable name="uppercase">
|
109
|
+
<xsl:call-template name="gentext">
|
110
|
+
<xsl:with-param name="key">normalize.sort.output</xsl:with-param>
|
111
|
+
</xsl:call-template>
|
112
|
+
</xsl:variable>
|
113
|
+
|
114
|
+
<div>
|
115
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
116
|
+
<xsl:call-template name="id.attribute"/>
|
117
|
+
<xsl:call-template name="anchor"/>
|
118
|
+
<xsl:if test="d:blockinfo/d:title|d:info/d:title|d:title">
|
119
|
+
<xsl:call-template name="formal.object.heading"/>
|
120
|
+
</xsl:if>
|
121
|
+
<dl>
|
122
|
+
<xsl:choose>
|
123
|
+
<xsl:when test="$glossary.sort != 0">
|
124
|
+
<xsl:apply-templates select="d:glossentry">
|
125
|
+
<xsl:sort lang="{$language}" select="normalize-space(translate(concat(@sortas, d:glossterm[not(parent::d:glossentry/@sortas) or parent::d:glossentry/@sortas = '']), 'AaÀàÁáÂâÃãÄäÅåĀāĂ㥹ǍǎǞǟǠǡǺǻȀȁȂȃȦȧḀḁẚẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặBbƀƁɓƂƃḂḃḄḅḆḇCcÇçĆćĈĉĊċČčƇƈɕḈḉDdĎďĐđƊɗƋƌDžDzȡɖḊḋḌḍḎḏḐḑḒḓEeÈèÉéÊêËëĒēĔĕĖėĘęĚěȄȅȆȇȨȩḔḕḖḗḘḙḚḛḜḝẸẹẺẻẼẽẾếỀềỂểỄễỆệFfƑƒḞḟGgĜĝĞğĠġĢģƓɠǤǥǦǧǴǵḠḡHhĤĥĦħȞȟɦḢḣḤḥḦḧḨḩḪḫẖIiÌìÍíÎîÏïĨĩĪīĬĭĮįİƗɨǏǐȈȉȊȋḬḭḮḯỈỉỊịJjĴĵǰʝKkĶķƘƙǨǩḰḱḲḳḴḵLlĹĺĻļĽľĿŀŁłƚLjȴɫɬɭḶḷḸḹḺḻḼḽMmɱḾḿṀṁṂṃNnÑñŃńŅņŇňƝɲƞȠNjǸǹȵɳṄṅṆṇṈṉṊṋOoÒòÓóÔôÕõÖöØøŌōŎŏŐőƟƠơǑǒǪǫǬǭǾǿȌȍȎȏȪȫȬȭȮȯȰȱṌṍṎṏṐṑṒṓỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợPpƤƥṔṕṖṗQqʠRrŔŕŖŗŘřȐȑȒȓɼɽɾṘṙṚṛṜṝṞṟSsŚśŜŝŞşŠšȘșʂṠṡṢṣṤṥṦṧṨṩTtŢţŤťŦŧƫƬƭƮʈȚțȶṪṫṬṭṮṯṰṱẗUuÙùÚúÛûÜüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜȔȕȖȗṲṳṴṵṶṷṸṹṺṻỤụỦủỨứỪừỬửỮữỰựVvƲʋṼṽṾṿWwŴŵẀẁẂẃẄẅẆẇẈẉẘXxẊẋẌẍYyÝýÿŸŶŷƳƴȲȳẎẏẙỲỳỴỵỶỷỸỹZzŹźŻżŽžƵƶȤȥʐʑẐẑẒẓẔẕẕ', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJKKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPPPPPPPPQQQRRRRRRRRRRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUVVVVVVVVWWWWWWWWWWWWWWWXXXXXXYYYYYYYYYYYYYYYYYYYYYYYZZZZZZZZZZZZZZZZZZZZZ'))"/>
|
126
|
+
</xsl:apply-templates>
|
127
|
+
</xsl:when>
|
128
|
+
<xsl:otherwise>
|
129
|
+
<xsl:apply-templates select="d:glossentry"/>
|
130
|
+
</xsl:otherwise>
|
131
|
+
</xsl:choose>
|
132
|
+
</dl>
|
133
|
+
</div>
|
134
|
+
</xsl:template>
|
135
|
+
|
136
|
+
<!-- ==================================================================== -->
|
137
|
+
|
138
|
+
<xsl:template match="d:glossdiv">
|
139
|
+
|
140
|
+
<xsl:variable name="language">
|
141
|
+
<xsl:call-template name="l10n.language"/>
|
142
|
+
</xsl:variable>
|
143
|
+
|
144
|
+
<xsl:variable name="lowercase">
|
145
|
+
<xsl:call-template name="gentext">
|
146
|
+
<xsl:with-param name="key">normalize.sort.input</xsl:with-param>
|
147
|
+
</xsl:call-template>
|
148
|
+
</xsl:variable>
|
149
|
+
|
150
|
+
<xsl:variable name="uppercase">
|
151
|
+
<xsl:call-template name="gentext">
|
152
|
+
<xsl:with-param name="key">normalize.sort.output</xsl:with-param>
|
153
|
+
</xsl:call-template>
|
154
|
+
</xsl:variable>
|
155
|
+
|
156
|
+
<xsl:call-template name="id.warning"/>
|
157
|
+
|
158
|
+
<div>
|
159
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
160
|
+
<xsl:call-template name="id.attribute">
|
161
|
+
<xsl:with-param name="conditional" select="0"/>
|
162
|
+
</xsl:call-template>
|
163
|
+
<xsl:apply-templates select="(d:glossentry[1]/preceding-sibling::*)"/>
|
164
|
+
|
165
|
+
<dl>
|
166
|
+
<xsl:choose>
|
167
|
+
<xsl:when test="$glossary.sort != 0">
|
168
|
+
<xsl:apply-templates select="d:glossentry">
|
169
|
+
<xsl:sort lang="{$language}" select="translate(d:glossterm, $lowercase, $uppercase)"/>
|
170
|
+
</xsl:apply-templates>
|
171
|
+
</xsl:when>
|
172
|
+
<xsl:otherwise>
|
173
|
+
<xsl:apply-templates select="d:glossentry"/>
|
174
|
+
</xsl:otherwise>
|
175
|
+
</xsl:choose>
|
176
|
+
</dl>
|
177
|
+
</div>
|
178
|
+
</xsl:template>
|
179
|
+
|
180
|
+
<xsl:template match="d:glossdiv/d:title">
|
181
|
+
<h3>
|
182
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
183
|
+
<xsl:apply-templates/>
|
184
|
+
</h3>
|
185
|
+
</xsl:template>
|
186
|
+
|
187
|
+
<!-- ==================================================================== -->
|
188
|
+
|
189
|
+
<!--
|
190
|
+
GlossEntry ::=
|
191
|
+
GlossTerm, Acronym?, Abbrev?,
|
192
|
+
(IndexTerm)*,
|
193
|
+
RevHistory?,
|
194
|
+
(GlossSee | GlossDef+)
|
195
|
+
-->
|
196
|
+
|
197
|
+
<xsl:template match="d:glossentry">
|
198
|
+
<xsl:choose>
|
199
|
+
<xsl:when test="$glossentry.show.acronym = 'primary'">
|
200
|
+
<dt>
|
201
|
+
<xsl:call-template name="id.attribute">
|
202
|
+
<xsl:with-param name="conditional">
|
203
|
+
<xsl:choose>
|
204
|
+
<xsl:when test="$glossterm.auto.link != 0">0</xsl:when>
|
205
|
+
<xsl:otherwise>1</xsl:otherwise>
|
206
|
+
</xsl:choose>
|
207
|
+
</xsl:with-param>
|
208
|
+
</xsl:call-template>
|
209
|
+
<xsl:call-template name="anchor">
|
210
|
+
<xsl:with-param name="conditional">
|
211
|
+
<xsl:choose>
|
212
|
+
<xsl:when test="$glossterm.auto.link != 0">0</xsl:when>
|
213
|
+
<xsl:otherwise>1</xsl:otherwise>
|
214
|
+
</xsl:choose>
|
215
|
+
</xsl:with-param>
|
216
|
+
</xsl:call-template>
|
217
|
+
|
218
|
+
<xsl:choose>
|
219
|
+
<xsl:when test="d:acronym|d:abbrev">
|
220
|
+
<xsl:apply-templates select="d:acronym|d:abbrev"/>
|
221
|
+
<xsl:text> (</xsl:text>
|
222
|
+
<xsl:apply-templates select="d:glossterm"/>
|
223
|
+
<xsl:text>)</xsl:text>
|
224
|
+
</xsl:when>
|
225
|
+
<xsl:otherwise>
|
226
|
+
<xsl:apply-templates select="d:glossterm"/>
|
227
|
+
</xsl:otherwise>
|
228
|
+
</xsl:choose>
|
229
|
+
</dt>
|
230
|
+
</xsl:when>
|
231
|
+
<xsl:when test="$glossentry.show.acronym = 'yes'">
|
232
|
+
<dt>
|
233
|
+
<xsl:call-template name="id.attribute">
|
234
|
+
<xsl:with-param name="conditional">
|
235
|
+
<xsl:choose>
|
236
|
+
<xsl:when test="$glossterm.auto.link != 0">0</xsl:when>
|
237
|
+
<xsl:otherwise>1</xsl:otherwise>
|
238
|
+
</xsl:choose>
|
239
|
+
</xsl:with-param>
|
240
|
+
</xsl:call-template>
|
241
|
+
<xsl:call-template name="anchor">
|
242
|
+
<xsl:with-param name="conditional">
|
243
|
+
<xsl:choose>
|
244
|
+
<xsl:when test="$glossterm.auto.link != 0">0</xsl:when>
|
245
|
+
<xsl:otherwise>1</xsl:otherwise>
|
246
|
+
</xsl:choose>
|
247
|
+
</xsl:with-param>
|
248
|
+
</xsl:call-template>
|
249
|
+
|
250
|
+
<xsl:apply-templates select="d:glossterm"/>
|
251
|
+
|
252
|
+
<xsl:if test="d:acronym|d:abbrev">
|
253
|
+
<xsl:text> (</xsl:text>
|
254
|
+
<xsl:apply-templates select="d:acronym|d:abbrev"/>
|
255
|
+
<xsl:text>)</xsl:text>
|
256
|
+
</xsl:if>
|
257
|
+
</dt>
|
258
|
+
</xsl:when>
|
259
|
+
<xsl:otherwise>
|
260
|
+
<dt>
|
261
|
+
<xsl:call-template name="id.attribute">
|
262
|
+
<xsl:with-param name="conditional">
|
263
|
+
<xsl:choose>
|
264
|
+
<xsl:when test="$glossterm.auto.link != 0">0</xsl:when>
|
265
|
+
<xsl:otherwise>1</xsl:otherwise>
|
266
|
+
</xsl:choose>
|
267
|
+
</xsl:with-param>
|
268
|
+
</xsl:call-template>
|
269
|
+
<xsl:call-template name="anchor">
|
270
|
+
<xsl:with-param name="conditional">
|
271
|
+
<xsl:choose>
|
272
|
+
<xsl:when test="$glossterm.auto.link != 0">0</xsl:when>
|
273
|
+
<xsl:otherwise>1</xsl:otherwise>
|
274
|
+
</xsl:choose>
|
275
|
+
</xsl:with-param>
|
276
|
+
</xsl:call-template>
|
277
|
+
|
278
|
+
<xsl:apply-templates select="d:glossterm"/>
|
279
|
+
</dt>
|
280
|
+
</xsl:otherwise>
|
281
|
+
</xsl:choose>
|
282
|
+
|
283
|
+
<xsl:apply-templates select="d:indexterm|d:revhistory|d:glosssee|d:glossdef"/>
|
284
|
+
</xsl:template>
|
285
|
+
|
286
|
+
<xsl:template match="d:glossentry/d:glossterm">
|
287
|
+
<span>
|
288
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
289
|
+
<xsl:call-template name="id.attribute"/>
|
290
|
+
<xsl:call-template name="anchor"/>
|
291
|
+
<xsl:apply-templates/>
|
292
|
+
</span>
|
293
|
+
<xsl:if test="following-sibling::d:glossterm">, </xsl:if>
|
294
|
+
</xsl:template>
|
295
|
+
|
296
|
+
<xsl:template match="d:glossentry/d:acronym">
|
297
|
+
<xsl:apply-templates/>
|
298
|
+
<xsl:if test="following-sibling::d:acronym|following-sibling::d:abbrev">, </xsl:if>
|
299
|
+
</xsl:template>
|
300
|
+
|
301
|
+
<xsl:template match="d:glossentry/d:abbrev">
|
302
|
+
<xsl:apply-templates/>
|
303
|
+
<xsl:if test="following-sibling::d:acronym|following-sibling::d:abbrev">, </xsl:if>
|
304
|
+
</xsl:template>
|
305
|
+
|
306
|
+
<xsl:template match="d:glossentry/d:revhistory">
|
307
|
+
</xsl:template>
|
308
|
+
|
309
|
+
<xsl:template match="d:glossentry/d:glosssee">
|
310
|
+
<xsl:variable name="otherterm" select="@otherterm"/>
|
311
|
+
<xsl:variable name="targets" select="key('id', $otherterm)"/>
|
312
|
+
<xsl:variable name="target" select="$targets[1]"/>
|
313
|
+
<xsl:variable name="xlink" select="@xlink:href"/>
|
314
|
+
|
315
|
+
<dd>
|
316
|
+
<p>
|
317
|
+
<xsl:variable name="template">
|
318
|
+
<xsl:call-template name="gentext.template">
|
319
|
+
<xsl:with-param name="context" select="'glossary'"/>
|
320
|
+
<xsl:with-param name="name" select="'see'"/>
|
321
|
+
</xsl:call-template>
|
322
|
+
</xsl:variable>
|
323
|
+
|
324
|
+
<xsl:variable name="title">
|
325
|
+
<xsl:choose>
|
326
|
+
<xsl:when test="$target">
|
327
|
+
<a>
|
328
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
329
|
+
<xsl:call-template name="id.attribute"/>
|
330
|
+
<xsl:attribute name="href">
|
331
|
+
<xsl:call-template name="href.target">
|
332
|
+
<xsl:with-param name="object" select="$target"/>
|
333
|
+
</xsl:call-template>
|
334
|
+
</xsl:attribute>
|
335
|
+
<xsl:apply-templates select="$target" mode="xref-to"/>
|
336
|
+
</a>
|
337
|
+
</xsl:when>
|
338
|
+
<xsl:when test="$xlink">
|
339
|
+
<xsl:call-template name="simple.xlink">
|
340
|
+
<xsl:with-param name="content">
|
341
|
+
<xsl:apply-templates/>
|
342
|
+
</xsl:with-param>
|
343
|
+
</xsl:call-template>
|
344
|
+
</xsl:when>
|
345
|
+
<xsl:when test="$otherterm != '' and not($target)">
|
346
|
+
<xsl:message>
|
347
|
+
<xsl:text>Warning: glosssee @otherterm reference not found: </xsl:text>
|
348
|
+
<xsl:value-of select="$otherterm"/>
|
349
|
+
</xsl:message>
|
350
|
+
<xsl:apply-templates/>
|
351
|
+
</xsl:when>
|
352
|
+
<xsl:otherwise>
|
353
|
+
<xsl:apply-templates/>
|
354
|
+
</xsl:otherwise>
|
355
|
+
</xsl:choose>
|
356
|
+
</xsl:variable>
|
357
|
+
|
358
|
+
<xsl:call-template name="substitute-markup">
|
359
|
+
<xsl:with-param name="template" select="$template"/>
|
360
|
+
<xsl:with-param name="title" select="$title"/>
|
361
|
+
</xsl:call-template>
|
362
|
+
</p>
|
363
|
+
</dd>
|
364
|
+
</xsl:template>
|
365
|
+
|
366
|
+
<xsl:template match="d:glossentry/d:glossdef">
|
367
|
+
<dd>
|
368
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
369
|
+
<xsl:call-template name="id.attribute"/>
|
370
|
+
<xsl:call-template name="anchor"/>
|
371
|
+
<xsl:apply-templates select="*[local-name(.) != 'glossseealso']"/>
|
372
|
+
<xsl:if test="d:glossseealso">
|
373
|
+
<p>
|
374
|
+
<xsl:variable name="template">
|
375
|
+
<xsl:call-template name="gentext.template">
|
376
|
+
<xsl:with-param name="context" select="'glossary'"/>
|
377
|
+
<xsl:with-param name="name" select="'seealso'"/>
|
378
|
+
</xsl:call-template>
|
379
|
+
</xsl:variable>
|
380
|
+
<xsl:variable name="title">
|
381
|
+
<xsl:apply-templates select="d:glossseealso"/>
|
382
|
+
</xsl:variable>
|
383
|
+
<xsl:call-template name="substitute-markup">
|
384
|
+
<xsl:with-param name="template" select="$template"/>
|
385
|
+
<xsl:with-param name="title" select="$title"/>
|
386
|
+
</xsl:call-template>
|
387
|
+
</p>
|
388
|
+
</xsl:if>
|
389
|
+
</dd>
|
390
|
+
</xsl:template>
|
391
|
+
|
392
|
+
<xsl:template match="d:glossseealso">
|
393
|
+
<xsl:variable name="otherterm" select="@otherterm"/>
|
394
|
+
<xsl:variable name="targets" select="key('id', $otherterm)"/>
|
395
|
+
<xsl:variable name="target" select="$targets[1]"/>
|
396
|
+
<xsl:variable name="xlink" select="@xlink:href"/>
|
397
|
+
|
398
|
+
<xsl:choose>
|
399
|
+
<xsl:when test="$target">
|
400
|
+
<a>
|
401
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
402
|
+
<xsl:call-template name="id.attribute"/>
|
403
|
+
<xsl:attribute name="href">
|
404
|
+
<xsl:call-template name="href.target">
|
405
|
+
<xsl:with-param name="object" select="$target"/>
|
406
|
+
</xsl:call-template>
|
407
|
+
</xsl:attribute>
|
408
|
+
<xsl:apply-templates select="$target" mode="xref-to"/>
|
409
|
+
</a>
|
410
|
+
</xsl:when>
|
411
|
+
<xsl:when test="$xlink">
|
412
|
+
<xsl:call-template name="simple.xlink">
|
413
|
+
<xsl:with-param name="content">
|
414
|
+
<xsl:apply-templates/>
|
415
|
+
</xsl:with-param>
|
416
|
+
</xsl:call-template>
|
417
|
+
</xsl:when>
|
418
|
+
<xsl:when test="$otherterm != '' and not($target)">
|
419
|
+
<xsl:message>
|
420
|
+
<xsl:text>Warning: glossseealso @otherterm reference not found: </xsl:text>
|
421
|
+
<xsl:value-of select="$otherterm"/>
|
422
|
+
</xsl:message>
|
423
|
+
<xsl:apply-templates/>
|
424
|
+
</xsl:when>
|
425
|
+
<xsl:otherwise>
|
426
|
+
<xsl:apply-templates/>
|
427
|
+
</xsl:otherwise>
|
428
|
+
</xsl:choose>
|
429
|
+
|
430
|
+
<xsl:choose>
|
431
|
+
<xsl:when test="position() = last()"/>
|
432
|
+
<xsl:otherwise>
|
433
|
+
<xsl:call-template name="gentext.template">
|
434
|
+
<xsl:with-param name="context" select="'glossary'"/>
|
435
|
+
<xsl:with-param name="name" select="'seealso-separator'"/>
|
436
|
+
</xsl:call-template>
|
437
|
+
</xsl:otherwise>
|
438
|
+
</xsl:choose>
|
439
|
+
</xsl:template>
|
440
|
+
|
441
|
+
<!-- ==================================================================== -->
|
442
|
+
|
443
|
+
<!-- Glossary collection -->
|
444
|
+
|
445
|
+
<xsl:template match="d:glossary[@role='auto']" priority="2">
|
446
|
+
|
447
|
+
<xsl:variable name="language">
|
448
|
+
<xsl:call-template name="l10n.language"/>
|
449
|
+
</xsl:variable>
|
450
|
+
|
451
|
+
<xsl:variable name="lowercase">
|
452
|
+
<xsl:call-template name="gentext">
|
453
|
+
<xsl:with-param name="key">normalize.sort.input</xsl:with-param>
|
454
|
+
</xsl:call-template>
|
455
|
+
</xsl:variable>
|
456
|
+
|
457
|
+
<xsl:variable name="uppercase">
|
458
|
+
<xsl:call-template name="gentext">
|
459
|
+
<xsl:with-param name="key">normalize.sort.output</xsl:with-param>
|
460
|
+
</xsl:call-template>
|
461
|
+
</xsl:variable>
|
462
|
+
|
463
|
+
<xsl:variable name="terms" select="//d:glossterm[not(parent::d:glossdef)]|//d:firstterm"/>
|
464
|
+
<xsl:variable name="collection" select="document($glossary.collection, .)"/>
|
465
|
+
|
466
|
+
<xsl:call-template name="id.warning"/>
|
467
|
+
|
468
|
+
<xsl:if test="$glossary.collection = ''">
|
469
|
+
<xsl:message>
|
470
|
+
<xsl:text>Warning: processing automatic glossary </xsl:text>
|
471
|
+
<xsl:text>without a glossary.collection file.</xsl:text>
|
472
|
+
</xsl:message>
|
473
|
+
</xsl:if>
|
474
|
+
|
475
|
+
<xsl:if test="not($collection) and $glossary.collection != ''">
|
476
|
+
<xsl:message>
|
477
|
+
<xsl:text>Warning: processing automatic glossary but unable to </xsl:text>
|
478
|
+
<xsl:text>open glossary.collection file '</xsl:text>
|
479
|
+
<xsl:value-of select="$glossary.collection"/>
|
480
|
+
<xsl:text>'</xsl:text>
|
481
|
+
</xsl:message>
|
482
|
+
</xsl:if>
|
483
|
+
|
484
|
+
<div>
|
485
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
486
|
+
<xsl:call-template name="id.attribute">
|
487
|
+
<xsl:with-param name="conditional" select="0"/>
|
488
|
+
</xsl:call-template>
|
489
|
+
|
490
|
+
<xsl:call-template name="glossary.titlepage"/>
|
491
|
+
|
492
|
+
<xsl:choose>
|
493
|
+
<xsl:when test="d:glossdiv and $collection//d:glossdiv">
|
494
|
+
<xsl:for-each select="$collection//d:glossdiv">
|
495
|
+
<!-- first see if there are any in this div -->
|
496
|
+
<xsl:variable name="exist.test">
|
497
|
+
<xsl:for-each select="d:glossentry">
|
498
|
+
<xsl:variable name="cterm" select="d:glossterm"/>
|
499
|
+
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
|
500
|
+
<xsl:value-of select="d:glossterm"/>
|
501
|
+
</xsl:if>
|
502
|
+
</xsl:for-each>
|
503
|
+
</xsl:variable>
|
504
|
+
|
505
|
+
<xsl:if test="$exist.test != ''">
|
506
|
+
<xsl:apply-templates select="." mode="auto-glossary">
|
507
|
+
<xsl:with-param name="terms" select="$terms"/>
|
508
|
+
</xsl:apply-templates>
|
509
|
+
</xsl:if>
|
510
|
+
</xsl:for-each>
|
511
|
+
</xsl:when>
|
512
|
+
<xsl:otherwise>
|
513
|
+
<dl>
|
514
|
+
<xsl:choose>
|
515
|
+
<xsl:when test="$glossary.sort != 0">
|
516
|
+
<xsl:for-each select="$collection//d:glossentry">
|
517
|
+
<xsl:sort lang="{$language}" select="normalize-space(translate(concat(@sortas, d:glossterm[not(parent::d:glossentry/@sortas) or parent::d:glossentry/@sortas = '']), 'AaÀàÁáÂâÃãÄäÅåĀāĂ㥹ǍǎǞǟǠǡǺǻȀȁȂȃȦȧḀḁẚẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặBbƀƁɓƂƃḂḃḄḅḆḇCcÇçĆćĈĉĊċČčƇƈɕḈḉDdĎďĐđƊɗƋƌDžDzȡɖḊḋḌḍḎḏḐḑḒḓEeÈèÉéÊêËëĒēĔĕĖėĘęĚěȄȅȆȇȨȩḔḕḖḗḘḙḚḛḜḝẸẹẺẻẼẽẾếỀềỂểỄễỆệFfƑƒḞḟGgĜĝĞğĠġĢģƓɠǤǥǦǧǴǵḠḡHhĤĥĦħȞȟɦḢḣḤḥḦḧḨḩḪḫẖIiÌìÍíÎîÏïĨĩĪīĬĭĮįİƗɨǏǐȈȉȊȋḬḭḮḯỈỉỊịJjĴĵǰʝKkĶķƘƙǨǩḰḱḲḳḴḵLlĹĺĻļĽľĿŀŁłƚLjȴɫɬɭḶḷḸḹḺḻḼḽMmɱḾḿṀṁṂṃNnÑñŃńŅņŇňƝɲƞȠNjǸǹȵɳṄṅṆṇṈṉṊṋOoÒòÓóÔôÕõÖöØøŌōŎŏŐőƟƠơǑǒǪǫǬǭǾǿȌȍȎȏȪȫȬȭȮȯȰȱṌṍṎṏṐṑṒṓỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợPpƤƥṔṕṖṗQqʠRrŔŕŖŗŘřȐȑȒȓɼɽɾṘṙṚṛṜṝṞṟSsŚśŜŝŞşŠšȘșʂṠṡṢṣṤṥṦṧṨṩTtŢţŤťŦŧƫƬƭƮʈȚțȶṪṫṬṭṮṯṰṱẗUuÙùÚúÛûÜüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜȔȕȖȗṲṳṴṵṶṷṸṹṺṻỤụỦủỨứỪừỬửỮữỰựVvƲʋṼṽṾṿWwŴŵẀẁẂẃẄẅẆẇẈẉẘXxẊẋẌẍYyÝýÿŸŶŷƳƴȲȳẎẏẙỲỳỴỵỶỷỸỹZzŹźŻżŽžƵƶȤȥʐʑẐẑẒẓẔẕẕ', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJKKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPPPPPPPPQQQRRRRRRRRRRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUVVVVVVVVWWWWWWWWWWWWWWWXXXXXXYYYYYYYYYYYYYYYYYYYYYYYZZZZZZZZZZZZZZZZZZZZZ'))"/>
|
518
|
+
<xsl:variable name="cterm" select="d:glossterm"/>
|
519
|
+
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
|
520
|
+
<xsl:apply-templates select="." mode="auto-glossary"/>
|
521
|
+
</xsl:if>
|
522
|
+
</xsl:for-each>
|
523
|
+
</xsl:when>
|
524
|
+
<xsl:otherwise>
|
525
|
+
<xsl:for-each select="$collection//d:glossentry">
|
526
|
+
<xsl:variable name="cterm" select="d:glossterm"/>
|
527
|
+
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
|
528
|
+
<xsl:apply-templates select="." mode="auto-glossary"/>
|
529
|
+
</xsl:if>
|
530
|
+
</xsl:for-each>
|
531
|
+
</xsl:otherwise>
|
532
|
+
</xsl:choose>
|
533
|
+
</dl>
|
534
|
+
</xsl:otherwise>
|
535
|
+
</xsl:choose>
|
536
|
+
|
537
|
+
<xsl:if test="not(parent::d:article)">
|
538
|
+
<xsl:call-template name="process.footnotes"/>
|
539
|
+
</xsl:if>
|
540
|
+
</div>
|
541
|
+
</xsl:template>
|
542
|
+
|
543
|
+
<xsl:template match="*" mode="auto-glossary">
|
544
|
+
<!-- pop back out to the default mode for most elements -->
|
545
|
+
<xsl:apply-templates select="."/>
|
546
|
+
</xsl:template>
|
547
|
+
|
548
|
+
<xsl:template match="d:glossdiv" mode="auto-glossary">
|
549
|
+
<xsl:param name="terms" select="."/>
|
550
|
+
|
551
|
+
|
552
|
+
<xsl:variable name="language">
|
553
|
+
<xsl:call-template name="l10n.language"/>
|
554
|
+
</xsl:variable>
|
555
|
+
|
556
|
+
<xsl:variable name="lowercase">
|
557
|
+
<xsl:call-template name="gentext">
|
558
|
+
<xsl:with-param name="key">normalize.sort.input</xsl:with-param>
|
559
|
+
</xsl:call-template>
|
560
|
+
</xsl:variable>
|
561
|
+
|
562
|
+
<xsl:variable name="uppercase">
|
563
|
+
<xsl:call-template name="gentext">
|
564
|
+
<xsl:with-param name="key">normalize.sort.output</xsl:with-param>
|
565
|
+
</xsl:call-template>
|
566
|
+
</xsl:variable>
|
567
|
+
|
568
|
+
|
569
|
+
<div>
|
570
|
+
<xsl:apply-templates select="." mode="common.html.attributes"/>
|
571
|
+
<xsl:call-template name="id.attribute">
|
572
|
+
<xsl:with-param name="conditional" select="0"/>
|
573
|
+
</xsl:call-template>
|
574
|
+
<xsl:apply-templates select="(d:glossentry[1]/preceding-sibling::*)"/>
|
575
|
+
|
576
|
+
<dl>
|
577
|
+
<xsl:choose>
|
578
|
+
<xsl:when test="$glossary.sort != 0">
|
579
|
+
<xsl:for-each select="d:glossentry">
|
580
|
+
<xsl:sort lang="{$language}" select="normalize-space(translate(concat(@sortas, d:glossterm[not(parent::d:glossentry/@sortas) or parent::d:glossentry/@sortas = '']), 'AaÀàÁáÂâÃãÄäÅåĀāĂ㥹ǍǎǞǟǠǡǺǻȀȁȂȃȦȧḀḁẚẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặBbƀƁɓƂƃḂḃḄḅḆḇCcÇçĆćĈĉĊċČčƇƈɕḈḉDdĎďĐđƊɗƋƌDžDzȡɖḊḋḌḍḎḏḐḑḒḓEeÈèÉéÊêËëĒēĔĕĖėĘęĚěȄȅȆȇȨȩḔḕḖḗḘḙḚḛḜḝẸẹẺẻẼẽẾếỀềỂểỄễỆệFfƑƒḞḟGgĜĝĞğĠġĢģƓɠǤǥǦǧǴǵḠḡHhĤĥĦħȞȟɦḢḣḤḥḦḧḨḩḪḫẖIiÌìÍíÎîÏïĨĩĪīĬĭĮįİƗɨǏǐȈȉȊȋḬḭḮḯỈỉỊịJjĴĵǰʝKkĶķƘƙǨǩḰḱḲḳḴḵLlĹĺĻļĽľĿŀŁłƚLjȴɫɬɭḶḷḸḹḺḻḼḽMmɱḾḿṀṁṂṃNnÑñŃńŅņŇňƝɲƞȠNjǸǹȵɳṄṅṆṇṈṉṊṋOoÒòÓóÔôÕõÖöØøŌōŎŏŐőƟƠơǑǒǪǫǬǭǾǿȌȍȎȏȪȫȬȭȮȯȰȱṌṍṎṏṐṑṒṓỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợPpƤƥṔṕṖṗQqʠRrŔŕŖŗŘřȐȑȒȓɼɽɾṘṙṚṛṜṝṞṟSsŚśŜŝŞşŠšȘșʂṠṡṢṣṤṥṦṧṨṩTtŢţŤťŦŧƫƬƭƮʈȚțȶṪṫṬṭṮṯṰṱẗUuÙùÚúÛûÜüŨũŪūŬŭŮůŰűŲųƯưǓǔǕǖǗǘǙǚǛǜȔȕȖȗṲṳṴṵṶṷṸṹṺṻỤụỦủỨứỪừỬửỮữỰựVvƲʋṼṽṾṿWwŴŵẀẁẂẃẄẅẆẇẈẉẘXxẊẋẌẍYyÝýÿŸŶŷƳƴȲȳẎẏẙỲỳỴỵỶỷỸỹZzŹźŻżŽžƵƶȤȥʐʑẐẑẒẓẔẕẕ', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJJJJJJKKKKKKKKKKKKKKLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOPPPPPPPPQQQRRRRRRRRRRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUVVVVVVVVWWWWWWWWWWWWWWWXXXXXXYYYYYYYYYYYYYYYYYYYYYYYZZZZZZZZZZZZZZZZZZZZZ'))"/>
|
581
|
+
<xsl:variable name="cterm" select="d:glossterm"/>
|
582
|
+
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
|
583
|
+
<xsl:apply-templates select="." mode="auto-glossary"/>
|
584
|
+
</xsl:if>
|
585
|
+
</xsl:for-each>
|
586
|
+
</xsl:when>
|
587
|
+
<xsl:otherwise>
|
588
|
+
<xsl:for-each select="d:glossentry">
|
589
|
+
<xsl:variable name="cterm" select="d:glossterm"/>
|
590
|
+
<xsl:if test="$terms[@baseform = $cterm or . = $cterm]">
|
591
|
+
<xsl:apply-templates select="." mode="auto-glossary"/>
|
592
|
+
</xsl:if>
|
593
|
+
</xsl:for-each>
|
594
|
+
</xsl:otherwise>
|
595
|
+
</xsl:choose>
|
596
|
+
</dl>
|
597
|
+
</div>
|
598
|
+
</xsl:template>
|
599
|
+
|
600
|
+
<!-- ==================================================================== -->
|
601
|
+
|
602
|
+
</xsl:stylesheet>
|