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.
Files changed (170) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/CHANGELOG +41 -0
  4. data/README.md +9 -17
  5. data/bin/docbook_xsl_wrapper +9 -14
  6. data/docbook_xsl_wrapper.gemspec +8 -7
  7. data/lib/docbook_xsl_wrapper.rb +24 -1
  8. data/lib/docbook_xsl_wrapper/epub.rb +124 -122
  9. data/lib/docbook_xsl_wrapper/options.rb +1 -1
  10. data/lib/docbook_xsl_wrapper/validate.rb +22 -0
  11. data/lib/docbook_xsl_wrapper/version.rb +1 -1
  12. data/schema/docbookxi.rng +18654 -0
  13. data/spec/docbook_xsl_wrapper/validate_spec.rb +64 -0
  14. data/xsl/AUTHORS +4 -0
  15. data/xsl/COPYING +48 -0
  16. data/xsl/REVISION +1 -0
  17. data/xsl/VERSION.xsl +115 -0
  18. data/xsl/common/addns.xsl +124 -0
  19. data/xsl/common/af.xml +1272 -0
  20. data/xsl/common/am.xml +1272 -0
  21. data/xsl/common/ar.xml +1272 -0
  22. data/xsl/common/as.xml +703 -0
  23. data/xsl/common/ast.xml +703 -0
  24. data/xsl/common/autoidx-kimber.xsl +45 -0
  25. data/xsl/common/autoidx-kosek.xsl +155 -0
  26. data/xsl/common/az.xml +715 -0
  27. data/xsl/common/bg.xml +767 -0
  28. data/xsl/common/bn.xml +1272 -0
  29. data/xsl/common/bn_in.xml +703 -0
  30. data/xsl/common/bs.xml +705 -0
  31. data/xsl/common/ca.xml +703 -0
  32. data/xsl/common/charmap.xsl +222 -0
  33. data/xsl/common/common.xsl +2129 -0
  34. data/xsl/common/cs.xml +743 -0
  35. data/xsl/common/cy.xml +1288 -0
  36. data/xsl/common/da.xml +707 -0
  37. data/xsl/common/de.xml +709 -0
  38. data/xsl/common/el.xml +772 -0
  39. data/xsl/common/en.xml +1272 -0
  40. data/xsl/common/entities.ent +67 -0
  41. data/xsl/common/eo.xml +1272 -0
  42. data/xsl/common/es.xml +719 -0
  43. data/xsl/common/et.xml +1272 -0
  44. data/xsl/common/eu.xml +1272 -0
  45. data/xsl/common/fa.xml +703 -0
  46. data/xsl/common/fi.xml +713 -0
  47. data/xsl/common/fr.xml +733 -0
  48. data/xsl/common/ga.xml +1272 -0
  49. data/xsl/common/gentext.xsl +855 -0
  50. data/xsl/common/gl.xml +1272 -0
  51. data/xsl/common/gu.xml +703 -0
  52. data/xsl/common/he.xml +1272 -0
  53. data/xsl/common/hi.xml +703 -0
  54. data/xsl/common/hr.xml +705 -0
  55. data/xsl/common/hu.xml +721 -0
  56. data/xsl/common/id.xml +1272 -0
  57. data/xsl/common/insertfile.xsl +113 -0
  58. data/xsl/common/is.xml +715 -0
  59. data/xsl/common/it.xml +1272 -0
  60. data/xsl/common/ja.xml +703 -0
  61. data/xsl/common/ka.xml +743 -0
  62. data/xsl/common/kn.xml +1272 -0
  63. data/xsl/common/ko.xml +1272 -0
  64. data/xsl/common/ky.xml +775 -0
  65. data/xsl/common/l10n.dtd +64 -0
  66. data/xsl/common/l10n.xml +78 -0
  67. data/xsl/common/l10n.xsl +598 -0
  68. data/xsl/common/la.xml +1272 -0
  69. data/xsl/common/labels.xsl +933 -0
  70. data/xsl/common/lt.xml +721 -0
  71. data/xsl/common/lv.xml +1272 -0
  72. data/xsl/common/ml.xml +703 -0
  73. data/xsl/common/mn.xml +773 -0
  74. data/xsl/common/mr.xml +703 -0
  75. data/xsl/common/nb.xml +1272 -0
  76. data/xsl/common/nds.xml +709 -0
  77. data/xsl/common/nl.xml +703 -0
  78. data/xsl/common/nn.xml +1272 -0
  79. data/xsl/common/olink.xsl +1284 -0
  80. data/xsl/common/or.xml +1272 -0
  81. data/xsl/common/pa.xml +703 -0
  82. data/xsl/common/pi.xml +168 -0
  83. data/xsl/common/pi.xsl +347 -0
  84. data/xsl/common/pl.xml +721 -0
  85. data/xsl/common/pt.xml +1272 -0
  86. data/xsl/common/pt_br.xml +1272 -0
  87. data/xsl/common/refentry.xsl +1353 -0
  88. data/xsl/common/ro.xml +1272 -0
  89. data/xsl/common/ru.xml +769 -0
  90. data/xsl/common/sk.xml +1272 -0
  91. data/xsl/common/sl.xml +1272 -0
  92. data/xsl/common/sq.xml +1272 -0
  93. data/xsl/common/sr.xml +763 -0
  94. data/xsl/common/sr_Latn.xml +722 -0
  95. data/xsl/common/subtitles.xsl +181 -0
  96. data/xsl/common/sv.xml +707 -0
  97. data/xsl/common/ta.xml +703 -0
  98. data/xsl/common/table.xsl +515 -0
  99. data/xsl/common/targetdatabase.dtd +49 -0
  100. data/xsl/common/targets.xsl +338 -0
  101. data/xsl/common/te.xml +703 -0
  102. data/xsl/common/th.xml +1272 -0
  103. data/xsl/common/titles.xsl +850 -0
  104. data/xsl/common/tl.xml +1272 -0
  105. data/xsl/common/tr.xml +709 -0
  106. data/xsl/common/uk.xml +769 -0
  107. data/xsl/common/ur.xml +705 -0
  108. data/xsl/common/utility.xsl +291 -0
  109. data/xsl/common/vi.xml +1272 -0
  110. data/xsl/common/xh.xml +1272 -0
  111. data/xsl/common/zh.xml +703 -0
  112. data/xsl/common/zh_cn.xml +703 -0
  113. data/xsl/common/zh_tw.xml +703 -0
  114. data/xsl/epub/docbook.xsl +1769 -0
  115. data/xsl/epub3/chunk.xsl +30 -0
  116. data/xsl/epub3/docbook-epub.css.xml +142 -0
  117. data/xsl/epub3/docbook.xsl +20 -0
  118. data/xsl/epub3/epub3-chunk-mods.xsl +52 -0
  119. data/xsl/epub3/epub3-element-mods.xsl +2533 -0
  120. data/xsl/epub3/titlepage.templates.xml +712 -0
  121. data/xsl/epub3/titlepage.templates.xsl +3842 -0
  122. data/xsl/lib/lib.xsl +533 -0
  123. data/xsl/xhtml/admon.xsl +142 -0
  124. data/xsl/xhtml/annotations.xsl +160 -0
  125. data/xsl/xhtml/autoidx.xsl +831 -0
  126. data/xsl/xhtml/autotoc.xsl +706 -0
  127. data/xsl/xhtml/biblio-iso690.xsl +1302 -0
  128. data/xsl/xhtml/biblio.xsl +1371 -0
  129. data/xsl/xhtml/block.xsl +584 -0
  130. data/xsl/xhtml/callout.xsl +210 -0
  131. data/xsl/xhtml/chunk-code.xsl +675 -0
  132. data/xsl/xhtml/chunk-common.xsl +1627 -0
  133. data/xsl/xhtml/chunker.xsl +317 -0
  134. data/xsl/xhtml/component.xsl +440 -0
  135. data/xsl/xhtml/division.xsl +214 -0
  136. data/xsl/xhtml/ebnf.xsl +331 -0
  137. data/xsl/xhtml/footnote.xsl +346 -0
  138. data/xsl/xhtml/formal.xsl +496 -0
  139. data/xsl/xhtml/glossary.xsl +602 -0
  140. data/xsl/xhtml/graphics.xsl +1537 -0
  141. data/xsl/xhtml/html-rtf.xsl +321 -0
  142. data/xsl/xhtml/html.xsl +690 -0
  143. data/xsl/xhtml/htmltbl.xsl +102 -0
  144. data/xsl/xhtml/index.xsl +264 -0
  145. data/xsl/xhtml/info.xsl +48 -0
  146. data/xsl/xhtml/inline.xsl +1508 -0
  147. data/xsl/xhtml/its.xsl +109 -0
  148. data/xsl/xhtml/keywords.xsl +38 -0
  149. data/xsl/xhtml/lists.xsl +1227 -0
  150. data/xsl/xhtml/math.xsl +286 -0
  151. data/xsl/xhtml/param.xsl +449 -0
  152. data/xsl/xhtml/pi.xsl +1237 -0
  153. data/xsl/xhtml/qandaset.xsl +440 -0
  154. data/xsl/xhtml/refentry.xsl +307 -0
  155. data/xsl/xhtml/sections.xsl +564 -0
  156. data/xsl/xhtml/synop.xsl +1623 -0
  157. data/xsl/xhtml/table.xsl +1179 -0
  158. data/xsl/xhtml/task.xsl +76 -0
  159. data/xsl/xhtml/titlepage.templates.xsl +4005 -0
  160. data/xsl/xhtml/titlepage.xsl +1108 -0
  161. data/xsl/xhtml/toc.xsl +334 -0
  162. data/xsl/xhtml/verbatim.xsl +389 -0
  163. data/xsl/xhtml/xref.xsl +1268 -0
  164. data/xsl/xhtml5/docbook.xsl +22 -0
  165. data/xsl/xhtml5/html5-chunk-mods.xsl +112 -0
  166. data/xsl/xhtml5/html5-element-mods.xsl +791 -0
  167. data/xsl/xhtml5/xhtml-docbook.xsl +531 -0
  168. metadata +207 -27
  169. data/.rvmrc +0 -48
  170. 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&#192;&#224;&#193;&#225;&#194;&#226;&#195;&#227;&#196;&#228;&#197;&#229;&#256;&#257;&#258;&#259;&#260;&#261;&#461;&#462;&#478;&#479;&#480;&#481;&#506;&#507;&#512;&#513;&#514;&#515;&#550;&#551;&#7680;&#7681;&#7834;&#7840;&#7841;&#7842;&#7843;&#7844;&#7845;&#7846;&#7847;&#7848;&#7849;&#7850;&#7851;&#7852;&#7853;&#7854;&#7855;&#7856;&#7857;&#7858;&#7859;&#7860;&#7861;&#7862;&#7863;Bb&#384;&#385;&#595;&#386;&#387;&#7682;&#7683;&#7684;&#7685;&#7686;&#7687;Cc&#199;&#231;&#262;&#263;&#264;&#265;&#266;&#267;&#268;&#269;&#391;&#392;&#597;&#7688;&#7689;Dd&#270;&#271;&#272;&#273;&#394;&#599;&#395;&#396;&#453;&#498;&#545;&#598;&#7690;&#7691;&#7692;&#7693;&#7694;&#7695;&#7696;&#7697;&#7698;&#7699;Ee&#200;&#232;&#201;&#233;&#202;&#234;&#203;&#235;&#274;&#275;&#276;&#277;&#278;&#279;&#280;&#281;&#282;&#283;&#516;&#517;&#518;&#519;&#552;&#553;&#7700;&#7701;&#7702;&#7703;&#7704;&#7705;&#7706;&#7707;&#7708;&#7709;&#7864;&#7865;&#7866;&#7867;&#7868;&#7869;&#7870;&#7871;&#7872;&#7873;&#7874;&#7875;&#7876;&#7877;&#7878;&#7879;Ff&#401;&#402;&#7710;&#7711;Gg&#284;&#285;&#286;&#287;&#288;&#289;&#290;&#291;&#403;&#608;&#484;&#485;&#486;&#487;&#500;&#501;&#7712;&#7713;Hh&#292;&#293;&#294;&#295;&#542;&#543;&#614;&#7714;&#7715;&#7716;&#7717;&#7718;&#7719;&#7720;&#7721;&#7722;&#7723;&#7830;Ii&#204;&#236;&#205;&#237;&#206;&#238;&#207;&#239;&#296;&#297;&#298;&#299;&#300;&#301;&#302;&#303;&#304;&#407;&#616;&#463;&#464;&#520;&#521;&#522;&#523;&#7724;&#7725;&#7726;&#7727;&#7880;&#7881;&#7882;&#7883;Jj&#308;&#309;&#496;&#669;Kk&#310;&#311;&#408;&#409;&#488;&#489;&#7728;&#7729;&#7730;&#7731;&#7732;&#7733;Ll&#313;&#314;&#315;&#316;&#317;&#318;&#319;&#320;&#321;&#322;&#410;&#456;&#564;&#619;&#620;&#621;&#7734;&#7735;&#7736;&#7737;&#7738;&#7739;&#7740;&#7741;Mm&#625;&#7742;&#7743;&#7744;&#7745;&#7746;&#7747;Nn&#209;&#241;&#323;&#324;&#325;&#326;&#327;&#328;&#413;&#626;&#414;&#544;&#459;&#504;&#505;&#565;&#627;&#7748;&#7749;&#7750;&#7751;&#7752;&#7753;&#7754;&#7755;Oo&#210;&#242;&#211;&#243;&#212;&#244;&#213;&#245;&#214;&#246;&#216;&#248;&#332;&#333;&#334;&#335;&#336;&#337;&#415;&#416;&#417;&#465;&#466;&#490;&#491;&#492;&#493;&#510;&#511;&#524;&#525;&#526;&#527;&#554;&#555;&#556;&#557;&#558;&#559;&#560;&#561;&#7756;&#7757;&#7758;&#7759;&#7760;&#7761;&#7762;&#7763;&#7884;&#7885;&#7886;&#7887;&#7888;&#7889;&#7890;&#7891;&#7892;&#7893;&#7894;&#7895;&#7896;&#7897;&#7898;&#7899;&#7900;&#7901;&#7902;&#7903;&#7904;&#7905;&#7906;&#7907;Pp&#420;&#421;&#7764;&#7765;&#7766;&#7767;Qq&#672;Rr&#340;&#341;&#342;&#343;&#344;&#345;&#528;&#529;&#530;&#531;&#636;&#637;&#638;&#7768;&#7769;&#7770;&#7771;&#7772;&#7773;&#7774;&#7775;Ss&#346;&#347;&#348;&#349;&#350;&#351;&#352;&#353;&#536;&#537;&#642;&#7776;&#7777;&#7778;&#7779;&#7780;&#7781;&#7782;&#7783;&#7784;&#7785;Tt&#354;&#355;&#356;&#357;&#358;&#359;&#427;&#428;&#429;&#430;&#648;&#538;&#539;&#566;&#7786;&#7787;&#7788;&#7789;&#7790;&#7791;&#7792;&#7793;&#7831;Uu&#217;&#249;&#218;&#250;&#219;&#251;&#220;&#252;&#360;&#361;&#362;&#363;&#364;&#365;&#366;&#367;&#368;&#369;&#370;&#371;&#431;&#432;&#467;&#468;&#469;&#470;&#471;&#472;&#473;&#474;&#475;&#476;&#532;&#533;&#534;&#535;&#7794;&#7795;&#7796;&#7797;&#7798;&#7799;&#7800;&#7801;&#7802;&#7803;&#7908;&#7909;&#7910;&#7911;&#7912;&#7913;&#7914;&#7915;&#7916;&#7917;&#7918;&#7919;&#7920;&#7921;Vv&#434;&#651;&#7804;&#7805;&#7806;&#7807;Ww&#372;&#373;&#7808;&#7809;&#7810;&#7811;&#7812;&#7813;&#7814;&#7815;&#7816;&#7817;&#7832;Xx&#7818;&#7819;&#7820;&#7821;Yy&#221;&#253;&#255;&#376;&#374;&#375;&#435;&#436;&#562;&#563;&#7822;&#7823;&#7833;&#7922;&#7923;&#7924;&#7925;&#7926;&#7927;&#7928;&#7929;Zz&#377;&#378;&#379;&#380;&#381;&#382;&#437;&#438;&#548;&#549;&#656;&#657;&#7824;&#7825;&#7826;&#7827;&#7828;&#7829;&#7829;', '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&#192;&#224;&#193;&#225;&#194;&#226;&#195;&#227;&#196;&#228;&#197;&#229;&#256;&#257;&#258;&#259;&#260;&#261;&#461;&#462;&#478;&#479;&#480;&#481;&#506;&#507;&#512;&#513;&#514;&#515;&#550;&#551;&#7680;&#7681;&#7834;&#7840;&#7841;&#7842;&#7843;&#7844;&#7845;&#7846;&#7847;&#7848;&#7849;&#7850;&#7851;&#7852;&#7853;&#7854;&#7855;&#7856;&#7857;&#7858;&#7859;&#7860;&#7861;&#7862;&#7863;Bb&#384;&#385;&#595;&#386;&#387;&#7682;&#7683;&#7684;&#7685;&#7686;&#7687;Cc&#199;&#231;&#262;&#263;&#264;&#265;&#266;&#267;&#268;&#269;&#391;&#392;&#597;&#7688;&#7689;Dd&#270;&#271;&#272;&#273;&#394;&#599;&#395;&#396;&#453;&#498;&#545;&#598;&#7690;&#7691;&#7692;&#7693;&#7694;&#7695;&#7696;&#7697;&#7698;&#7699;Ee&#200;&#232;&#201;&#233;&#202;&#234;&#203;&#235;&#274;&#275;&#276;&#277;&#278;&#279;&#280;&#281;&#282;&#283;&#516;&#517;&#518;&#519;&#552;&#553;&#7700;&#7701;&#7702;&#7703;&#7704;&#7705;&#7706;&#7707;&#7708;&#7709;&#7864;&#7865;&#7866;&#7867;&#7868;&#7869;&#7870;&#7871;&#7872;&#7873;&#7874;&#7875;&#7876;&#7877;&#7878;&#7879;Ff&#401;&#402;&#7710;&#7711;Gg&#284;&#285;&#286;&#287;&#288;&#289;&#290;&#291;&#403;&#608;&#484;&#485;&#486;&#487;&#500;&#501;&#7712;&#7713;Hh&#292;&#293;&#294;&#295;&#542;&#543;&#614;&#7714;&#7715;&#7716;&#7717;&#7718;&#7719;&#7720;&#7721;&#7722;&#7723;&#7830;Ii&#204;&#236;&#205;&#237;&#206;&#238;&#207;&#239;&#296;&#297;&#298;&#299;&#300;&#301;&#302;&#303;&#304;&#407;&#616;&#463;&#464;&#520;&#521;&#522;&#523;&#7724;&#7725;&#7726;&#7727;&#7880;&#7881;&#7882;&#7883;Jj&#308;&#309;&#496;&#669;Kk&#310;&#311;&#408;&#409;&#488;&#489;&#7728;&#7729;&#7730;&#7731;&#7732;&#7733;Ll&#313;&#314;&#315;&#316;&#317;&#318;&#319;&#320;&#321;&#322;&#410;&#456;&#564;&#619;&#620;&#621;&#7734;&#7735;&#7736;&#7737;&#7738;&#7739;&#7740;&#7741;Mm&#625;&#7742;&#7743;&#7744;&#7745;&#7746;&#7747;Nn&#209;&#241;&#323;&#324;&#325;&#326;&#327;&#328;&#413;&#626;&#414;&#544;&#459;&#504;&#505;&#565;&#627;&#7748;&#7749;&#7750;&#7751;&#7752;&#7753;&#7754;&#7755;Oo&#210;&#242;&#211;&#243;&#212;&#244;&#213;&#245;&#214;&#246;&#216;&#248;&#332;&#333;&#334;&#335;&#336;&#337;&#415;&#416;&#417;&#465;&#466;&#490;&#491;&#492;&#493;&#510;&#511;&#524;&#525;&#526;&#527;&#554;&#555;&#556;&#557;&#558;&#559;&#560;&#561;&#7756;&#7757;&#7758;&#7759;&#7760;&#7761;&#7762;&#7763;&#7884;&#7885;&#7886;&#7887;&#7888;&#7889;&#7890;&#7891;&#7892;&#7893;&#7894;&#7895;&#7896;&#7897;&#7898;&#7899;&#7900;&#7901;&#7902;&#7903;&#7904;&#7905;&#7906;&#7907;Pp&#420;&#421;&#7764;&#7765;&#7766;&#7767;Qq&#672;Rr&#340;&#341;&#342;&#343;&#344;&#345;&#528;&#529;&#530;&#531;&#636;&#637;&#638;&#7768;&#7769;&#7770;&#7771;&#7772;&#7773;&#7774;&#7775;Ss&#346;&#347;&#348;&#349;&#350;&#351;&#352;&#353;&#536;&#537;&#642;&#7776;&#7777;&#7778;&#7779;&#7780;&#7781;&#7782;&#7783;&#7784;&#7785;Tt&#354;&#355;&#356;&#357;&#358;&#359;&#427;&#428;&#429;&#430;&#648;&#538;&#539;&#566;&#7786;&#7787;&#7788;&#7789;&#7790;&#7791;&#7792;&#7793;&#7831;Uu&#217;&#249;&#218;&#250;&#219;&#251;&#220;&#252;&#360;&#361;&#362;&#363;&#364;&#365;&#366;&#367;&#368;&#369;&#370;&#371;&#431;&#432;&#467;&#468;&#469;&#470;&#471;&#472;&#473;&#474;&#475;&#476;&#532;&#533;&#534;&#535;&#7794;&#7795;&#7796;&#7797;&#7798;&#7799;&#7800;&#7801;&#7802;&#7803;&#7908;&#7909;&#7910;&#7911;&#7912;&#7913;&#7914;&#7915;&#7916;&#7917;&#7918;&#7919;&#7920;&#7921;Vv&#434;&#651;&#7804;&#7805;&#7806;&#7807;Ww&#372;&#373;&#7808;&#7809;&#7810;&#7811;&#7812;&#7813;&#7814;&#7815;&#7816;&#7817;&#7832;Xx&#7818;&#7819;&#7820;&#7821;Yy&#221;&#253;&#255;&#376;&#374;&#375;&#435;&#436;&#562;&#563;&#7822;&#7823;&#7833;&#7922;&#7923;&#7924;&#7925;&#7926;&#7927;&#7928;&#7929;Zz&#377;&#378;&#379;&#380;&#381;&#382;&#437;&#438;&#548;&#549;&#656;&#657;&#7824;&#7825;&#7826;&#7827;&#7828;&#7829;&#7829;', '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&#192;&#224;&#193;&#225;&#194;&#226;&#195;&#227;&#196;&#228;&#197;&#229;&#256;&#257;&#258;&#259;&#260;&#261;&#461;&#462;&#478;&#479;&#480;&#481;&#506;&#507;&#512;&#513;&#514;&#515;&#550;&#551;&#7680;&#7681;&#7834;&#7840;&#7841;&#7842;&#7843;&#7844;&#7845;&#7846;&#7847;&#7848;&#7849;&#7850;&#7851;&#7852;&#7853;&#7854;&#7855;&#7856;&#7857;&#7858;&#7859;&#7860;&#7861;&#7862;&#7863;Bb&#384;&#385;&#595;&#386;&#387;&#7682;&#7683;&#7684;&#7685;&#7686;&#7687;Cc&#199;&#231;&#262;&#263;&#264;&#265;&#266;&#267;&#268;&#269;&#391;&#392;&#597;&#7688;&#7689;Dd&#270;&#271;&#272;&#273;&#394;&#599;&#395;&#396;&#453;&#498;&#545;&#598;&#7690;&#7691;&#7692;&#7693;&#7694;&#7695;&#7696;&#7697;&#7698;&#7699;Ee&#200;&#232;&#201;&#233;&#202;&#234;&#203;&#235;&#274;&#275;&#276;&#277;&#278;&#279;&#280;&#281;&#282;&#283;&#516;&#517;&#518;&#519;&#552;&#553;&#7700;&#7701;&#7702;&#7703;&#7704;&#7705;&#7706;&#7707;&#7708;&#7709;&#7864;&#7865;&#7866;&#7867;&#7868;&#7869;&#7870;&#7871;&#7872;&#7873;&#7874;&#7875;&#7876;&#7877;&#7878;&#7879;Ff&#401;&#402;&#7710;&#7711;Gg&#284;&#285;&#286;&#287;&#288;&#289;&#290;&#291;&#403;&#608;&#484;&#485;&#486;&#487;&#500;&#501;&#7712;&#7713;Hh&#292;&#293;&#294;&#295;&#542;&#543;&#614;&#7714;&#7715;&#7716;&#7717;&#7718;&#7719;&#7720;&#7721;&#7722;&#7723;&#7830;Ii&#204;&#236;&#205;&#237;&#206;&#238;&#207;&#239;&#296;&#297;&#298;&#299;&#300;&#301;&#302;&#303;&#304;&#407;&#616;&#463;&#464;&#520;&#521;&#522;&#523;&#7724;&#7725;&#7726;&#7727;&#7880;&#7881;&#7882;&#7883;Jj&#308;&#309;&#496;&#669;Kk&#310;&#311;&#408;&#409;&#488;&#489;&#7728;&#7729;&#7730;&#7731;&#7732;&#7733;Ll&#313;&#314;&#315;&#316;&#317;&#318;&#319;&#320;&#321;&#322;&#410;&#456;&#564;&#619;&#620;&#621;&#7734;&#7735;&#7736;&#7737;&#7738;&#7739;&#7740;&#7741;Mm&#625;&#7742;&#7743;&#7744;&#7745;&#7746;&#7747;Nn&#209;&#241;&#323;&#324;&#325;&#326;&#327;&#328;&#413;&#626;&#414;&#544;&#459;&#504;&#505;&#565;&#627;&#7748;&#7749;&#7750;&#7751;&#7752;&#7753;&#7754;&#7755;Oo&#210;&#242;&#211;&#243;&#212;&#244;&#213;&#245;&#214;&#246;&#216;&#248;&#332;&#333;&#334;&#335;&#336;&#337;&#415;&#416;&#417;&#465;&#466;&#490;&#491;&#492;&#493;&#510;&#511;&#524;&#525;&#526;&#527;&#554;&#555;&#556;&#557;&#558;&#559;&#560;&#561;&#7756;&#7757;&#7758;&#7759;&#7760;&#7761;&#7762;&#7763;&#7884;&#7885;&#7886;&#7887;&#7888;&#7889;&#7890;&#7891;&#7892;&#7893;&#7894;&#7895;&#7896;&#7897;&#7898;&#7899;&#7900;&#7901;&#7902;&#7903;&#7904;&#7905;&#7906;&#7907;Pp&#420;&#421;&#7764;&#7765;&#7766;&#7767;Qq&#672;Rr&#340;&#341;&#342;&#343;&#344;&#345;&#528;&#529;&#530;&#531;&#636;&#637;&#638;&#7768;&#7769;&#7770;&#7771;&#7772;&#7773;&#7774;&#7775;Ss&#346;&#347;&#348;&#349;&#350;&#351;&#352;&#353;&#536;&#537;&#642;&#7776;&#7777;&#7778;&#7779;&#7780;&#7781;&#7782;&#7783;&#7784;&#7785;Tt&#354;&#355;&#356;&#357;&#358;&#359;&#427;&#428;&#429;&#430;&#648;&#538;&#539;&#566;&#7786;&#7787;&#7788;&#7789;&#7790;&#7791;&#7792;&#7793;&#7831;Uu&#217;&#249;&#218;&#250;&#219;&#251;&#220;&#252;&#360;&#361;&#362;&#363;&#364;&#365;&#366;&#367;&#368;&#369;&#370;&#371;&#431;&#432;&#467;&#468;&#469;&#470;&#471;&#472;&#473;&#474;&#475;&#476;&#532;&#533;&#534;&#535;&#7794;&#7795;&#7796;&#7797;&#7798;&#7799;&#7800;&#7801;&#7802;&#7803;&#7908;&#7909;&#7910;&#7911;&#7912;&#7913;&#7914;&#7915;&#7916;&#7917;&#7918;&#7919;&#7920;&#7921;Vv&#434;&#651;&#7804;&#7805;&#7806;&#7807;Ww&#372;&#373;&#7808;&#7809;&#7810;&#7811;&#7812;&#7813;&#7814;&#7815;&#7816;&#7817;&#7832;Xx&#7818;&#7819;&#7820;&#7821;Yy&#221;&#253;&#255;&#376;&#374;&#375;&#435;&#436;&#562;&#563;&#7822;&#7823;&#7833;&#7922;&#7923;&#7924;&#7925;&#7926;&#7927;&#7928;&#7929;Zz&#377;&#378;&#379;&#380;&#381;&#382;&#437;&#438;&#548;&#549;&#656;&#657;&#7824;&#7825;&#7826;&#7827;&#7828;&#7829;&#7829;', '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&#192;&#224;&#193;&#225;&#194;&#226;&#195;&#227;&#196;&#228;&#197;&#229;&#256;&#257;&#258;&#259;&#260;&#261;&#461;&#462;&#478;&#479;&#480;&#481;&#506;&#507;&#512;&#513;&#514;&#515;&#550;&#551;&#7680;&#7681;&#7834;&#7840;&#7841;&#7842;&#7843;&#7844;&#7845;&#7846;&#7847;&#7848;&#7849;&#7850;&#7851;&#7852;&#7853;&#7854;&#7855;&#7856;&#7857;&#7858;&#7859;&#7860;&#7861;&#7862;&#7863;Bb&#384;&#385;&#595;&#386;&#387;&#7682;&#7683;&#7684;&#7685;&#7686;&#7687;Cc&#199;&#231;&#262;&#263;&#264;&#265;&#266;&#267;&#268;&#269;&#391;&#392;&#597;&#7688;&#7689;Dd&#270;&#271;&#272;&#273;&#394;&#599;&#395;&#396;&#453;&#498;&#545;&#598;&#7690;&#7691;&#7692;&#7693;&#7694;&#7695;&#7696;&#7697;&#7698;&#7699;Ee&#200;&#232;&#201;&#233;&#202;&#234;&#203;&#235;&#274;&#275;&#276;&#277;&#278;&#279;&#280;&#281;&#282;&#283;&#516;&#517;&#518;&#519;&#552;&#553;&#7700;&#7701;&#7702;&#7703;&#7704;&#7705;&#7706;&#7707;&#7708;&#7709;&#7864;&#7865;&#7866;&#7867;&#7868;&#7869;&#7870;&#7871;&#7872;&#7873;&#7874;&#7875;&#7876;&#7877;&#7878;&#7879;Ff&#401;&#402;&#7710;&#7711;Gg&#284;&#285;&#286;&#287;&#288;&#289;&#290;&#291;&#403;&#608;&#484;&#485;&#486;&#487;&#500;&#501;&#7712;&#7713;Hh&#292;&#293;&#294;&#295;&#542;&#543;&#614;&#7714;&#7715;&#7716;&#7717;&#7718;&#7719;&#7720;&#7721;&#7722;&#7723;&#7830;Ii&#204;&#236;&#205;&#237;&#206;&#238;&#207;&#239;&#296;&#297;&#298;&#299;&#300;&#301;&#302;&#303;&#304;&#407;&#616;&#463;&#464;&#520;&#521;&#522;&#523;&#7724;&#7725;&#7726;&#7727;&#7880;&#7881;&#7882;&#7883;Jj&#308;&#309;&#496;&#669;Kk&#310;&#311;&#408;&#409;&#488;&#489;&#7728;&#7729;&#7730;&#7731;&#7732;&#7733;Ll&#313;&#314;&#315;&#316;&#317;&#318;&#319;&#320;&#321;&#322;&#410;&#456;&#564;&#619;&#620;&#621;&#7734;&#7735;&#7736;&#7737;&#7738;&#7739;&#7740;&#7741;Mm&#625;&#7742;&#7743;&#7744;&#7745;&#7746;&#7747;Nn&#209;&#241;&#323;&#324;&#325;&#326;&#327;&#328;&#413;&#626;&#414;&#544;&#459;&#504;&#505;&#565;&#627;&#7748;&#7749;&#7750;&#7751;&#7752;&#7753;&#7754;&#7755;Oo&#210;&#242;&#211;&#243;&#212;&#244;&#213;&#245;&#214;&#246;&#216;&#248;&#332;&#333;&#334;&#335;&#336;&#337;&#415;&#416;&#417;&#465;&#466;&#490;&#491;&#492;&#493;&#510;&#511;&#524;&#525;&#526;&#527;&#554;&#555;&#556;&#557;&#558;&#559;&#560;&#561;&#7756;&#7757;&#7758;&#7759;&#7760;&#7761;&#7762;&#7763;&#7884;&#7885;&#7886;&#7887;&#7888;&#7889;&#7890;&#7891;&#7892;&#7893;&#7894;&#7895;&#7896;&#7897;&#7898;&#7899;&#7900;&#7901;&#7902;&#7903;&#7904;&#7905;&#7906;&#7907;Pp&#420;&#421;&#7764;&#7765;&#7766;&#7767;Qq&#672;Rr&#340;&#341;&#342;&#343;&#344;&#345;&#528;&#529;&#530;&#531;&#636;&#637;&#638;&#7768;&#7769;&#7770;&#7771;&#7772;&#7773;&#7774;&#7775;Ss&#346;&#347;&#348;&#349;&#350;&#351;&#352;&#353;&#536;&#537;&#642;&#7776;&#7777;&#7778;&#7779;&#7780;&#7781;&#7782;&#7783;&#7784;&#7785;Tt&#354;&#355;&#356;&#357;&#358;&#359;&#427;&#428;&#429;&#430;&#648;&#538;&#539;&#566;&#7786;&#7787;&#7788;&#7789;&#7790;&#7791;&#7792;&#7793;&#7831;Uu&#217;&#249;&#218;&#250;&#219;&#251;&#220;&#252;&#360;&#361;&#362;&#363;&#364;&#365;&#366;&#367;&#368;&#369;&#370;&#371;&#431;&#432;&#467;&#468;&#469;&#470;&#471;&#472;&#473;&#474;&#475;&#476;&#532;&#533;&#534;&#535;&#7794;&#7795;&#7796;&#7797;&#7798;&#7799;&#7800;&#7801;&#7802;&#7803;&#7908;&#7909;&#7910;&#7911;&#7912;&#7913;&#7914;&#7915;&#7916;&#7917;&#7918;&#7919;&#7920;&#7921;Vv&#434;&#651;&#7804;&#7805;&#7806;&#7807;Ww&#372;&#373;&#7808;&#7809;&#7810;&#7811;&#7812;&#7813;&#7814;&#7815;&#7816;&#7817;&#7832;Xx&#7818;&#7819;&#7820;&#7821;Yy&#221;&#253;&#255;&#376;&#374;&#375;&#435;&#436;&#562;&#563;&#7822;&#7823;&#7833;&#7922;&#7923;&#7924;&#7925;&#7926;&#7927;&#7928;&#7929;Zz&#377;&#378;&#379;&#380;&#381;&#382;&#437;&#438;&#548;&#549;&#656;&#657;&#7824;&#7825;&#7826;&#7827;&#7828;&#7829;&#7829;', '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>