metanorma-iho 0.0.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3500 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:iho="https://www.metanorma.org/ns/iho" xmlns:mathml="http://www.w3.org/1998/Math/MathML" xmlns:xalan="http://xml.apache.org/xalan" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java" version="1.0">
2
+
3
+ <xsl:output method="xml" encoding="UTF-8" indent="no"/>
4
+
5
+ <xsl:param name="svg_images"/>
6
+ <xsl:variable name="images" select="document($svg_images)"/>
7
+
8
+
9
+
10
+ <xsl:key name="kfn" match="iho:fn[local-name(..) = 'p' or local-name(..) = 'title']" use="@reference"/>
11
+
12
+
13
+
14
+ <xsl:variable name="debug">false</xsl:variable>
15
+ <xsl:variable name="pageWidth" select="'210mm'"/>
16
+ <xsl:variable name="pageHeight" select="'297mm'"/>
17
+
18
+ <xsl:variable name="title-en" select="/iho:iho-standard/iho:bibdata/iho:title[@language = 'en']"/>
19
+ <xsl:variable name="docidentifier" select="/iho:iho-standard/iho:bibdata/iho:docidentifier[@type = 'IHO']"/>
20
+ <xsl:variable name="copyrightText" select="concat('© International Hydrographic Association ', /iho:iho-standard/iho:bibdata/iho:copyright/iho:from ,' – All rights reserved')"/>
21
+
22
+ <xsl:variable name="lang">
23
+ <xsl:call-template name="getLang"/>
24
+ </xsl:variable>
25
+
26
+ <!-- Example:
27
+ <item level="1" id="Foreword" display="true">Foreword</item>
28
+ <item id="term-script" display="false">3.2</item>
29
+ -->
30
+ <xsl:variable name="contents">
31
+ <contents>
32
+ <xsl:apply-templates select="/iho:iho-standard/iho:preface/*" mode="contents"/>
33
+ <!-- <xsl:with-param name="sectionNum" select="'0'"/>
34
+ </xsl:apply-templates> -->
35
+ <xsl:apply-templates select="/iho:iho-standard/iho:sections/*" mode="contents"> <!-- iho:clause[1] [@id = '_scope'] -->
36
+ <!-- <xsl:with-param name="sectionNum" select="'1'"/> -->
37
+ </xsl:apply-templates>
38
+ <!-- [@id = '_normative_references'] -->
39
+ <!-- <xsl:apply-templates select="/iho:iho-standard/iho:bibliography/iho:references[1]" mode="contents">
40
+ <xsl:with-param name="sectionNum" select="'2'"/>
41
+ </xsl:apply-templates> -->
42
+ <!-- @id != '_scope' -->
43
+ <!-- <xsl:apply-templates select="/iho:iho-standard/iho:sections/*[position() &gt; 1]" mode="contents">
44
+ <xsl:with-param name="sectionNumSkew" select="'1'"/>
45
+ </xsl:apply-templates> -->
46
+ <xsl:apply-templates select="/iho:iho-standard/iho:annex" mode="contents"/>
47
+ <xsl:apply-templates select="/iho:iho-standard/iho:bibliography/iho:references[position() &gt; 1]" mode="contents"/> <!-- @id = '_bibliography' -->
48
+
49
+ <xsl:apply-templates select="//iho:figure" mode="contents"/>
50
+
51
+ <xsl:apply-templates select="//iho:table" mode="contents"/>
52
+
53
+ </contents>
54
+ </xsl:variable>
55
+
56
+ <xsl:template match="/">
57
+
58
+ <xsl:variable name="xslfo">
59
+ <fo:root font-family="Helvetica Neue, Cambria Math" font-size="12pt" xml:lang="{$lang}">
60
+ <fo:layout-master-set>
61
+ <!-- cover page -->
62
+ <fo:simple-page-master master-name="cover" page-width="{$pageWidth}" page-height="{$pageHeight}">
63
+ <fo:region-body margin-top="0mm" margin-bottom="5mm" margin-left="0mm" margin-right="5mm"/>
64
+ </fo:simple-page-master>
65
+
66
+ <fo:simple-page-master master-name="first" page-width="{$pageWidth}" page-height="{$pageHeight}">
67
+ <fo:region-body margin-top="25.4mm" margin-bottom="25.4mm" margin-left="25.4mm" margin-right="25.4mm"/>
68
+ <fo:region-before region-name="header" extent="25.4mm"/>
69
+ <fo:region-after region-name="footer-even" extent="25.4mm"/>
70
+ <fo:region-start region-name="left-region" extent="25.4mm"/>
71
+ <fo:region-end region-name="right-region" extent="25.4mm"/>
72
+ </fo:simple-page-master>
73
+ <fo:simple-page-master master-name="odd" page-width="{$pageWidth}" page-height="{$pageHeight}">
74
+ <fo:region-body margin-top="25.4mm" margin-bottom="25.4mm" margin-left="25.4mm" margin-right="25.4mm"/>
75
+ <fo:region-before region-name="header-odd" extent="25.4mm"/>
76
+ <fo:region-after region-name="footer-odd" extent="25.4mm"/>
77
+ <fo:region-start region-name="left-region" extent="25.4mm"/>
78
+ <fo:region-end region-name="right-region" extent="25.4mm"/>
79
+ </fo:simple-page-master>
80
+ <fo:simple-page-master master-name="odd-landscape" page-width="{$pageHeight}" page-height="{$pageWidth}">
81
+ <fo:region-body margin-top="25.4mm" margin-bottom="25.4mm" margin-left="25.4mm" margin-right="25.4mm"/>
82
+ <fo:region-before region-name="header-odd" extent="25.4mm"/>
83
+ <fo:region-after region-name="footer-odd" extent="25.4mm"/>
84
+ <fo:region-start region-name="left-region" extent="25.4mm"/>
85
+ <fo:region-end region-name="right-region" extent="25.4mm"/>
86
+ </fo:simple-page-master>
87
+ <fo:simple-page-master master-name="even" page-width="{$pageWidth}" page-height="{$pageHeight}">
88
+ <fo:region-body margin-top="25.4mm" margin-bottom="25.4mm" margin-left="25.4mm" margin-right="25.4mm"/>
89
+ <fo:region-before region-name="header-even" extent="25.4mm"/>
90
+ <fo:region-after region-name="footer-even" extent="25.4mm"/>
91
+ <fo:region-start region-name="left-region" extent="25.4mm"/>
92
+ <fo:region-end region-name="right-region" extent="25.4mm"/>
93
+ </fo:simple-page-master>
94
+ <fo:simple-page-master master-name="even-landscape" page-width="{$pageHeight}" page-height="{$pageWidth}">
95
+ <fo:region-body margin-top="25.4mm" margin-bottom="25.4mm" margin-left="25.4mm" margin-right="25.4mm"/>
96
+ <fo:region-before region-name="header-even" extent="25.4mm"/>
97
+ <fo:region-after region-name="footer-even" extent="25.4mm"/>
98
+ <fo:region-start region-name="left-region" extent="25.4mm"/>
99
+ <fo:region-end region-name="right-region" extent="25.4mm"/>
100
+ </fo:simple-page-master>
101
+ <!-- Preface pages -->
102
+ <fo:page-sequence-master master-name="preface">
103
+ <fo:repeatable-page-master-alternatives>
104
+ <fo:conditional-page-master-reference master-reference="first" page-position="first"/>
105
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
106
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
107
+ </fo:repeatable-page-master-alternatives>
108
+ </fo:page-sequence-master>
109
+ <!-- Document pages -->
110
+ <fo:page-sequence-master master-name="document">
111
+ <fo:repeatable-page-master-alternatives>
112
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
113
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
114
+ </fo:repeatable-page-master-alternatives>
115
+ </fo:page-sequence-master>
116
+ <fo:page-sequence-master master-name="document-portrait">
117
+ <fo:repeatable-page-master-alternatives>
118
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even"/>
119
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd"/>
120
+ </fo:repeatable-page-master-alternatives>
121
+ </fo:page-sequence-master>
122
+ <fo:page-sequence-master master-name="document-landscape">
123
+ <fo:repeatable-page-master-alternatives>
124
+ <fo:conditional-page-master-reference odd-or-even="even" master-reference="even-landscape"/>
125
+ <fo:conditional-page-master-reference odd-or-even="odd" master-reference="odd-landscape"/>
126
+ </fo:repeatable-page-master-alternatives>
127
+ </fo:page-sequence-master>
128
+ </fo:layout-master-set>
129
+
130
+ <xsl:call-template name="addPDFUAmeta"/>
131
+
132
+ <!-- =========================== -->
133
+ <!-- Cover Page -->
134
+ <fo:page-sequence master-reference="cover">
135
+ <fo:flow flow-name="xsl-region-body">
136
+ <fo:block-container position="absolute" left="14.25mm" top="28.20mm">
137
+ <fo:table table-layout="fixed" width="181.1mm">
138
+ <fo:table-column column-width="26mm"/>
139
+ <fo:table-column column-width="45.3mm"/>
140
+ <fo:table-column column-width="109.8mm"/>
141
+ <fo:table-body>
142
+ <fo:table-row>
143
+ <fo:table-cell><fo:block> </fo:block></fo:table-cell>
144
+ <fo:table-cell>
145
+ <fo:block-container width="45.3mm" height="19.3mm" background-color="rgb(241, 234, 202)" text-align="center" display-align="center" font-weight="bold">
146
+ <fo:block>
147
+ <xsl:value-of select="$docidentifier"/>
148
+ <xsl:text> </xsl:text>
149
+ <xsl:apply-templates select="/iho:iho-standard/iho:bibdata/iho:edition"/>
150
+ </fo:block>
151
+ </fo:block-container>
152
+ </fo:table-cell>
153
+ <fo:table-cell><fo:block> </fo:block></fo:table-cell>
154
+ </fo:table-row>
155
+ <fo:table-row>
156
+ <fo:table-cell display-align="after" text-align="right">
157
+ <fo:block font-size="1">
158
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-IHO))}" width="25.9mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image IHO"/>
159
+ </fo:block>
160
+ </fo:table-cell>
161
+ <fo:table-cell number-columns-spanned="2" border="0.5pt solid rgb(0, 21, 50)">
162
+ <fo:block-container height="154.4mm" text-align="center" display-align="center">
163
+ <fo:block font-size="28pt" font-weight="bold" color="rgb(0, 0, 76)">
164
+ <xsl:value-of select="$title-en"/>
165
+ </fo:block>
166
+ </fo:block-container>
167
+ </fo:table-cell>
168
+ </fo:table-row>
169
+ <fo:table-row>
170
+ <fo:table-cell>
171
+ <fo:block font-size="1">
172
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo-IHO))}" width="25.9mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo IHO"/>
173
+ </fo:block>
174
+ </fo:table-cell>
175
+ <fo:table-cell>
176
+ <fo:block font-size="1">
177
+ <fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Text-IHO))}" width="25.8mm" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image Text IHO"/>
178
+ </fo:block>
179
+ </fo:table-cell>
180
+ <fo:table-cell>
181
+ <fo:block-container width="79.2mm" height="66.3mm" margin-left="30.6mm" background-color="rgb(0, 172, 158)" text-align="right" display-align="after">
182
+ <fo:block font-size="8pt" color="white" margin-left="-30mm" margin-right="5mm" margin-bottom="9mm">
183
+ <xsl:apply-templates select="/iho:iho-standard/iho:boilerplate/iho:feedback-statement"/>
184
+ </fo:block>
185
+ </fo:block-container>
186
+ </fo:table-cell>
187
+ </fo:table-row>
188
+ </fo:table-body>
189
+ </fo:table>
190
+ </fo:block-container>
191
+ </fo:flow>
192
+ </fo:page-sequence>
193
+ <!-- End Cover Page -->
194
+ <!-- =========================== -->
195
+ <!-- =========================== -->
196
+
197
+ <!-- Preface Pages -->
198
+ <fo:page-sequence master-reference="preface" format="i">
199
+ <fo:static-content flow-name="xsl-footnote-separator">
200
+ <fo:block>
201
+ <fo:leader leader-pattern="rule" leader-length="30%"/>
202
+ </fo:block>
203
+ </fo:static-content>
204
+ <xsl:call-template name="insertHeaderFooter">
205
+ <xsl:with-param name="font-weight">normal</xsl:with-param>
206
+ </xsl:call-template>
207
+ <fo:flow flow-name="xsl-region-body">
208
+ <fo:block> </fo:block>
209
+ <fo:block break-after="page"/>
210
+ <fo:block-container margin-left="7.5mm" margin-right="-2mm">
211
+ <fo:block-container margin-left="0mm" margin-right="0mm" border="0.5pt solid black" padding-top="1mm" padding-left="1.8mm" padding-right="1mm">
212
+ <fo:block>
213
+ <xsl:apply-templates select="/iho:iho-standard/iho:boilerplate/*[local-name() != 'feedback-statement']"/>
214
+ </fo:block>
215
+ </fo:block-container>
216
+ </fo:block-container>
217
+
218
+ <fo:block break-after="page"/>
219
+
220
+ <!-- Table of Contents -->
221
+ <fo:block-container margin-right="-12.7mm">
222
+ <fo:block-container margin-right="0mm">
223
+ <fo:block color="rgb(14, 36, 133)" margin-bottom="15.5pt">
224
+ <xsl:variable name="title-toc">
225
+ <xsl:call-template name="getTitle">
226
+ <xsl:with-param name="name" select="'title-toc'"/>
227
+ </xsl:call-template>
228
+ </xsl:variable>
229
+ <xsl:value-of select="$title-toc"/>
230
+ </fo:block>
231
+ <xsl:if test="$debug = 'true'">
232
+ <xsl:text disable-output-escaping="yes">&lt;!--</xsl:text>
233
+ DEBUG
234
+ contents=<xsl:copy-of select="xalan:nodeset($contents)"/>
235
+ <xsl:text disable-output-escaping="yes">--&gt;</xsl:text>
236
+ </xsl:if>
237
+
238
+ <xsl:for-each select="xalan:nodeset($contents)//item[@display = 'true']"><!-- [not(@level = 2 and starts-with(@section, '0'))] skip clause from preface -->
239
+ <fo:block>
240
+ <xsl:if test="@level = 1">
241
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
242
+ </xsl:if>
243
+
244
+ <fo:list-block>
245
+
246
+
247
+
248
+ <xsl:attribute name="provisional-distance-between-starts">
249
+ <xsl:choose>
250
+ <xsl:when test="@level &gt;= 1 and @display-section = 'true' and @root = 'annex' and not(@type = 'annex')">13mm</xsl:when>
251
+ <xsl:when test="@level &gt;= 1 and @display-section = 'true' and not(@type = 'annex')">10mm</xsl:when>
252
+ <!-- <xsl:when test="@level &gt;= 3"><xsl:value-of select="$margin-left * 1.2"/>mm</xsl:when>
253
+ <xsl:when test="@section != '' and not(@display-section = 'false')"><xsl:value-of select="$margin-left"/>mm</xsl:when> -->
254
+ <xsl:otherwise>0mm</xsl:otherwise>
255
+ </xsl:choose>
256
+ </xsl:attribute>
257
+ <fo:list-item>
258
+ <fo:list-item-label end-indent="label-end()">
259
+ <fo:block>
260
+ <xsl:if test="@section and not(@display-section = 'false') and not(@type = 'annex')"> <!-- output below -->
261
+ <xsl:value-of select="@section"/>
262
+ </xsl:if>
263
+ </fo:block>
264
+ </fo:list-item-label>
265
+ <fo:list-item-body start-indent="body-start()">
266
+ <fo:block text-align-last="justify" margin-left="12mm" text-indent="-12mm">
267
+ <fo:basic-link internal-destination="{@id}" fox:alt-text="{text()}">
268
+ <fo:inline>
269
+ <xsl:if test="@type = 'annex'">
270
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
271
+ <xsl:value-of select="@section"/><xsl:text>  </xsl:text>
272
+ </xsl:if>
273
+ <xsl:value-of select="text()"/>
274
+ </fo:inline>
275
+ <fo:inline keep-together.within-line="always">
276
+ <fo:leader font-size="9pt" font-weight="normal" leader-pattern="dots"/>
277
+ <fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
278
+ </fo:inline>
279
+ </fo:basic-link>
280
+ </fo:block>
281
+ </fo:list-item-body>
282
+ </fo:list-item>
283
+ </fo:list-block>
284
+ </fo:block>
285
+
286
+ </xsl:for-each>
287
+ </fo:block-container>
288
+ </fo:block-container>
289
+
290
+ <!-- Foreword, Introduction -->
291
+ <xsl:apply-templates select="/iho:iho-standard/iho:preface/*"/>
292
+
293
+ </fo:flow>
294
+ </fo:page-sequence>
295
+ <!-- End Preface Pages -->
296
+ <!-- =========================== -->
297
+ <!-- =========================== -->
298
+
299
+
300
+ <!-- Document Pages -->
301
+
302
+
303
+
304
+ <fo:page-sequence master-reference="document" initial-page-number="1" format="1" force-page-count="no-force">
305
+ <fo:static-content flow-name="xsl-footnote-separator">
306
+ <fo:block>
307
+ <fo:leader leader-pattern="rule" leader-length="30%"/>
308
+ </fo:block>
309
+ </fo:static-content>
310
+ <xsl:call-template name="insertHeaderFooter"/>
311
+ <fo:flow flow-name="xsl-region-body">
312
+ <fo:block-container>
313
+
314
+ <fo:block font-size="16pt" font-weight="bold" margin-bottom="18pt"><xsl:value-of select="$title-en"/></fo:block>
315
+
316
+ <xsl:apply-templates select="/iho:iho-standard/iho:sections/*"/>
317
+
318
+
319
+
320
+ </fo:block-container>
321
+ </fo:flow>
322
+ </fo:page-sequence>
323
+
324
+ <xsl:if test="/iho:iho-standard/iho:annex">
325
+ <fo:page-sequence master-reference="document">
326
+ <fo:static-content flow-name="xsl-footnote-separator">
327
+ <fo:block>
328
+ <fo:leader leader-pattern="rule" leader-length="30%"/>
329
+ </fo:block>
330
+ </fo:static-content>
331
+ <xsl:call-template name="insertHeaderFooter"/>
332
+ <fo:flow flow-name="xsl-region-body">
333
+ <fo:block-container>
334
+ <xsl:apply-templates select="/iho:iho-standard/iho:annex"/>
335
+ </fo:block-container>
336
+ </fo:flow>
337
+ </fo:page-sequence>
338
+ </xsl:if>
339
+ <!-- =========================== -->
340
+ <!-- End Document Pages -->
341
+ <!-- =========================== -->
342
+ <!-- =========================== -->
343
+
344
+ </fo:root>
345
+ </xsl:variable>
346
+
347
+ <xsl:apply-templates select="xalan:nodeset($xslfo)" mode="step2"/>
348
+
349
+ </xsl:template>
350
+
351
+ <!-- ============================= -->
352
+ <!-- CONTENTS -->
353
+ <!-- ============================= -->
354
+ <xsl:template match="node()" mode="contents">
355
+ <xsl:param name="sectionNum"/>
356
+ <xsl:param name="sectionNumSkew"/>
357
+ <xsl:apply-templates mode="contents">
358
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
359
+ <xsl:with-param name="sectionNumSkew" select="$sectionNumSkew"/>
360
+ </xsl:apply-templates>
361
+ </xsl:template>
362
+
363
+ <!-- calculate main section number (1,2,3) and pass it deep into templates -->
364
+ <!-- it's necessary, because there is itu:bibliography/itu:references from other section, but numbering should be sequental -->
365
+ <xsl:template match="iho:iho-standard/iho:sections/*" mode="contents">
366
+ <xsl:param name="sectionNum"/>
367
+ <xsl:param name="sectionNumSkew" select="0"/>
368
+ <xsl:variable name="sectionNum_">
369
+ <xsl:choose>
370
+ <xsl:when test="$sectionNum"><xsl:value-of select="$sectionNum"/></xsl:when>
371
+ <xsl:when test="$sectionNumSkew != 0">
372
+ <xsl:variable name="number"><xsl:number count="*"/></xsl:variable>
373
+ <xsl:value-of select="$number + $sectionNumSkew"/>
374
+ </xsl:when>
375
+ <xsl:otherwise>
376
+ <xsl:number count="*"/>
377
+ </xsl:otherwise>
378
+ </xsl:choose>
379
+ </xsl:variable>
380
+ <xsl:apply-templates mode="contents">
381
+ <xsl:with-param name="sectionNum" select="$sectionNum_"/>
382
+ </xsl:apply-templates>
383
+ </xsl:template>
384
+
385
+ <xsl:template match="iho:annex" mode="contents">
386
+ <xsl:param name="sectionNum"/>
387
+ <xsl:variable name="id" select="@id"/>
388
+ <xsl:variable name="level">1</xsl:variable>
389
+ <xsl:variable name="section">
390
+ <xsl:choose>
391
+ <xsl:when test="@obligation = 'informative'">
392
+ <xsl:variable name="title-appendix">
393
+ <xsl:call-template name="getTitle">
394
+ <xsl:with-param name="name" select="'title-appendix'"/>
395
+ </xsl:call-template>
396
+ </xsl:variable>
397
+ <xsl:value-of select="$title-appendix"/>
398
+ <xsl:number format="1" level="any" count="iho:annex[@obligation = 'informative']"/>
399
+ </xsl:when>
400
+ <xsl:otherwise>
401
+ <xsl:variable name="title-annex">
402
+ <xsl:call-template name="getTitle">
403
+ <xsl:with-param name="name" select="'title-annex'"/>
404
+ </xsl:call-template>
405
+ </xsl:variable>
406
+ <xsl:value-of select="$title-annex"/>
407
+ <xsl:number format="A" level="any" count="iho:annex[not(@obligation = 'informative')]"/>
408
+ </xsl:otherwise>
409
+ </xsl:choose>
410
+ </xsl:variable>
411
+ <xsl:variable name="display">true</xsl:variable>
412
+ <xsl:variable name="display-section">true</xsl:variable>
413
+ <xsl:variable name="type"><xsl:value-of select="local-name()"/></xsl:variable>
414
+ <xsl:variable name="root">annex</xsl:variable>
415
+ <item id="{$id}" level="{$level}" section="{$section}" display-section="{$display-section}" display="{$display}" type="{$type}" root="{$root}">
416
+ <xsl:attribute name="addon">
417
+ <xsl:value-of select="../@obligation"/>
418
+ </xsl:attribute>
419
+ <xsl:value-of select="iho:title"/>
420
+ </item>
421
+ <xsl:apply-templates mode="contents">
422
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
423
+ </xsl:apply-templates>
424
+ </xsl:template>
425
+
426
+
427
+ <!-- Any node with title element - clause, definition,... except annex ! (see processing above) -->
428
+ <xsl:template match="iho:title[not(parent::iho:annex)] | iho:preferred" mode="contents">
429
+ <xsl:param name="sectionNum"/>
430
+
431
+ <xsl:variable name="id">
432
+ <xsl:call-template name="getId"/>
433
+ </xsl:variable>
434
+
435
+ <xsl:variable name="level">
436
+ <xsl:call-template name="getLevel"/>
437
+ </xsl:variable>
438
+
439
+ <xsl:variable name="section">
440
+ <xsl:call-template name="getSection">
441
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
442
+ </xsl:call-template>
443
+ </xsl:variable>
444
+
445
+ <xsl:variable name="display">
446
+ <xsl:choose>
447
+ <xsl:when test="ancestor::iho:bibitem">false</xsl:when>
448
+ <xsl:when test="ancestor::iho:term">false</xsl:when>
449
+ <xsl:when test="ancestor::iho:annex and $level &gt;= 3">false</xsl:when>
450
+ <xsl:when test="$level &lt;= 2">true</xsl:when>
451
+ <xsl:otherwise>false</xsl:otherwise>
452
+ </xsl:choose>
453
+ </xsl:variable>
454
+
455
+ <xsl:variable name="display-section">
456
+ <xsl:choose>
457
+ <xsl:when test="ancestor::iho:preface">false</xsl:when>
458
+ <!-- <xsl:when test="ancestor::iho:annex">false</xsl:when> -->
459
+ <xsl:otherwise>true</xsl:otherwise>
460
+ </xsl:choose>
461
+ </xsl:variable>
462
+
463
+ <xsl:variable name="type">
464
+ <xsl:value-of select="local-name(..)"/>
465
+ </xsl:variable>
466
+
467
+ <xsl:variable name="root">
468
+ <xsl:choose>
469
+ <xsl:when test="ancestor::iho:annex">annex</xsl:when>
470
+ </xsl:choose>
471
+ </xsl:variable>
472
+
473
+ <item id="{$id}" level="{$level}" section="{$section}" display-section="{$display-section}" display="{$display}" type="{$type}" root="{$root}">
474
+ <xsl:attribute name="addon">
475
+ <xsl:if test="local-name(..) = 'annex'"><xsl:value-of select="../@obligation"/></xsl:if>
476
+ </xsl:attribute>
477
+ <xsl:value-of select="."/>
478
+ </item>
479
+
480
+ <xsl:apply-templates mode="contents">
481
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
482
+ </xsl:apply-templates>
483
+ </xsl:template>
484
+
485
+
486
+ <xsl:template match="iho:figure" mode="contents">
487
+ <item level="" id="{@id}" display="false">
488
+ <xsl:attribute name="section">
489
+ <xsl:call-template name="getFigureNumber"/>
490
+ </xsl:attribute>
491
+ </item>
492
+ </xsl:template>
493
+
494
+ <xsl:template match="iho:table" mode="contents">
495
+ <xsl:param name="sectionNum"/>
496
+ <xsl:variable name="annex-id" select="ancestor::iho:annex/@id"/>
497
+ <item level="" id="{@id}" display="false" type="table">
498
+ <xsl:attribute name="section">
499
+ <xsl:variable name="title-table">
500
+ <xsl:call-template name="getTitle">
501
+ <xsl:with-param name="name" select="'title-table'"/>
502
+ </xsl:call-template>
503
+ </xsl:variable>
504
+ <xsl:value-of select="$title-table"/>
505
+ <xsl:call-template name="getTableNumber"/>
506
+ </xsl:attribute>
507
+ <xsl:value-of select="iho:name/text()"/>
508
+ </item>
509
+ </xsl:template>
510
+
511
+ <xsl:template match="iho:formula" mode="contents">
512
+ <item level="" id="{@id}" display="false">
513
+ <xsl:attribute name="section">
514
+ <xsl:variable name="title-formula">
515
+ <xsl:call-template name="getTitle">
516
+ <xsl:with-param name="name" select="'title-formula'"/>
517
+ </xsl:call-template>
518
+ </xsl:variable>
519
+ <xsl:value-of select="$title-formula"/><xsl:number format="(A.1)" level="multiple" count="iho:annex | iho:formula"/>
520
+ </xsl:attribute>
521
+ </item>
522
+ </xsl:template>
523
+
524
+ <xsl:template match="iho:li" mode="contents">
525
+ <xsl:param name="sectionNum"/>
526
+ <item level="" id="{@id}" display="false" type="li">
527
+ <xsl:attribute name="section">
528
+ <xsl:call-template name="getListItemFormat"/>
529
+ </xsl:attribute>
530
+ <xsl:attribute name="parent_section">
531
+ <xsl:for-each select="ancestor::*[not(local-name() = 'p' or local-name() = 'ol')][1]">
532
+ <xsl:call-template name="getSection">
533
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
534
+ </xsl:call-template>
535
+ </xsl:for-each>
536
+ </xsl:attribute>
537
+ </item>
538
+ <xsl:apply-templates mode="contents">
539
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
540
+ </xsl:apply-templates>
541
+ </xsl:template>
542
+
543
+ <xsl:template match="iho:references/iho:bibitem" mode="contents"/>
544
+ <!-- ============================= -->
545
+ <!-- END CONTENTS -->
546
+ <!-- ============================= -->
547
+ <!-- ============================= -->
548
+
549
+
550
+
551
+
552
+ <xsl:template match="/iho:iho-standard/iho:bibdata/iho:edition">
553
+ <xsl:variable name="title-edition">
554
+ <xsl:call-template name="getTitle">
555
+ <xsl:with-param name="name" select="'title-edition'"/>
556
+ </xsl:call-template>
557
+ </xsl:variable>
558
+ <xsl:value-of select="$title-edition"/>
559
+ <xsl:apply-templates/>
560
+ </xsl:template>
561
+
562
+ <xsl:template match="iho:feedback-statement//iho:br" priority="2">
563
+ <fo:block/>
564
+ </xsl:template>
565
+
566
+
567
+ <!-- for pass the paremeter 'sectionNum' over templates, like 'tunnel' parameter in XSLT 2.0 -->
568
+ <xsl:template match="node()">
569
+ <xsl:param name="sectionNum"/>
570
+ <xsl:param name="sectionNumSkew"/>
571
+ <xsl:apply-templates>
572
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
573
+ <xsl:with-param name="sectionNumSkew" select="$sectionNumSkew"/>
574
+ </xsl:apply-templates>
575
+ </xsl:template>
576
+
577
+ <!-- clause, terms, clause, ...-->
578
+ <xsl:template match="iho:iho-standard/iho:sections/*">
579
+ <xsl:param name="sectionNum"/>
580
+ <xsl:param name="sectionNumSkew" select="0"/>
581
+ <fo:block>
582
+ <!-- iho:sections/iho:clause | iho:sections/iho:terms | iho:sections/iho:definitions -->
583
+ <!-- <xsl:variable name="pos"><xsl:number count="*"/></xsl:variable>
584
+ <xsl:if test="$pos &gt;= 2">
585
+ <xsl:attribute name="space-before">18pt</xsl:attribute>
586
+ </xsl:if> -->
587
+ <!-- pos=<xsl:value-of select="$pos" /> -->
588
+ <xsl:variable name="sectionNum_">
589
+ <xsl:choose>
590
+ <xsl:when test="$sectionNum"><xsl:value-of select="$sectionNum"/></xsl:when>
591
+ <xsl:when test="$sectionNumSkew != 0">
592
+ <xsl:variable name="number"><xsl:number count="*"/></xsl:variable> <!--iho:sections/iho:clause | iho:sections/iho:terms | iho:sections/iho:definitions -->
593
+ <xsl:value-of select="$number + $sectionNumSkew"/>
594
+ </xsl:when>
595
+ <xsl:otherwise>
596
+ <xsl:number count="*"/>
597
+ </xsl:otherwise>
598
+ </xsl:choose>
599
+ </xsl:variable>
600
+ <!-- <xsl:if test="not(iho:title)">
601
+ <fo:block margin-top="3pt" margin-bottom="12pt">
602
+ <xsl:value-of select="$sectionNum_"/><xsl:number format=".1 " level="multiple" count="iho:clause" />
603
+ </fo:block>
604
+ </xsl:if> -->
605
+ <xsl:apply-templates>
606
+ <xsl:with-param name="sectionNum" select="$sectionNum_"/>
607
+ </xsl:apply-templates>
608
+ </fo:block>
609
+ </xsl:template>
610
+
611
+
612
+ <!-- Foreword, Introduction -->
613
+ <xsl:template match="iho:iho-standard/iho:preface/*">
614
+ <fo:block break-after="page"/>
615
+ <xsl:apply-templates/>
616
+ </xsl:template>
617
+
618
+ <xsl:template match="iho:clause//iho:clause[not(iho:title)]">
619
+ <xsl:param name="sectionNum"/>
620
+ <xsl:variable name="section">
621
+ <xsl:call-template name="getSection">
622
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
623
+ </xsl:call-template>
624
+ </xsl:variable>
625
+
626
+ <fo:block margin-top="3pt"><!-- margin-bottom="6pt" -->
627
+ <fo:inline font-weight="bold" padding-right="3mm">
628
+ <xsl:value-of select="$section"/><!-- <xsl:number format=".1 " level="multiple" count="iho:clause/iho:clause" /> -->
629
+ </fo:inline>
630
+ <xsl:apply-templates>
631
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
632
+ <xsl:with-param name="inline" select="'true'"/>
633
+ </xsl:apply-templates>
634
+ </fo:block>
635
+ </xsl:template>
636
+
637
+
638
+
639
+ <xsl:template match="iho:title">
640
+ <xsl:param name="sectionNum"/>
641
+
642
+ <xsl:variable name="parent-name" select="local-name(..)"/>
643
+ <xsl:variable name="references_num_current">
644
+ <xsl:number level="any" count="iho:references"/>
645
+ </xsl:variable>
646
+
647
+ <xsl:variable name="id">
648
+ <xsl:call-template name="getId"/>
649
+ </xsl:variable>
650
+
651
+ <xsl:variable name="level">
652
+ <xsl:call-template name="getLevel"/>
653
+ </xsl:variable>
654
+
655
+ <xsl:variable name="section">
656
+ <xsl:call-template name="getSection">
657
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
658
+ </xsl:call-template>
659
+ </xsl:variable>
660
+
661
+ <xsl:variable name="font-size">
662
+ <xsl:choose>
663
+ <xsl:when test="$level = 1">13pt</xsl:when>
664
+ <xsl:when test="$level = 2">12pt</xsl:when>
665
+ <xsl:when test="$level &gt;= 3">11pt</xsl:when>
666
+ <!-- <xsl:when test="ancestor::iho:annex and $level = 2">13pt</xsl:when>
667
+ <xsl:when test="ancestor::iho:annex and $level = 3">12pt</xsl:when>
668
+ <xsl:when test="ancestor::iho:preface">16pt</xsl:when>
669
+ <xsl:when test="$level = 2">12pt</xsl:when>
670
+ <xsl:when test="$level &gt;= 3">11pt</xsl:when> -->
671
+ <xsl:otherwise>12pt</xsl:otherwise>
672
+ </xsl:choose>
673
+ </xsl:variable>
674
+
675
+ <xsl:variable name="element-name">
676
+ <xsl:choose>
677
+ <xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
678
+ <xsl:otherwise>fo:block</xsl:otherwise>
679
+ </xsl:choose>
680
+ </xsl:variable>
681
+
682
+ <xsl:choose>
683
+ <xsl:when test="$parent-name = 'annex'">
684
+ <fo:block id="{$id}" font-size="13pt" font-weight="bold" text-align="center" margin-bottom="12pt" keep-with-next="always">
685
+ <xsl:value-of select="$section"/>
686
+ <xsl:value-of select="$linebreak"/>
687
+ <!-- <xsl:if test=" ../@obligation">
688
+ <xsl:value-of select="$linebreak"/>
689
+ <fo:inline font-weight="normal">(<xsl:value-of select="../@obligation"/>)</fo:inline>
690
+ </xsl:if> -->
691
+ <xsl:apply-templates/>
692
+ </fo:block>
693
+ </xsl:when>
694
+ <xsl:when test="$parent-name = 'references' and $references_num_current != 1"> <!-- Bibliography -->
695
+ <fo:block id="{$id}" font-size="16pt" font-weight="bold" text-align="center" margin-top="6pt" margin-bottom="36pt" keep-with-next="always">
696
+ <xsl:apply-templates/>
697
+ </fo:block>
698
+ </xsl:when>
699
+
700
+ <xsl:otherwise>
701
+ <xsl:element name="{$element-name}">
702
+ <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
703
+ <xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
704
+ <!-- <xsl:attribute name="font-weight">bold</xsl:attribute> -->
705
+ <xsl:attribute name="space-before"> <!-- margin-top -->
706
+ <xsl:choose>
707
+ <xsl:when test="$level = 1">13.5pt</xsl:when>
708
+ <xsl:when test="$level &gt;= 2">3pt</xsl:when>
709
+ <xsl:when test="ancestor::iho:preface">8pt</xsl:when>
710
+ <xsl:when test="$level = 2 and ancestor::iho:annex">18pt</xsl:when>
711
+ <xsl:when test="$level = 1">18pt</xsl:when>
712
+ <xsl:when test="$level = ''">6pt</xsl:when><!-- 13.5pt -->
713
+ <xsl:otherwise>12pt</xsl:otherwise>
714
+ </xsl:choose>
715
+ </xsl:attribute>
716
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
717
+
718
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
719
+
720
+
721
+ <!-- DEBUG level=<xsl:value-of select="$level"/>x -->
722
+ <!-- section=<xsl:value-of select="$sectionNum"/> -->
723
+ <!-- <xsl:if test="$sectionNum"> -->
724
+ <xsl:value-of select="$section"/>
725
+ <xsl:if test="$section != ''">
726
+ <xsl:choose>
727
+ <xsl:when test="$level = 2">
728
+ <fo:inline padding-right="2mm"> </fo:inline>
729
+ </xsl:when>
730
+ <xsl:when test="$level = 3">
731
+ <fo:inline padding-right="2mm"> </fo:inline>
732
+ </xsl:when>
733
+ <xsl:otherwise>
734
+ <fo:inline padding-right="3mm"> </fo:inline>
735
+ </xsl:otherwise>
736
+ </xsl:choose>
737
+ </xsl:if>
738
+
739
+ <xsl:apply-templates/>
740
+ </xsl:element>
741
+
742
+ <xsl:if test="$element-name = 'fo:inline' and not(following-sibling::iho:p)">
743
+ <fo:block> <!-- margin-bottom="12pt" -->
744
+ <xsl:value-of select="$linebreak"/>
745
+ </fo:block>
746
+ </xsl:if>
747
+ </xsl:otherwise>
748
+ </xsl:choose>
749
+
750
+ </xsl:template>
751
+
752
+ <xsl:template match="iho:p">
753
+ <xsl:param name="inline" select="'false'"/>
754
+ <xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/>
755
+ <xsl:variable name="element-name">
756
+ <xsl:choose>
757
+ <xsl:when test="$inline = 'true'">fo:inline</xsl:when>
758
+ <xsl:when test="../@inline-header = 'true' and $previous-element = 'title'">fo:inline</xsl:when> <!-- first paragraph after inline title -->
759
+ <xsl:when test="local-name(..) = 'admonition'">fo:inline</xsl:when>
760
+ <xsl:otherwise>fo:block</xsl:otherwise>
761
+ </xsl:choose>
762
+ </xsl:variable>
763
+ <xsl:element name="{$element-name}">
764
+ <xsl:attribute name="text-align">
765
+ <xsl:choose>
766
+ <xsl:when test="ancestor::iho:quote">justify</xsl:when>
767
+ <xsl:when test="ancestor::iho:feedback-statement">right</xsl:when>
768
+ <xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
769
+ <xsl:when test="ancestor::iho:td/@align"><xsl:value-of select="ancestor::iho:td/@align"/></xsl:when>
770
+ <xsl:when test="ancestor::iho:th/@align"><xsl:value-of select="ancestor::iho:th/@align"/></xsl:when>
771
+ <xsl:otherwise>left</xsl:otherwise>
772
+ </xsl:choose>
773
+ </xsl:attribute>
774
+ <xsl:attribute name="space-after">12pt</xsl:attribute>
775
+ <xsl:if test="parent::iho:dd">
776
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
777
+ </xsl:if>
778
+ <xsl:if test="ancestor::*[2][local-name() = 'license-statement'] and not(following-sibling::iho:p)">
779
+ <xsl:attribute name="space-after">0pt</xsl:attribute>
780
+ </xsl:if>
781
+ <xsl:attribute name="line-height">115%</xsl:attribute>
782
+ <!-- <xsl:attribute name="border">1pt solid red</xsl:attribute> -->
783
+
784
+ <xsl:if test=".//iho:fn">
785
+ <xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
786
+ </xsl:if>
787
+
788
+ <xsl:apply-templates/>
789
+ </xsl:element>
790
+ <xsl:if test="$element-name = 'fo:inline' and not($inline = 'true') and not(local-name(..) = 'admonition')">
791
+ <fo:block margin-bottom="12pt">
792
+ <!-- <xsl:if test="ancestor::iho:annex">
793
+ <xsl:attribute name="margin-bottom">0</xsl:attribute>
794
+ </xsl:if> -->
795
+ <xsl:value-of select="$linebreak"/>
796
+ </fo:block>
797
+ </xsl:if>
798
+ <xsl:if test="$inline = 'true'">
799
+ <fo:block> </fo:block>
800
+ </xsl:if>
801
+ </xsl:template>
802
+
803
+ <!--
804
+ <fn reference="1">
805
+ <p id="_8e5cf917-f75a-4a49-b0aa-1714cb6cf954">Formerly denoted as 15 % (m/m).</p>
806
+ </fn>
807
+ -->
808
+
809
+ <xsl:variable name="p_fn">
810
+ <!-- <xsl:for-each select="//iho:p/iho:fn[generate-id(.)=generate-id(key('kfn',@reference)[1])]"> -->
811
+ <xsl:for-each select="//iho:fn[local-name(..) = 'p' or local-name(..) = 'title'][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
812
+ <!-- copy unique fn -->
813
+ <fn gen_id="{generate-id(.)}">
814
+ <xsl:copy-of select="@*"/>
815
+ <xsl:copy-of select="node()"/>
816
+ </fn>
817
+ </xsl:for-each>
818
+ </xsl:variable>
819
+
820
+ <!-- iho:p/iho:fn -->
821
+ <xsl:template match="iho:fn[local-name(..) = 'p' or local-name(..) = 'title']" priority="2">
822
+ <xsl:variable name="gen_id" select="generate-id(.)"/>
823
+ <xsl:variable name="reference" select="@reference"/>
824
+ <xsl:variable name="number">
825
+ <!-- <xsl:number level="any" count="iho:p/iho:fn"/> -->
826
+ <xsl:value-of select="count(xalan:nodeset($p_fn)//fn[@reference = $reference]/preceding-sibling::fn) + 1"/>
827
+ </xsl:variable>
828
+ <xsl:choose>
829
+ <xsl:when test="xalan:nodeset($p_fn)//fn[@gen_id = $gen_id]">
830
+ <fo:footnote>
831
+ <fo:inline font-size="70%" keep-with-previous.within-line="always" vertical-align="super"> <!-- -->
832
+ <fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
833
+ <!-- <xsl:value-of select="@reference"/> -->
834
+ <xsl:value-of select="$number + count(//iho:bibitem[ancestor::iho:references[@id='_normative_references']]/iho:note)"/>
835
+ </fo:basic-link>
836
+ </fo:inline>
837
+ <fo:footnote-body>
838
+ <fo:block font-size="10pt" margin-bottom="12pt">
839
+ <fo:inline id="footnote_{@reference}_{$number}" font-size="60%" vertical-align="super" keep-with-next.within-line="always" padding-right="1mm"> <!-- font-size="60%" alignment-baseline="hanging" -->
840
+ <xsl:value-of select="$number + count(//iho:bibitem[ancestor::iho:references[@id='_normative_references']]/iho:note)"/>
841
+ </fo:inline>
842
+ <xsl:for-each select="iho:p">
843
+ <xsl:apply-templates/>
844
+ </xsl:for-each>
845
+ </fo:block>
846
+ </fo:footnote-body>
847
+ </fo:footnote>
848
+ </xsl:when>
849
+ <xsl:otherwise>
850
+ <fo:inline font-size="60%" keep-with-previous.within-line="always" vertical-align="super">
851
+ <fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
852
+ <xsl:value-of select="$number + count(//iho:bibitem/iho:note)"/>
853
+ </fo:basic-link>
854
+ </fo:inline>
855
+ </xsl:otherwise>
856
+ </xsl:choose>
857
+ </xsl:template>
858
+
859
+ <xsl:template match="iho:p/iho:fn/iho:p">
860
+ <xsl:apply-templates/>
861
+ </xsl:template>
862
+
863
+
864
+ <xsl:template match="iho:figure">
865
+ <fo:block-container id="{@id}">
866
+ <fo:block>
867
+ <xsl:apply-templates/>
868
+ </fo:block>
869
+ <xsl:call-template name="fn_display_figure"/>
870
+ <xsl:for-each select="iho:note//iho:p">
871
+ <xsl:call-template name="note"/>
872
+ </xsl:for-each>
873
+ <fo:block font-size="11pt" font-weight="bold" text-align="center" margin-top="6pt" margin-bottom="6pt" keep-with-previous="always">
874
+ <xsl:call-template name="getFigureNumber"/>
875
+ <xsl:if test="iho:name">
876
+ <xsl:if test="not(local-name(..) = 'figure') and not(ancestor::iho:example)">
877
+ <xsl:text> — </xsl:text>
878
+ </xsl:if>
879
+ <xsl:apply-templates select="iho:name" mode="figure_name"/>
880
+ </xsl:if>
881
+ </fo:block>
882
+ </fo:block-container>
883
+ </xsl:template>
884
+
885
+ <xsl:template match="iho:figure/iho:name" mode="figure_name">
886
+ <xsl:apply-templates/>
887
+ </xsl:template>
888
+
889
+ <xsl:template match="iho:figure/iho:name"/>
890
+ <xsl:template match="iho:figure/iho:fn" priority="2"/>
891
+ <xsl:template match="iho:figure/iho:note"/>
892
+
893
+ <xsl:template match="iho:image">
894
+ <fo:block text-align="center">
895
+ <xsl:variable name="src">
896
+ <xsl:choose>
897
+ <xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
898
+ <xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
899
+ </xsl:when>
900
+ <xsl:otherwise>
901
+ <xsl:value-of select="@src"/>
902
+ </xsl:otherwise>
903
+ </xsl:choose>
904
+ </xsl:variable>
905
+ <fo:external-graphic src="{$src}" width="100%" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image {@alt}"/> <!-- src="{@src}" -->
906
+ </fo:block>
907
+ </xsl:template>
908
+
909
+ <xsl:template name="getFigureNumber">
910
+ <xsl:variable name="title-figure">
911
+ <xsl:call-template name="getTitle">
912
+ <xsl:with-param name="name" select="'title-figure'"/>
913
+ </xsl:call-template>
914
+ </xsl:variable>
915
+ <xsl:choose>
916
+ <xsl:when test="ancestor::iho:annex">
917
+ <xsl:choose>
918
+ <xsl:when test="local-name(..) = 'figure'">
919
+ <xsl:number format="a) "/>
920
+ </xsl:when>
921
+ <xsl:otherwise>
922
+ <xsl:value-of select="$title-figure"/>
923
+
924
+ <xsl:variable name="annex_id" select="ancestor::iho:annex[1]/@id"/>
925
+ <xsl:choose>
926
+ <xsl:when test="ancestor::iho:annex/@obligation = 'informative'">
927
+ <xsl:number format="1." count="iho:annex[@obligation = 'informative']"/>
928
+ <xsl:number format="1" level="any" count="iho:figure[ancestor::iho:annex[@id = $annex_id]]"/>
929
+ <!-- <xsl:number format="1.1" level="multiple" count="iho:annex[@obligation = 'informative'] | iho:figure"/> -->
930
+ </xsl:when>
931
+ <xsl:otherwise>
932
+ <xsl:number format="A." level="any" count="iho:annex[not(@obligation = 'informative')]"/>
933
+ <xsl:number format="1" level="any" count="iho:figure[ancestor::iho:annex[@id = $annex_id]]"/>
934
+ <!-- <xsl:number format="A.1" level="multiple" count="iho:annex[not(@obligation = 'informative')] | iho:figure"/> -->
935
+ </xsl:otherwise>
936
+ </xsl:choose>
937
+ </xsl:otherwise>
938
+ </xsl:choose>
939
+ </xsl:when>
940
+ <xsl:when test="ancestor::iho:example"/>
941
+ <xsl:otherwise>
942
+ <xsl:value-of select="$title-figure"/><xsl:number format="1" level="any" count="iho:figure"/>
943
+ </xsl:otherwise>
944
+ </xsl:choose>
945
+ </xsl:template>
946
+
947
+ <xsl:template match="iho:note/iho:p" name="note">
948
+ <fo:block font-size="11pt" margin-top="8pt" margin-bottom="12pt" text-align="justify">
949
+ <xsl:if test="ancestor::iho:td">
950
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
951
+ </xsl:if>
952
+ <xsl:variable name="claims_id" select="ancestor::iho:clause[1]/@id"/>
953
+ <fo:inline font-size="11pt" padding-right="2mm">
954
+ <xsl:variable name="title-note">
955
+ <xsl:call-template name="getTitle">
956
+ <xsl:with-param name="name" select="'title-note'"/>
957
+ </xsl:call-template>
958
+ </xsl:variable>
959
+ <xsl:value-of select="$title-note"/>
960
+ <xsl:if test="count(ancestor::iho:clause[1]//iho:note) &gt; 1">
961
+ <xsl:number count="iho:note[ancestor::iho:clause[@id = $claims_id]]" level="any"/>
962
+ </xsl:if>
963
+ </fo:inline>
964
+ <xsl:apply-templates/>
965
+ </fo:block>
966
+ </xsl:template>
967
+
968
+
969
+ <xsl:template match="iho:ul | iho:ol">
970
+ <fo:list-block provisional-distance-between-starts="6mm">
971
+ <xsl:apply-templates/>
972
+ </fo:list-block>
973
+ <xsl:for-each select="./iho:note//iho:p">
974
+ <xsl:call-template name="note"/>
975
+ </xsl:for-each>
976
+ </xsl:template>
977
+
978
+ <xsl:template match="iho:ul//iho:note | iho:ol//iho:note"/>
979
+
980
+ <xsl:template match="iho:li">
981
+ <fo:list-item id="{@id}" margin-bottom="12pt">
982
+ <fo:list-item-label end-indent="label-end()">
983
+ <fo:block line-height="115%">
984
+ <xsl:call-template name="getListItemFormat"/>
985
+ </fo:block>
986
+ </fo:list-item-label>
987
+ <fo:list-item-body start-indent="body-start()">
988
+ <xsl:apply-templates/>
989
+ <xsl:apply-templates select=".//iho:note" mode="process"/>
990
+ </fo:list-item-body>
991
+ </fo:list-item>
992
+ </xsl:template>
993
+
994
+ <xsl:template match="iho:li//iho:p//text()">
995
+ <xsl:choose>
996
+ <xsl:when test="contains(., '&#9;')">
997
+ <fo:inline white-space="pre"><xsl:value-of select="."/></fo:inline>
998
+ </xsl:when>
999
+ <xsl:otherwise>
1000
+ <xsl:value-of select="."/>
1001
+ </xsl:otherwise>
1002
+ </xsl:choose>
1003
+ </xsl:template>
1004
+
1005
+ <xsl:template match="iho:termsource">
1006
+ <fo:block margin-bottom="12pt">
1007
+ <!-- Example:[SOURCE: [3]] -->
1008
+ <fo:basic-link internal-destination="{iho:origin/@bibitemid}" fox:alt-text="{iho:origin/@citeas}">
1009
+ <xsl:text>[</xsl:text>
1010
+ <xsl:variable name="title-source">
1011
+ <xsl:call-template name="getTitle">
1012
+ <xsl:with-param name="name" select="'title-source'"/>
1013
+ </xsl:call-template>
1014
+ </xsl:variable>
1015
+ <xsl:value-of select="$title-source"/>
1016
+ <xsl:text>: </xsl:text>
1017
+ <fo:inline color="blue" text-decoration="underline"><xsl:value-of select="iho:origin/@citeas"/></fo:inline>
1018
+
1019
+ <xsl:apply-templates select="iho:origin/iho:localityStack"/>
1020
+
1021
+ </fo:basic-link>
1022
+ <xsl:apply-templates select="iho:modification"/>
1023
+ <xsl:text>]</xsl:text>
1024
+ </fo:block>
1025
+ </xsl:template>
1026
+
1027
+ <xsl:template match="iho:admonition">
1028
+ <fo:block-container border="0.5pt solid rgb(79, 129, 189)" color="rgb(79, 129, 189)" margin-left="16mm" margin-right="16mm" margin-bottom="12pt">
1029
+ <fo:block-container margin-left="0mm" margin-right="0mm" padding="2mm" padding-top="3mm">
1030
+ <fo:block font-size="11pt" margin-bottom="6pt" font-weight="bold" font-style="italic" text-align="center">
1031
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(@type))"/>
1032
+ </fo:block>
1033
+ <fo:block font-style="italic">
1034
+ <xsl:apply-templates/>
1035
+ </fo:block>
1036
+ </fo:block-container>
1037
+ </fo:block-container>
1038
+ </xsl:template>
1039
+
1040
+ <xsl:template match="iho:formula">
1041
+ <fo:block id="{@id}">
1042
+ <xsl:apply-templates/>
1043
+ </fo:block>
1044
+ </xsl:template>
1045
+
1046
+ <xsl:template match="iho:formula/iho:dt/iho:stem">
1047
+ <fo:inline>
1048
+ <xsl:apply-templates/>
1049
+ </fo:inline>
1050
+ </xsl:template>
1051
+
1052
+ <xsl:template match="iho:formula/iho:stem">
1053
+ <fo:block margin-top="6pt" margin-bottom="12pt" text-align="center">
1054
+ <xsl:apply-templates/>
1055
+ </fo:block>
1056
+ </xsl:template>
1057
+
1058
+ <xsl:template match="iho:quote">
1059
+ <fo:block margin-left="12.5mm" margin-right="14mm">
1060
+ <xsl:apply-templates select=".//iho:p"/>
1061
+ </fo:block>
1062
+ <xsl:if test="iho:author or iho:source">
1063
+ <fo:block text-align="right">
1064
+ <xsl:if test="iho:author">
1065
+ <!-- — ISO, ISO 7301:2011, Clause 1 -->
1066
+ <xsl:text>— </xsl:text><xsl:value-of select="iho:author"/>
1067
+ </xsl:if>
1068
+ <xsl:if test="iho:source">
1069
+ <xsl:text>, </xsl:text>
1070
+ <xsl:apply-templates select="iho:source"/>
1071
+ </xsl:if>
1072
+ </fo:block>
1073
+ </xsl:if>
1074
+ </xsl:template>
1075
+
1076
+ <xsl:template match="iho:source">
1077
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
1078
+ <xsl:value-of select="@citeas"/> <!-- disable-output-escaping="yes" -->
1079
+ <xsl:apply-templates select="iho:localityStack"/>
1080
+ </fo:basic-link>
1081
+ </xsl:template>
1082
+
1083
+
1084
+ <xsl:template match="iho:xref">
1085
+ <xsl:param name="sectionNum"/>
1086
+
1087
+ <xsl:variable name="target" select="normalize-space(@target)"/>
1088
+ <fo:basic-link internal-destination="{$target}" fox:alt-text="{$target}">
1089
+ <xsl:variable name="section" select="xalan:nodeset($contents)//item[@id = $target]/@section"/>
1090
+ <!-- <xsl:if test="not(starts-with($section, 'Figure') or starts-with($section, 'Table'))"> -->
1091
+ <xsl:attribute name="color">blue</xsl:attribute>
1092
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
1093
+ <!-- </xsl:if> -->
1094
+ <xsl:variable name="type" select="xalan:nodeset($contents)//item[@id = $target]/@type"/>
1095
+ <xsl:variable name="root" select="xalan:nodeset($contents)//item[@id =$target]/@root"/>
1096
+ <xsl:variable name="level" select="xalan:nodeset($contents)//item[@id =$target]/@level"/>
1097
+ <xsl:choose>
1098
+ <xsl:when test="$type = 'clause' and $root != 'annex' and $level = 1 and normalize-space(.) = ''"><!-- and not (ancestor::annex) -->
1099
+ <xsl:variable name="title-clause">
1100
+ <xsl:call-template name="getTitle">
1101
+ <xsl:with-param name="name" select="'title-clause'"/>
1102
+ </xsl:call-template>
1103
+ </xsl:variable>
1104
+ <xsl:value-of select="$title-clause"/>
1105
+ </xsl:when>
1106
+ <xsl:when test="$type = 'li'">
1107
+ <xsl:attribute name="color">black</xsl:attribute>
1108
+ <xsl:attribute name="text-decoration">none</xsl:attribute>
1109
+ <xsl:variable name="parent_section" select="xalan:nodeset($contents)//item[@id =$target]/@parent_section"/>
1110
+ <xsl:variable name="currentSection">
1111
+ <xsl:call-template name="getSection"/>
1112
+ </xsl:variable>
1113
+ <xsl:if test="not(contains($parent_section, $currentSection))">
1114
+ <fo:basic-link internal-destination="{$target}" fox:alt-text="{$target}">
1115
+ <xsl:attribute name="color">blue</xsl:attribute>
1116
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
1117
+ <xsl:value-of select="$parent_section"/><xsl:text> </xsl:text>
1118
+ </fo:basic-link>
1119
+ </xsl:if>
1120
+ </xsl:when>
1121
+ <xsl:otherwise/> <!-- <xsl:value-of select="$type"/> -->
1122
+ </xsl:choose>
1123
+ <xsl:choose>
1124
+ <xsl:when test="normalize-space(.) != ''">
1125
+ <xsl:apply-templates/>
1126
+ </xsl:when>
1127
+ <xsl:otherwise>
1128
+ <xsl:value-of select="$section"/>
1129
+ </xsl:otherwise>
1130
+ </xsl:choose>
1131
+ </fo:basic-link>
1132
+ </xsl:template>
1133
+
1134
+ <xsl:template match="iho:annex">
1135
+ <fo:block break-after="page"/>
1136
+ <xsl:if test="not(iho:title)">
1137
+ <fo:block id="{@id}" font-size="13pt" font-weight="bold" text-align="center" margin-bottom="12pt" keep-with-next="always">
1138
+ <xsl:choose>
1139
+ <xsl:when test="@obligation = 'informative'">
1140
+ <xsl:variable name="title-appendix">
1141
+ <xsl:call-template name="getTitle">
1142
+ <xsl:with-param name="name" select="'title-appendix'"/>
1143
+ </xsl:call-template>
1144
+ </xsl:variable>
1145
+ <xsl:value-of select="$title-appendix"/>
1146
+ <xsl:number format="1" level="any" count="iho:annex[@obligation = 'informative']"/>
1147
+ </xsl:when>
1148
+ <xsl:otherwise>
1149
+ <xsl:variable name="title-annex">
1150
+ <xsl:call-template name="getTitle">
1151
+ <xsl:with-param name="name" select="'title-annex'"/>
1152
+ </xsl:call-template>
1153
+ </xsl:variable>
1154
+ <xsl:value-of select="$title-annex"/>
1155
+ <xsl:number format="A" level="any" count="iho:annex[not(@obligation = 'informative')]"/>
1156
+ </xsl:otherwise>
1157
+ </xsl:choose>
1158
+ </fo:block>
1159
+ </xsl:if>
1160
+ <xsl:apply-templates/>
1161
+ </xsl:template>
1162
+
1163
+ <!-- Example: [1] IHO S-100, Universal Hydrographic Data Model v4.0.0, December 2018 (Encoding, Feature Catalogue) -->
1164
+ <xsl:template match="iho:bibitem">
1165
+ <fo:list-block margin-bottom="12pt" provisional-distance-between-starts="12mm" line-height="115%">
1166
+ <fo:list-item>
1167
+ <fo:list-item-label end-indent="label-end()">
1168
+ <fo:block>
1169
+ <fo:inline id="{@id}">
1170
+ <xsl:number format="[1]"/>
1171
+ </fo:inline>
1172
+ </fo:block>
1173
+ </fo:list-item-label>
1174
+ <fo:list-item-body start-indent="body-start()">
1175
+ <fo:block>
1176
+ <xsl:variable name="docidentifier">
1177
+ <xsl:if test="iho:docidentifier">
1178
+ <xsl:choose>
1179
+ <xsl:when test="iho:docidentifier/@type = 'metanorma'"/>
1180
+ <xsl:otherwise><xsl:value-of select="iho:docidentifier"/></xsl:otherwise>
1181
+ </xsl:choose>
1182
+ </xsl:if>
1183
+ </xsl:variable>
1184
+ <xsl:value-of select="$docidentifier"/>
1185
+ <xsl:apply-templates select="iho:note"/>
1186
+ <xsl:if test="normalize-space($docidentifier) != ''">, </xsl:if>
1187
+ <xsl:choose>
1188
+ <xsl:when test="iho:title[@type = 'main' and @language = 'en']">
1189
+ <xsl:apply-templates select="iho:title[@type = 'main' and @language = 'en']"/>
1190
+ </xsl:when>
1191
+ <xsl:otherwise>
1192
+ <xsl:apply-templates select="iho:title"/>
1193
+ </xsl:otherwise>
1194
+ </xsl:choose>
1195
+ <xsl:apply-templates select="iho:formattedref"/>
1196
+ </fo:block>
1197
+ </fo:list-item-body>
1198
+ </fo:list-item>
1199
+ </fo:list-block>
1200
+ </xsl:template>
1201
+
1202
+ <xsl:template match="iho:bibitem/iho:title">
1203
+ <fo:inline font-style="italic">
1204
+ <xsl:apply-templates/>
1205
+ </fo:inline>
1206
+ </xsl:template>
1207
+
1208
+ <xsl:template match="iho:bibitem/iho:note">
1209
+ <fo:footnote>
1210
+ <xsl:variable name="number">
1211
+ <xsl:number level="any" count="iho:bibitem/iho:note"/>
1212
+ </xsl:variable>
1213
+ <fo:inline font-size="8pt" keep-with-previous.within-line="always" baseline-shift="30%"> <!--85% vertical-align="super"-->
1214
+ <fo:basic-link internal-destination="{generate-id()}" fox:alt-text="footnote {$number}">
1215
+ <xsl:value-of select="$number"/><xsl:text>)</xsl:text>
1216
+ </fo:basic-link>
1217
+ </fo:inline>
1218
+ <fo:footnote-body>
1219
+ <fo:block font-size="10pt" margin-bottom="4pt" start-indent="0pt">
1220
+ <fo:inline id="{generate-id()}" keep-with-next.within-line="always" alignment-baseline="hanging" padding-right="3mm"><!-- font-size="60%" -->
1221
+ <xsl:value-of select="$number"/><xsl:text>)</xsl:text>
1222
+ </fo:inline>
1223
+ <xsl:apply-templates/>
1224
+ </fo:block>
1225
+ </fo:footnote-body>
1226
+ </fo:footnote>
1227
+ </xsl:template>
1228
+
1229
+ <xsl:template match="iho:example">
1230
+ <fo:block font-size="11pt" margin-top="8pt" margin-bottom="12pt">
1231
+ <xsl:variable name="claims_id" select="ancestor::iho:clause[1]/@id"/>
1232
+ <fo:block margin-bottom="12pt" font-weight="bold">
1233
+ <fo:inline padding-right="5mm">
1234
+ <xsl:variable name="title-example">
1235
+ <xsl:call-template name="getTitle">
1236
+ <xsl:with-param name="name" select="'title-example'"/>
1237
+ </xsl:call-template>
1238
+ </xsl:variable>
1239
+ <xsl:value-of select="$title-example"/>
1240
+ <xsl:choose>
1241
+ <xsl:when test="iho:name">
1242
+ <xsl:text>— </xsl:text><xsl:apply-templates select="iho:name" mode="example"/>
1243
+ </xsl:when>
1244
+ <!-- <xsl:when test="count(ancestor::iho:clause[1]//iho:example) &gt; 1">
1245
+ <xsl:number count="iho:example[ancestor::iho:clause[@id = $claims_id]]" level="any"/>
1246
+ </xsl:when> -->
1247
+ </xsl:choose>
1248
+ </fo:inline>
1249
+ </fo:block>
1250
+ <xsl:apply-templates/>
1251
+ </fo:block>
1252
+ </xsl:template>
1253
+
1254
+ <xsl:template match="iho:example/iho:name"/>
1255
+ <xsl:template match="iho:example/iho:name" mode="example">
1256
+ <fo:inline><xsl:apply-templates/></fo:inline>
1257
+ </xsl:template>
1258
+
1259
+ <xsl:template match="iho:example/iho:p">
1260
+ <fo:block-container font-size="11pt" margin-left="12.7mm">
1261
+ <fo:block-container margin-left="0mm">
1262
+ <fo:block>
1263
+ <xsl:apply-templates/>
1264
+ </fo:block>
1265
+ </fo:block-container>
1266
+ </fo:block-container>
1267
+ </xsl:template>
1268
+
1269
+ <!-- <eref type="inline" bibitemid="iso-19115-1" citeas="ISO 19115-1:2014/Amd 1">...<localityStack><locality type="clause"><referenceFrom>113-01-12</referenceFrom></locality></localityStack></eref> -->
1270
+ <xsl:template match="iho:eref">
1271
+ <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}"> <!-- font-size="9pt" color="blue" vertical-align="super" -->
1272
+ <xsl:if test="@type = 'footnote'">
1273
+ <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
1274
+ <xsl:attribute name="font-size">80%</xsl:attribute>
1275
+ <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
1276
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
1277
+ </xsl:if>
1278
+ <xsl:if test="@type = 'inline'">
1279
+ <xsl:attribute name="color">blue</xsl:attribute>
1280
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
1281
+ </xsl:if>
1282
+ <xsl:choose>
1283
+ <xsl:when test="@citeas and normalize-space(text()) = ''">
1284
+ <xsl:value-of select="@citeas"/> <!-- disable-output-escaping="yes" -->
1285
+ </xsl:when>
1286
+ <xsl:when test="@bibitemid and normalize-space(text()) = ''">
1287
+ <xsl:value-of select="//iho:bibitem[@id = current()/@bibitemid]/iho:docidentifier"/>
1288
+ </xsl:when>
1289
+ <xsl:otherwise/>
1290
+ </xsl:choose>
1291
+ <xsl:apply-templates select="iho:localityStack"/>
1292
+ <xsl:apply-templates select="text()"/>
1293
+ </fo:basic-link>
1294
+ </xsl:template>
1295
+
1296
+ <xsl:template match="iho:pagebreak">
1297
+ <xsl:copy-of select="."/>
1298
+ </xsl:template>
1299
+
1300
+ <!-- https://github.com/metanorma/mn-native-pdf/issues/214 -->
1301
+ <xsl:template match="iho:index"/>
1302
+
1303
+ <xsl:template match="iho:review"/>
1304
+
1305
+ <xsl:template match="iho:term">
1306
+ <xsl:param name="sectionNum"/>
1307
+ <fo:block id="{@id}" margin-bottom="10pt">
1308
+ <xsl:apply-templates>
1309
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
1310
+ </xsl:apply-templates>
1311
+ </fo:block>
1312
+ </xsl:template>
1313
+
1314
+ <xsl:template match="iho:preferred">
1315
+ <xsl:param name="sectionNum"/>
1316
+ <fo:block line-height="1.1">
1317
+ <fo:block font-weight="bold" keep-with-next="always">
1318
+ <fo:inline>
1319
+ <xsl:variable name="section">
1320
+ <xsl:call-template name="getSection">
1321
+ <xsl:with-param name="sectionNum" select="$sectionNum"/>
1322
+ </xsl:call-template>
1323
+ </xsl:variable>
1324
+ <xsl:value-of select="$section"/>
1325
+ <!-- <xsl:value-of select="$sectionNum"/>.<xsl:number count="iho:term"/> -->
1326
+ </fo:inline>
1327
+ </fo:block>
1328
+ <fo:block font-weight="bold" keep-with-next="always">
1329
+ <xsl:apply-templates/>
1330
+ </fo:block>
1331
+ </fo:block>
1332
+ </xsl:template>
1333
+
1334
+ <xsl:template match="iho:admitted">
1335
+ <fo:block>
1336
+ <xsl:apply-templates/>
1337
+ </fo:block>
1338
+ </xsl:template>
1339
+
1340
+ <xsl:template match="iho:deprecates">
1341
+ <xsl:variable name="title-deprecated">
1342
+ <xsl:call-template name="getTitle">
1343
+ <xsl:with-param name="name" select="'title-deprecated'"/>
1344
+ </xsl:call-template>
1345
+ </xsl:variable>
1346
+ <fo:block><xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/></fo:block>
1347
+ </xsl:template>
1348
+
1349
+ <xsl:template match="iho:definition[preceding-sibling::iho:domain]">
1350
+ <xsl:apply-templates/>
1351
+ </xsl:template>
1352
+ <xsl:template match="iho:definition[preceding-sibling::iho:domain]/iho:p">
1353
+ <fo:inline> <xsl:apply-templates/></fo:inline>
1354
+ <fo:block> </fo:block>
1355
+ </xsl:template>
1356
+
1357
+ <xsl:template match="iho:definition">
1358
+ <fo:block margin-bottom="6pt">
1359
+ <xsl:apply-templates/>
1360
+ </fo:block>
1361
+ </xsl:template>
1362
+
1363
+ <xsl:template match="iho:termexample">
1364
+ <fo:block font-size="10pt" margin-top="8pt" margin-bottom="8pt" text-align="justify">
1365
+ <fo:inline padding-right="5mm">
1366
+ <xsl:variable name="title-example">
1367
+ <xsl:call-template name="getTitle">
1368
+ <xsl:with-param name="name" select="'title-example'"/>
1369
+ </xsl:call-template>
1370
+ </xsl:variable>
1371
+ <xsl:value-of select="$title-example"/>
1372
+ <xsl:if test="count(ancestor::iho:term[1]//iho:termexample) &gt; 1">
1373
+ <xsl:number/>
1374
+ </xsl:if>
1375
+ </fo:inline>
1376
+ <xsl:apply-templates/>
1377
+ </fo:block>
1378
+ </xsl:template>
1379
+
1380
+ <xsl:template match="iho:termexample/iho:p">
1381
+ <fo:inline><xsl:apply-templates/></fo:inline>
1382
+ </xsl:template>
1383
+
1384
+
1385
+
1386
+ <xsl:template match="iho:domain">
1387
+ <fo:inline>&lt;<xsl:apply-templates/>&gt;</fo:inline><xsl:text> </xsl:text>
1388
+ </xsl:template>
1389
+
1390
+ <xsl:template match="iho:termnote">
1391
+ <fo:block font-size="10pt" margin-top="8pt" margin-bottom="8pt" text-align="justify">
1392
+ <xsl:variable name="num"><xsl:number/></xsl:variable>
1393
+ <xsl:variable name="title-note-to-entry">
1394
+ <xsl:call-template name="getTitle">
1395
+ <xsl:with-param name="name" select="'title-note-to-entry'"/>
1396
+ </xsl:call-template>
1397
+ </xsl:variable>
1398
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($title-note-to-entry),'#',$num)"/>
1399
+ <xsl:apply-templates/>
1400
+ </fo:block>
1401
+ </xsl:template>
1402
+
1403
+ <xsl:template match="iho:termnote/iho:p">
1404
+ <fo:inline><xsl:apply-templates/></fo:inline>
1405
+ <!-- <xsl:if test="following-sibling::* and not(following-sibling::iho:p)">
1406
+ <xsl:value-of select="$linebreak"/>
1407
+ <xsl:value-of select="$linebreak"/>
1408
+ </xsl:if> -->
1409
+ </xsl:template>
1410
+
1411
+
1412
+ <xsl:template match="iho:modification/iho:p">
1413
+ <fo:inline><xsl:apply-templates/></fo:inline>
1414
+ </xsl:template>
1415
+
1416
+ <xsl:template match="iho:locality">
1417
+ <xsl:variable name="title-clause">
1418
+ <xsl:call-template name="getTitle">
1419
+ <xsl:with-param name="name" select="'title-clause'"/>
1420
+ </xsl:call-template>
1421
+ </xsl:variable>
1422
+ <xsl:variable name="title-annex">
1423
+ <xsl:call-template name="getTitle">
1424
+ <xsl:with-param name="name" select="'title-annex'"/>
1425
+ </xsl:call-template>
1426
+ </xsl:variable>
1427
+ <xsl:variable name="title-appendix">
1428
+ <xsl:call-template name="getTitle">
1429
+ <xsl:with-param name="name" select="'title-appendix'"/>
1430
+ </xsl:call-template>
1431
+ </xsl:variable>
1432
+ <xsl:variable name="title-table">
1433
+ <xsl:call-template name="getTitle">
1434
+ <xsl:with-param name="name" select="'title-table'"/>
1435
+ </xsl:call-template>
1436
+ </xsl:variable>
1437
+ <xsl:choose>
1438
+ <xsl:when test="ancestor::iho:termsource"/>
1439
+ <xsl:when test="@type ='clause' and ancestor::iho:eref"/>
1440
+ <xsl:when test="@type ='clause'"><xsl:value-of select="$title-clause"/></xsl:when>
1441
+ <xsl:when test="@type ='annex'"><xsl:value-of select="$title-annex"/></xsl:when>
1442
+ <xsl:when test="@type ='appendix'"><xsl:value-of select="$title-appendix"/></xsl:when>
1443
+ <xsl:when test="@type ='table'"><xsl:value-of select="$title-table"/></xsl:when>
1444
+ <xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise>
1445
+ </xsl:choose>
1446
+ <xsl:text> </xsl:text><xsl:value-of select="iho:referenceFrom"/>
1447
+ </xsl:template>
1448
+
1449
+
1450
+ <xsl:template name="insertHeaderFooter">
1451
+ <xsl:param name="font-weight" select="'bold'"/>
1452
+ <fo:static-content flow-name="header-odd">
1453
+ <fo:block-container height="100%">
1454
+ <fo:block padding-top="12.5mm" text-align="right">
1455
+ <xsl:value-of select="$docidentifier"/>
1456
+ </fo:block>
1457
+ </fo:block-container>
1458
+ </fo:static-content>
1459
+ <fo:static-content flow-name="footer-odd">
1460
+ <fo:block-container height="100%" margin-right="-10mm" display-align="after">
1461
+ <fo:block-container margin-right="0mm">
1462
+ <fo:block padding-bottom="17mm" font-size="10pt" text-align-last="justify">
1463
+ <fo:inline><xsl:value-of select="$copyrightText"/></fo:inline>
1464
+ <fo:inline keep-together.within-line="always">
1465
+ <fo:leader leader-pattern="space"/>
1466
+ <fo:inline font-weight="{$font-weight}"><fo:page-number/></fo:inline>
1467
+ </fo:inline>
1468
+ </fo:block>
1469
+ </fo:block-container>
1470
+ </fo:block-container>
1471
+ </fo:static-content>
1472
+ <fo:static-content flow-name="header-even">
1473
+ <fo:block-container height="100%">
1474
+ <fo:block padding-top="12.5mm">
1475
+ <xsl:value-of select="$docidentifier"/>
1476
+ </fo:block>
1477
+ </fo:block-container>
1478
+ </fo:static-content>
1479
+ <fo:static-content flow-name="footer-even">
1480
+ <fo:block-container height="100%" margin-right="-10mm" display-align="after">
1481
+ <fo:block-container margin-right="0mm">
1482
+ <fo:block padding-bottom="17mm" font-size="10pt" text-align-last="justify">
1483
+ <fo:inline font-weight="{$font-weight}"><fo:page-number/></fo:inline>
1484
+ <fo:inline keep-together.within-line="always">
1485
+ <fo:leader leader-pattern="space"/>
1486
+ <xsl:value-of select="$copyrightText"/>
1487
+ </fo:inline>
1488
+ </fo:block>
1489
+ </fo:block-container>
1490
+ </fo:block-container>
1491
+ </fo:static-content>
1492
+ </xsl:template>
1493
+
1494
+
1495
+ <xsl:template name="getSection">
1496
+ <xsl:param name="sectionNum"/>
1497
+ <xsl:variable name="level">
1498
+ <xsl:call-template name="getLevel"/>
1499
+ </xsl:variable>
1500
+ <xsl:variable name="section">
1501
+ <xsl:choose>
1502
+ <xsl:when test="ancestor::iho:bibliography">
1503
+ <xsl:value-of select="$sectionNum"/>
1504
+ </xsl:when>
1505
+ <xsl:when test="ancestor::iho:sections">
1506
+ <!-- 1, 2, 3, 4, ... from main section (not annex, bibliography, ...) -->
1507
+ <xsl:choose>
1508
+ <xsl:when test="$level = 1">
1509
+ <xsl:value-of select="$sectionNum"/><xsl:text>.</xsl:text>
1510
+ </xsl:when>
1511
+ <xsl:when test="$level &gt;= 2">
1512
+ <xsl:variable name="num">
1513
+ <xsl:call-template name="getSubSection"/>
1514
+ </xsl:variable>
1515
+ <xsl:value-of select="concat($sectionNum, $num)"/><xsl:text>.</xsl:text>
1516
+ </xsl:when>
1517
+ <xsl:otherwise>
1518
+ <!-- z<xsl:value-of select="$sectionNum"/>z -->
1519
+ </xsl:otherwise>
1520
+ </xsl:choose>
1521
+ </xsl:when>
1522
+ <!-- <xsl:when test="ancestor::iho:annex[@obligation = 'informative']">
1523
+ <xsl:choose>
1524
+ <xsl:when test="$level = 1">
1525
+ <xsl:text>Annex </xsl:text>
1526
+ <xsl:number format="I" level="any" count="iho:annex[@obligation = 'informative']"/>
1527
+ </xsl:when>
1528
+ <xsl:otherwise>
1529
+ <xsl:number format="I.1" level="multiple" count="iho:annex[@obligation = 'informative'] | iho:clause"/>
1530
+ </xsl:otherwise>
1531
+ </xsl:choose>
1532
+ </xsl:when> -->
1533
+ <xsl:when test="ancestor::iho:annex">
1534
+ <xsl:variable name="annexid" select="normalize-space(/iho:iho-standard/iho:bibdata/iho:ext/iho:structuredidentifier/iho:annexid)"/>
1535
+ <xsl:choose>
1536
+ <xsl:when test="$level = 1">
1537
+ <xsl:choose>
1538
+ <xsl:when test="ancestor::iho:annex/@obligation = 'informative'">
1539
+ <xsl:variable name="title-appendix">
1540
+ <xsl:call-template name="getTitle">
1541
+ <xsl:with-param name="name" select="'title-appendix'"/>
1542
+ </xsl:call-template>
1543
+ </xsl:variable>
1544
+ <xsl:value-of select="$title-appendix"/>
1545
+ </xsl:when>
1546
+ <xsl:otherwise>
1547
+ <xsl:variable name="title-annex">
1548
+ <xsl:call-template name="getTitle">
1549
+ <xsl:with-param name="name" select="'title-annex'"/>
1550
+ </xsl:call-template>
1551
+ </xsl:variable>
1552
+ <xsl:value-of select="$title-annex"/>
1553
+ </xsl:otherwise>
1554
+ </xsl:choose>
1555
+
1556
+ <xsl:choose>
1557
+ <xsl:when test="count(//iho:annex) = 1 and $annexid != ''">
1558
+ <xsl:value-of select="$annexid"/>
1559
+ </xsl:when>
1560
+ <xsl:otherwise>
1561
+ <xsl:choose>
1562
+ <xsl:when test="ancestor::iho:annex/@obligation = 'informative'">
1563
+ <xsl:number format="1" level="any" count="iho:annex[@obligation = 'informative']"/>
1564
+ </xsl:when>
1565
+ <xsl:otherwise>
1566
+ <xsl:number format="A" level="any" count="iho:annex[not(@obligation = 'informative')]"/>
1567
+ <!-- <xsl:number format="A" level="any" count="iho:annex"/> -->
1568
+ </xsl:otherwise>
1569
+ </xsl:choose>
1570
+ </xsl:otherwise>
1571
+ </xsl:choose>
1572
+ </xsl:when>
1573
+ <xsl:otherwise>
1574
+ <xsl:choose>
1575
+ <xsl:when test="count(//iho:annex) = 1 and $annexid != ''">
1576
+ <xsl:value-of select="$annexid"/><xsl:number format=".1" level="multiple" count="iho:clause"/>
1577
+ </xsl:when>
1578
+ <xsl:otherwise>
1579
+
1580
+ <xsl:choose>
1581
+ <xsl:when test="ancestor::iho:annex/@obligation = 'informative'">
1582
+ <xsl:number format="1.1." level="multiple" count="iho:annex[@obligation = 'informative'] | iho:clause"/>
1583
+ </xsl:when>
1584
+ <xsl:otherwise>
1585
+ <xsl:number format="A.1." level="multiple" count="iho:annex[not(@obligation = 'informative')] | iho:clause"/>
1586
+ <!-- <xsl:number format="A.1." level="multiple" count="iho:annex | iho:clause"/> -->
1587
+ </xsl:otherwise>
1588
+ </xsl:choose>
1589
+
1590
+
1591
+ </xsl:otherwise>
1592
+ </xsl:choose>
1593
+ </xsl:otherwise>
1594
+ </xsl:choose>
1595
+ </xsl:when>
1596
+ <!-- if preface and there is clause(s) -->
1597
+ <!-- <xsl:when test="ancestor::iho:preface">
1598
+ <xsl:choose>
1599
+ <xsl:when test="$level = 1 and ..//iho:clause">0</xsl:when>
1600
+ <xsl:when test="$level &gt;= 2">
1601
+ <xsl:variable name="num">
1602
+ <xsl:number format=".1" level="multiple" count="iho:clause"/>
1603
+ </xsl:variable>
1604
+ <xsl:value-of select="concat('0', $num)"/>
1605
+ </xsl:when>
1606
+ <xsl:otherwise></xsl:otherwise>
1607
+ </xsl:choose>
1608
+ </xsl:when> -->
1609
+ <xsl:otherwise>
1610
+ </xsl:otherwise>
1611
+ </xsl:choose>
1612
+ </xsl:variable>
1613
+ <xsl:value-of select="$section"/>
1614
+ </xsl:template>
1615
+
1616
+ <xsl:template name="getListItemFormat">
1617
+ <xsl:choose>
1618
+ <xsl:when test="local-name(..) = 'ul'">—</xsl:when> <!-- dash -->
1619
+ <xsl:otherwise> <!-- for ordered lists -->
1620
+ <xsl:choose>
1621
+ <xsl:when test="../@type = 'arabic'">
1622
+ <xsl:number format="a)"/>
1623
+ </xsl:when>
1624
+ <xsl:when test="../@type = 'alphabet'">
1625
+ <xsl:number format="a)"/>
1626
+ </xsl:when>
1627
+ <xsl:otherwise>
1628
+ <xsl:number format="1."/>
1629
+ </xsl:otherwise>
1630
+ </xsl:choose>
1631
+ </xsl:otherwise>
1632
+ </xsl:choose>
1633
+ </xsl:template>
1634
+
1635
+ <xsl:template match="@*|node()" mode="step2">
1636
+ <xsl:copy>
1637
+ <xsl:apply-templates select="@*|node()" mode="step2"/>
1638
+ </xsl:copy>
1639
+ </xsl:template>
1640
+
1641
+ <xsl:template match="iho:pagebreak" mode="step2">
1642
+
1643
+ <!-- determine pagebreak is last element before </fo:flow> or not -->
1644
+ <xsl:variable name="isLast">
1645
+ <xsl:for-each select="ancestor-or-self::*[ancestor::fo:flow]">
1646
+ <xsl:if test="following-sibling::*">false</xsl:if>
1647
+ </xsl:for-each>
1648
+ </xsl:variable>
1649
+
1650
+ <xsl:if test="contains($isLast, 'false')">
1651
+
1652
+ <xsl:variable name="orientation" select="normalize-space(@orientation)"/>
1653
+ <xsl:variable name="tree">
1654
+ <xsl:for-each select="ancestor::*[ancestor::fo:flow]">
1655
+ <element pos="{position()}">
1656
+ <xsl:value-of select="name()"/>
1657
+ </element>
1658
+ </xsl:for-each>
1659
+ </xsl:variable>
1660
+
1661
+ <!-- close fo:page-sequence (closing preceding fo elements) -->
1662
+ <xsl:for-each select="xalan:nodeset($tree)//element">
1663
+ <xsl:sort data-type="number" order="descending" select="@pos"/>
1664
+ <xsl:text disable-output-escaping="yes">&lt;/</xsl:text>
1665
+ <xsl:value-of select="."/>
1666
+ <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
1667
+ </xsl:for-each>
1668
+ <xsl:text disable-output-escaping="yes">&lt;/fo:flow&gt;</xsl:text>
1669
+ <xsl:text disable-output-escaping="yes">&lt;/fo:page-sequence&gt;</xsl:text>
1670
+
1671
+ <!-- <pagebreak/> -->
1672
+ <!-- create a new fo:page-sequence (opening fo elements) -->
1673
+
1674
+ <xsl:text disable-output-escaping="yes">&lt;fo:page-sequence master-reference="document</xsl:text><xsl:if test="$orientation != ''">-<xsl:value-of select="$orientation"/></xsl:if><xsl:text disable-output-escaping="yes">"&gt;</xsl:text>
1675
+ <fo:static-content flow-name="xsl-footnote-separator">
1676
+ <fo:block>
1677
+ <fo:leader leader-pattern="rule" leader-length="30%"/>
1678
+ </fo:block>
1679
+ </fo:static-content>
1680
+ <xsl:call-template name="insertHeaderFooter"/>
1681
+ <xsl:text disable-output-escaping="yes">&lt;fo:flow flow-name="xsl-region-body"&gt;</xsl:text>
1682
+
1683
+ <xsl:for-each select="xalan:nodeset($tree)//element">
1684
+ <xsl:text disable-output-escaping="yes">&lt;</xsl:text>
1685
+ <xsl:value-of select="."/>
1686
+ <xsl:for-each select="@*[local-name() != 'pos']">
1687
+ <xsl:text> </xsl:text>
1688
+ <xsl:value-of select="local-name()"/>
1689
+ <xsl:text>="</xsl:text>
1690
+ <xsl:value-of select="."/>
1691
+ <xsl:text>"</xsl:text>
1692
+ </xsl:for-each>
1693
+ <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
1694
+ </xsl:for-each>
1695
+ </xsl:if>
1696
+ </xsl:template>
1697
+
1698
+
1699
+ <xsl:variable name="Image-IHO">
1700
+ <xsl:text>iVBORw0KGgoAAAANSUhEUgAAAOEAAADfCAIAAACPoSPwAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAh1QAAIdUBBJy0nQAAEYdJREFUeAHtnQlsHNUZx3dmba+9dmzHtxMntusEJ04IBJKQkEASVGhLqUI5SgGVVlSVKIKGCqoiaKWiFrVUasvVU1BatbSlFEGRAAEiKKTkgIQckMOJncN2Dl/xsWt7N7sz02/jxnm2d+3vjXf9nst/ZFlvZ7553ze/7z/3e2+MR/fvffjj3R7T9GACAS0JQJpapgVBCQSgUQEGiloSgEa1TAuCEghAowIMFLUkAI1qmRYEJRCARgUYKGpJABrVMi0ISiAAjQowUNSSADSqZVoQlEAAGhVgoKglAWhUy7QgKIEANCrAQFFLAtColmlBUAIBaFSAgaKWBKBRLdOCoAQC0KgAA0UtCUCjWqYFQQkEoFEBBopaEoBGtUwLghIIQKMCDBS1JACNapkWBCUQgEYFGChqSQAa1TItCEogAI0KMFDUkgA0qmVaEJRAABoVYKCoJQFoVMu0ICiBADQqwEBRSwLQqJZpQVACAWhUgIGilgSgUS3TgqAEAtCoAANFLQlAo1qmBUEJBKBRAQaKWhKARrVMC4ISCECjAgwUtSQAjWqZFgQlEIBGBRgoakkAGt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
+ </xsl:variable>
1710
+
1711
+ <xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="titles_">
1712
+
1713
+ <title-table lang="en">Table </title-table>
1714
+ <title-table lang="fr">Tableau </title-table>
1715
+
1716
+ <title-table lang="zh">Table </title-table>
1717
+
1718
+
1719
+
1720
+ <title-note lang="en">NOTE </title-note>
1721
+ <title-note lang="fr">NOTE </title-note>
1722
+
1723
+ <title-note lang="zh">NOTE </title-note>
1724
+
1725
+
1726
+
1727
+ <title-figure lang="en">Figure </title-figure>
1728
+ <title-figure lang="fr">Figure </title-figure>
1729
+
1730
+ <title-figure lang="zh">Figure </title-figure>
1731
+
1732
+
1733
+
1734
+ <title-example lang="en">EXAMPLE </title-example>
1735
+ <title-example lang="fr">EXEMPLE </title-example>
1736
+
1737
+ <title-example lang="zh">EXAMPLE </title-example>
1738
+
1739
+
1740
+
1741
+ <title-example-xref lang="en">Example </title-example-xref>
1742
+ <title-example-xref lang="fr">Exemple </title-example-xref>
1743
+
1744
+ <title-section lang="en">Section </title-section>
1745
+ <title-section lang="fr">Section </title-section>
1746
+
1747
+ <title-inequality lang="en">Inequality </title-inequality>
1748
+ <title-inequality lang="fr">Inequality </title-inequality>
1749
+
1750
+ <title-equation lang="en">Equation </title-equation>
1751
+ <title-equation lang="fr">Equation </title-equation>
1752
+
1753
+ <title-annex lang="en">Annex </title-annex>
1754
+ <title-annex lang="fr">Annexe </title-annex>
1755
+
1756
+ <title-annex lang="zh">Annex </title-annex>
1757
+
1758
+
1759
+
1760
+ <title-appendix lang="en">Appendix </title-appendix>
1761
+ <title-appendix lang="fr">Appendix </title-appendix>
1762
+
1763
+ <title-clause lang="en">Clause </title-clause>
1764
+ <title-clause lang="fr">Article </title-clause>
1765
+
1766
+ <title-clause lang="zh">Clause </title-clause>
1767
+
1768
+
1769
+
1770
+ <title-edition lang="en">
1771
+
1772
+ <xsl:text>Edition </xsl:text>
1773
+
1774
+
1775
+ </title-edition>
1776
+
1777
+ <title-formula lang="en">Formula </title-formula>
1778
+ <title-formula lang="fr">Formula </title-formula>
1779
+
1780
+ <title-toc lang="en">
1781
+
1782
+ <xsl:text>Contents</xsl:text>
1783
+
1784
+
1785
+
1786
+ </title-toc>
1787
+ <title-toc lang="fr">Sommaire</title-toc>
1788
+
1789
+ <title-toc lang="zh">Contents</title-toc>
1790
+
1791
+
1792
+
1793
+ <title-page lang="en">Page</title-page>
1794
+ <title-page lang="fr">Page</title-page>
1795
+
1796
+ <title-key lang="en">Key</title-key>
1797
+ <title-key lang="fr">Légende</title-key>
1798
+
1799
+ <title-where lang="en">where</title-where>
1800
+ <title-where lang="fr">où</title-where>
1801
+
1802
+ <title-descriptors lang="en">Descriptors</title-descriptors>
1803
+
1804
+ <title-part lang="en">
1805
+
1806
+
1807
+ </title-part>
1808
+ <title-part lang="fr">
1809
+
1810
+
1811
+ </title-part>
1812
+ <title-part lang="zh">第 # 部分:</title-part>
1813
+
1814
+ <title-note-to-entry lang="en">Note # to entry: </title-note-to-entry>
1815
+ <title-note-to-entry lang="fr">Note # à l'article: </title-note-to-entry>
1816
+
1817
+ <title-note-to-entry lang="zh">Note # to entry: </title-note-to-entry>
1818
+
1819
+
1820
+
1821
+ <title-modified lang="en">modified</title-modified>
1822
+ <title-modified lang="fr">modifiée</title-modified>
1823
+
1824
+ <title-modified lang="zh">modified</title-modified>
1825
+
1826
+
1827
+
1828
+ <title-source lang="en">SOURCE</title-source>
1829
+
1830
+ <title-keywords lang="en">Keywords</title-keywords>
1831
+
1832
+ <title-deprecated lang="en">DEPRECATED</title-deprecated>
1833
+ <title-deprecated lang="fr">DEPRECATED</title-deprecated>
1834
+
1835
+ <title-submitting-organizations lang="en">Submitting Organizations</title-submitting-organizations>
1836
+
1837
+ <title-list-tables lang="en">List of Tables</title-list-tables>
1838
+
1839
+ <title-list-figures lang="en">List of Figures</title-list-figures>
1840
+
1841
+ <title-recommendation lang="en">Recommendation </title-recommendation>
1842
+
1843
+ <title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
1844
+
1845
+ <title-abstract lang="en">Abstract</title-abstract>
1846
+
1847
+ <title-summary lang="en">Summary</title-summary>
1848
+
1849
+ <title-in lang="en">in </title-in>
1850
+
1851
+ <title-box lang="en">Box </title-box>
1852
+
1853
+ <title-partly-supercedes lang="en">Partly Supercedes </title-partly-supercedes>
1854
+ <title-partly-supercedes lang="zh">部分代替 </title-partly-supercedes>
1855
+
1856
+ <title-completion-date lang="en">Completion date for this manuscript</title-completion-date>
1857
+ <title-completion-date lang="zh">本稿完成日期</title-completion-date>
1858
+
1859
+ <title-issuance-date lang="en">Issuance Date: #</title-issuance-date>
1860
+ <title-issuance-date lang="zh"># 发布</title-issuance-date>
1861
+
1862
+ <title-implementation-date lang="en">Implementation Date: #</title-implementation-date>
1863
+ <title-implementation-date lang="zh"># 实施</title-implementation-date>
1864
+
1865
+ <title-obligation-normative lang="en">normative</title-obligation-normative>
1866
+ <title-obligation-normative lang="zh">规范性附录</title-obligation-normative>
1867
+
1868
+ <title-caution lang="en">CAUTION</title-caution>
1869
+ <title-caution lang="zh">注意</title-caution>
1870
+
1871
+ <title-warning lang="en">WARNING</title-warning>
1872
+ <title-warning lang="zh">警告</title-warning>
1873
+
1874
+ <title-amendment lang="en">AMENDMENT</title-amendment>
1875
+ </xsl:variable><xsl:template name="getTitle">
1876
+ <xsl:param name="name"/>
1877
+ <xsl:variable name="lang">
1878
+ <xsl:call-template name="getLang"/>
1879
+ </xsl:variable>
1880
+ <xsl:variable name="title_" select="$titles/*[local-name() = $name][@lang = $lang]"/>
1881
+ <xsl:choose>
1882
+ <xsl:when test="normalize-space($title_) != ''">
1883
+ <xsl:value-of select="$title_"/>
1884
+ </xsl:when>
1885
+ <xsl:otherwise>
1886
+ <xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
1887
+ </xsl:otherwise>
1888
+ </xsl:choose>
1889
+ </xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="linebreak" select="'&#8232;'"/><xsl:attribute-set name="link-style">
1890
+
1891
+ <xsl:attribute name="color">blue</xsl:attribute>
1892
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
1893
+
1894
+
1895
+ </xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
1896
+
1897
+
1898
+
1899
+
1900
+
1901
+
1902
+
1903
+
1904
+ <xsl:attribute name="font-family">SFMono-Regular</xsl:attribute>
1905
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
1906
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1907
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
1908
+ <xsl:attribute name="line-height">113%</xsl:attribute>
1909
+
1910
+ </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1911
+
1912
+
1913
+
1914
+ </xsl:attribute-set><xsl:attribute-set name="appendix-example-style">
1915
+
1916
+
1917
+
1918
+ </xsl:attribute-set><xsl:template match="text()">
1919
+ <xsl:value-of select="."/>
1920
+ </xsl:template><xsl:template match="*[local-name()='br']">
1921
+ <xsl:value-of select="$linebreak"/>
1922
+ </xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
1923
+ <!-- <xsl:call-template name="add-zero-spaces"/> -->
1924
+ <xsl:call-template name="add-zero-spaces-java"/>
1925
+ </xsl:template><xsl:template match="*[local-name()='table']">
1926
+
1927
+ <xsl:variable name="simple-table">
1928
+ <!-- <xsl:copy> -->
1929
+ <xsl:call-template name="getSimpleTable"/>
1930
+ <!-- </xsl:copy> -->
1931
+ </xsl:variable>
1932
+
1933
+ <!-- DEBUG -->
1934
+ <!-- SourceTable=<xsl:copy-of select="current()"/>EndSourceTable -->
1935
+ <!-- Simpletable=<xsl:copy-of select="$simple-table"/>EndSimpltable -->
1936
+
1937
+ <!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
1938
+
1939
+ <!-- <xsl:if test="$namespace = 'iso'">
1940
+ <fo:block space-before="6pt">&#xA0;</fo:block>
1941
+ </xsl:if> -->
1942
+
1943
+ <xsl:choose>
1944
+ <xsl:when test="@unnumbered = 'true'"/>
1945
+ <xsl:otherwise>
1946
+
1947
+
1948
+
1949
+ <fo:block font-weight="bold" text-align="center" margin-bottom="6pt" keep-with-next="always">
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
1959
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
1960
+
1961
+ <xsl:variable name="title-table">
1962
+ <xsl:call-template name="getTitle">
1963
+ <xsl:with-param name="name" select="'title-table'"/>
1964
+ </xsl:call-template>
1965
+ </xsl:variable>
1966
+ <xsl:value-of select="$title-table"/>
1967
+
1968
+ <xsl:call-template name="getTableNumber"/>
1969
+
1970
+
1971
+ <xsl:if test="*[local-name()='name']">
1972
+
1973
+
1974
+
1975
+ <xsl:text> — </xsl:text>
1976
+
1977
+ <xsl:apply-templates select="*[local-name()='name']" mode="process"/>
1978
+ </xsl:if>
1979
+ </fo:block>
1980
+
1981
+
1982
+ <xsl:call-template name="fn_name_display"/>
1983
+
1984
+ </xsl:otherwise>
1985
+ </xsl:choose>
1986
+
1987
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
1988
+
1989
+ <!-- <xsl:variable name="cols-count">
1990
+ <xsl:choose>
1991
+ <xsl:when test="*[local-name()='thead']">
1992
+ <xsl:call-template name="calculate-columns-numbers">
1993
+ <xsl:with-param name="table-row" select="*[local-name()='thead']/*[local-name()='tr'][1]"/>
1994
+ </xsl:call-template>
1995
+ </xsl:when>
1996
+ <xsl:otherwise>
1997
+ <xsl:call-template name="calculate-columns-numbers">
1998
+ <xsl:with-param name="table-row" select="*[local-name()='tbody']/*[local-name()='tr'][1]"/>
1999
+ </xsl:call-template>
2000
+ </xsl:otherwise>
2001
+ </xsl:choose>
2002
+ </xsl:variable> -->
2003
+ <!-- cols-count=<xsl:copy-of select="$cols-count"/> -->
2004
+ <!-- cols-count2=<xsl:copy-of select="$cols-count2"/> -->
2005
+
2006
+
2007
+
2008
+ <xsl:variable name="colwidths">
2009
+ <xsl:call-template name="calculate-column-widths">
2010
+ <xsl:with-param name="cols-count" select="$cols-count"/>
2011
+ <xsl:with-param name="table" select="$simple-table"/>
2012
+ </xsl:call-template>
2013
+ </xsl:variable>
2014
+
2015
+ <!-- <xsl:variable name="colwidths2">
2016
+ <xsl:call-template name="calculate-column-widths">
2017
+ <xsl:with-param name="cols-count" select="$cols-count"/>
2018
+ </xsl:call-template>
2019
+ </xsl:variable> -->
2020
+
2021
+ <!-- cols-count=<xsl:copy-of select="$cols-count"/>
2022
+ colwidthsNew=<xsl:copy-of select="$colwidths"/>
2023
+ colwidthsOld=<xsl:copy-of select="$colwidths2"/>z -->
2024
+
2025
+ <xsl:variable name="margin-left">
2026
+ <xsl:choose>
2027
+ <xsl:when test="sum(xalan:nodeset($colwidths)//column) &gt; 75">15</xsl:when>
2028
+ <xsl:otherwise>0</xsl:otherwise>
2029
+ </xsl:choose>
2030
+ </xsl:variable>
2031
+
2032
+ <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
2033
+
2034
+
2035
+
2036
+
2037
+
2038
+
2039
+
2040
+
2041
+ <xsl:attribute name="space-after">18pt</xsl:attribute>
2042
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
2043
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
2044
+
2045
+ <fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
2046
+
2047
+
2048
+
2049
+
2050
+
2051
+
2052
+
2053
+
2054
+
2055
+
2056
+
2057
+ <xsl:attribute name="margin-left">0mm</xsl:attribute>
2058
+ <xsl:attribute name="margin-right">0mm</xsl:attribute>
2059
+
2060
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
2061
+ <xsl:choose>
2062
+ <xsl:when test=". = 1 or . = 0">
2063
+ <fo:table-column column-width="proportional-column-width(2)"/>
2064
+ </xsl:when>
2065
+ <xsl:otherwise>
2066
+ <fo:table-column column-width="proportional-column-width({.})"/>
2067
+ </xsl:otherwise>
2068
+ </xsl:choose>
2069
+ </xsl:for-each>
2070
+
2071
+ <xsl:choose>
2072
+ <xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
2073
+ <xsl:apply-templates select="*[local-name()='thead']" mode="process_tbody"/>
2074
+ </xsl:when>
2075
+ <xsl:otherwise>
2076
+ <xsl:apply-templates/>
2077
+ </xsl:otherwise>
2078
+ </xsl:choose>
2079
+
2080
+ </fo:table>
2081
+
2082
+
2083
+
2084
+ </fo:block-container>
2085
+ </xsl:template><xsl:template name="getTableNumber">
2086
+ <xsl:choose>
2087
+ <xsl:when test="ancestor::*[local-name()='executivesummary']"> <!-- NIST -->
2088
+ <xsl:text>ES-</xsl:text><xsl:number format="1" count="*[local-name()='executivesummary']//*[local-name()='table'][not(@unnumbered) or @unnumbered != 'true']"/>
2089
+ </xsl:when>
2090
+ <xsl:when test="ancestor::*[local-name()='annex']">
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+
2098
+
2099
+ </xsl:when>
2100
+ <xsl:otherwise>
2101
+
2102
+
2103
+ <xsl:number format="A." count="*[local-name()='annex']"/>
2104
+ <xsl:number format="1" level="any" count="//*[local-name()='table'] [not(ancestor::*[local-name()='annex']) and not(ancestor::*[local-name()='executivesummary']) and not(ancestor::*[local-name()='bibdata'])] [not(@unnumbered) or @unnumbered != 'true']"/>
2105
+
2106
+ </xsl:otherwise>
2107
+ </xsl:choose>
2108
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']"/><xsl:template match="*[local-name()='table']/*[local-name()='name']" mode="process">
2109
+ <xsl:apply-templates/>
2110
+ </xsl:template><xsl:template name="calculate-columns-numbers">
2111
+ <xsl:param name="table-row"/>
2112
+ <xsl:variable name="columns-count" select="count($table-row/*)"/>
2113
+ <xsl:variable name="sum-colspans" select="sum($table-row/*/@colspan)"/>
2114
+ <xsl:variable name="columns-with-colspan" select="count($table-row/*[@colspan])"/>
2115
+ <xsl:value-of select="$columns-count + $sum-colspans - $columns-with-colspan"/>
2116
+ </xsl:template><xsl:template name="calculate-column-widths">
2117
+ <xsl:param name="table"/>
2118
+ <xsl:param name="cols-count"/>
2119
+ <xsl:param name="curr-col" select="1"/>
2120
+ <xsl:param name="width" select="0"/>
2121
+
2122
+ <xsl:if test="$curr-col &lt;= $cols-count">
2123
+ <xsl:variable name="widths">
2124
+ <xsl:choose>
2125
+ <xsl:when test="not($table)"><!-- this branch is not using in production, for debug only -->
2126
+ <xsl:for-each select="*[local-name()='thead']//*[local-name()='tr']">
2127
+ <xsl:variable name="words">
2128
+ <xsl:call-template name="tokenize">
2129
+ <xsl:with-param name="text" select="translate(*[local-name()='th'][$curr-col],'- —:', ' ')"/>
2130
+ </xsl:call-template>
2131
+ </xsl:variable>
2132
+ <xsl:variable name="max_length">
2133
+ <xsl:call-template name="max_length">
2134
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
2135
+ </xsl:call-template>
2136
+ </xsl:variable>
2137
+ <width>
2138
+ <xsl:value-of select="$max_length"/>
2139
+ </width>
2140
+ </xsl:for-each>
2141
+ <xsl:for-each select="*[local-name()='tbody']//*[local-name()='tr']">
2142
+ <xsl:variable name="words">
2143
+ <xsl:call-template name="tokenize">
2144
+ <xsl:with-param name="text" select="translate(*[local-name()='td'][$curr-col],'- —:', ' ')"/>
2145
+ </xsl:call-template>
2146
+ </xsl:variable>
2147
+ <xsl:variable name="max_length">
2148
+ <xsl:call-template name="max_length">
2149
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
2150
+ </xsl:call-template>
2151
+ </xsl:variable>
2152
+ <width>
2153
+ <xsl:value-of select="$max_length"/>
2154
+ </width>
2155
+
2156
+ </xsl:for-each>
2157
+ </xsl:when>
2158
+ <xsl:otherwise>
2159
+ <xsl:for-each select="xalan:nodeset($table)//tr">
2160
+ <xsl:variable name="td_text">
2161
+ <xsl:apply-templates select="td[$curr-col]" mode="td_text"/>
2162
+ </xsl:variable>
2163
+ <xsl:variable name="words">
2164
+ <xsl:variable name="string_with_added_zerospaces">
2165
+ <xsl:call-template name="add-zero-spaces-java">
2166
+ <xsl:with-param name="text" select="$td_text"/>
2167
+ </xsl:call-template>
2168
+ </xsl:variable>
2169
+ <xsl:call-template name="tokenize">
2170
+ <!-- <xsl:with-param name="text" select="translate(td[$curr-col],'- —:', ' ')"/> -->
2171
+ <!-- 2009 thinspace -->
2172
+ <!-- <xsl:with-param name="text" select="translate(normalize-space($td_text),'- —:', ' ')"/> -->
2173
+ <xsl:with-param name="text" select="normalize-space(translate($string_with_added_zerospaces, '​', ' '))"/>
2174
+ </xsl:call-template>
2175
+ </xsl:variable>
2176
+ <xsl:variable name="max_length">
2177
+ <xsl:call-template name="max_length">
2178
+ <xsl:with-param name="words" select="xalan:nodeset($words)"/>
2179
+ </xsl:call-template>
2180
+ </xsl:variable>
2181
+ <width>
2182
+ <xsl:variable name="divider">
2183
+ <xsl:choose>
2184
+ <xsl:when test="td[$curr-col]/@divide">
2185
+ <xsl:value-of select="td[$curr-col]/@divide"/>
2186
+ </xsl:when>
2187
+ <xsl:otherwise>1</xsl:otherwise>
2188
+ </xsl:choose>
2189
+ </xsl:variable>
2190
+ <xsl:value-of select="$max_length div $divider"/>
2191
+ </width>
2192
+
2193
+ </xsl:for-each>
2194
+
2195
+ </xsl:otherwise>
2196
+ </xsl:choose>
2197
+ </xsl:variable>
2198
+
2199
+
2200
+ <column>
2201
+ <xsl:for-each select="xalan:nodeset($widths)//width">
2202
+ <xsl:sort select="." data-type="number" order="descending"/>
2203
+ <xsl:if test="position()=1">
2204
+ <xsl:value-of select="."/>
2205
+ </xsl:if>
2206
+ </xsl:for-each>
2207
+ </column>
2208
+ <xsl:call-template name="calculate-column-widths">
2209
+ <xsl:with-param name="cols-count" select="$cols-count"/>
2210
+ <xsl:with-param name="curr-col" select="$curr-col +1"/>
2211
+ <xsl:with-param name="table" select="$table"/>
2212
+ </xsl:call-template>
2213
+ </xsl:if>
2214
+ </xsl:template><xsl:template match="text()" mode="td_text">
2215
+ <xsl:variable name="zero-space">​</xsl:variable>
2216
+ <xsl:value-of select="translate(., $zero-space, ' ')"/><xsl:text> </xsl:text>
2217
+ </xsl:template><xsl:template match="*[local-name()='termsource']" mode="td_text">
2218
+ <xsl:value-of select="*[local-name()='origin']/@citeas"/>
2219
+ </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
2220
+ <xsl:value-of select="@target"/>
2221
+ </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
2222
+ <xsl:param name="cols-count"/>
2223
+ <!-- font-weight="bold" -->
2224
+ <fo:table-header>
2225
+
2226
+ <xsl:apply-templates/>
2227
+ </fo:table-header>
2228
+ </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
2229
+ <fo:table-body>
2230
+ <xsl:apply-templates/>
2231
+ </fo:table-body>
2232
+ </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
2233
+ <xsl:apply-templates/>
2234
+ </xsl:template><xsl:template name="insertTableFooter">
2235
+ <xsl:param name="cols-count"/>
2236
+ <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
2237
+ <xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
2238
+
2239
+ <fo:table-footer>
2240
+
2241
+ <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/>
2242
+
2243
+ <!-- if there are note(s) or fn(s) then create footer row -->
2244
+ <xsl:if test="$isNoteOrFnExist = 'true'">
2245
+
2246
+
2247
+
2248
+ <fo:table-row>
2249
+ <fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
2250
+
2251
+
2252
+
2253
+ <!-- fn will be processed inside 'note' processing -->
2254
+
2255
+
2256
+ <!-- except gb -->
2257
+
2258
+ <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
2259
+
2260
+
2261
+ <!-- horizontal row separator -->
2262
+
2263
+
2264
+ <!-- fn processing -->
2265
+ <xsl:call-template name="fn_display"/>
2266
+
2267
+ </fo:table-cell>
2268
+ </fo:table-row>
2269
+
2270
+ </xsl:if>
2271
+ </fo:table-footer>
2272
+
2273
+ </xsl:if>
2274
+ </xsl:template><xsl:template match="*[local-name()='tbody']">
2275
+
2276
+ <xsl:variable name="cols-count">
2277
+ <xsl:choose>
2278
+ <xsl:when test="../*[local-name()='thead']">
2279
+ <xsl:call-template name="calculate-columns-numbers">
2280
+ <xsl:with-param name="table-row" select="../*[local-name()='thead']/*[local-name()='tr'][1]"/>
2281
+ </xsl:call-template>
2282
+ </xsl:when>
2283
+ <xsl:otherwise>
2284
+ <xsl:call-template name="calculate-columns-numbers">
2285
+ <xsl:with-param name="table-row" select="./*[local-name()='tr'][1]"/>
2286
+ </xsl:call-template>
2287
+ </xsl:otherwise>
2288
+ </xsl:choose>
2289
+ </xsl:variable>
2290
+
2291
+ <xsl:apply-templates select="../*[local-name()='thead']" mode="process">
2292
+ <xsl:with-param name="cols-count" select="$cols-count"/>
2293
+ </xsl:apply-templates>
2294
+
2295
+ <xsl:call-template name="insertTableFooter">
2296
+ <xsl:with-param name="cols-count" select="$cols-count"/>
2297
+ </xsl:call-template>
2298
+
2299
+ <fo:table-body>
2300
+ <xsl:apply-templates/>
2301
+ <!-- <xsl:apply-templates select="../*[local-name()='tfoot']" mode="process"/> -->
2302
+
2303
+ </fo:table-body>
2304
+
2305
+ </xsl:template><xsl:template match="*[local-name()='tr']">
2306
+ <xsl:variable name="parent-name" select="local-name(..)"/>
2307
+ <!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
2308
+ <fo:table-row min-height="4mm">
2309
+ <xsl:if test="$parent-name = 'thead'">
2310
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+ </xsl:if>
2317
+ <xsl:if test="$parent-name = 'tfoot'">
2318
+
2319
+
2320
+ </xsl:if>
2321
+
2322
+
2323
+ <xsl:apply-templates/>
2324
+ </fo:table-row>
2325
+ </xsl:template><xsl:template match="*[local-name()='th']">
2326
+ <fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
2327
+
2328
+
2329
+
2330
+
2331
+
2332
+
2333
+
2334
+ <xsl:if test="@colspan">
2335
+ <xsl:attribute name="number-columns-spanned">
2336
+ <xsl:value-of select="@colspan"/>
2337
+ </xsl:attribute>
2338
+ </xsl:if>
2339
+ <xsl:if test="@rowspan">
2340
+ <xsl:attribute name="number-rows-spanned">
2341
+ <xsl:value-of select="@rowspan"/>
2342
+ </xsl:attribute>
2343
+ </xsl:if>
2344
+ <fo:block>
2345
+ <xsl:apply-templates/>
2346
+ </fo:block>
2347
+ </fo:table-cell>
2348
+ </xsl:template><xsl:template match="*[local-name()='td']">
2349
+ <fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
2350
+ <!-- and ancestor::*[local-name() = 'thead'] -->
2351
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
2352
+
2353
+
2354
+
2355
+
2356
+
2357
+
2358
+
2359
+
2360
+
2361
+ <xsl:if test="@colspan">
2362
+ <xsl:attribute name="number-columns-spanned">
2363
+ <xsl:value-of select="@colspan"/>
2364
+ </xsl:attribute>
2365
+ </xsl:if>
2366
+ <xsl:if test="@rowspan">
2367
+ <xsl:attribute name="number-rows-spanned">
2368
+ <xsl:value-of select="@rowspan"/>
2369
+ </xsl:attribute>
2370
+ </xsl:if>
2371
+ <fo:block>
2372
+
2373
+ <xsl:apply-templates/>
2374
+ </fo:block>
2375
+ <!-- <xsl:choose>
2376
+ <xsl:when test="count(*) = 1 and *[local-name() = 'p']">
2377
+ <xsl:apply-templates />
2378
+ </xsl:when>
2379
+ <xsl:otherwise>
2380
+ <fo:block>
2381
+ <xsl:apply-templates />
2382
+ </fo:block>
2383
+ </xsl:otherwise>
2384
+ </xsl:choose> -->
2385
+
2386
+
2387
+ </fo:table-cell>
2388
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
2389
+
2390
+
2391
+ <fo:block font-size="10pt" margin-bottom="12pt">
2392
+
2393
+
2394
+
2395
+
2396
+ <xsl:attribute name="font-size">12pt</xsl:attribute>
2397
+
2398
+ <fo:inline padding-right="2mm">
2399
+
2400
+
2401
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
2402
+
2403
+
2404
+ <xsl:variable name="title-note">
2405
+ <xsl:call-template name="getTitle">
2406
+ <xsl:with-param name="name" select="'title-note'"/>
2407
+ </xsl:call-template>
2408
+ </xsl:variable>
2409
+ <xsl:value-of select="$title-note"/>
2410
+
2411
+ <xsl:variable name="id" select="ancestor::*[local-name() = 'table'][1]/@id"/>
2412
+ <xsl:if test="count(//*[local-name()='note'][ancestor::*[@id = $id]]) &gt; 1">
2413
+ <xsl:number count="*[local-name()='note'][ancestor::*[@id = $id]]" level="any"/>
2414
+ </xsl:if>
2415
+
2416
+
2417
+
2418
+
2419
+ </fo:inline>
2420
+ <xsl:apply-templates mode="process"/>
2421
+ </fo:block>
2422
+
2423
+ </xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
2424
+ <xsl:apply-templates/>
2425
+ </xsl:template><xsl:template name="fn_display">
2426
+ <xsl:variable name="references">
2427
+ <xsl:for-each select="..//*[local-name()='fn'][local-name(..) != 'name']">
2428
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
2429
+
2430
+
2431
+ <xsl:apply-templates/>
2432
+ </fn>
2433
+ </xsl:for-each>
2434
+ </xsl:variable>
2435
+ <xsl:for-each select="xalan:nodeset($references)//fn">
2436
+ <xsl:variable name="reference" select="@reference"/>
2437
+ <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
2438
+ <fo:block margin-bottom="12pt">
2439
+
2440
+
2441
+
2442
+
2443
+ <fo:inline font-size="80%" padding-right="5mm" id="{@id}">
2444
+
2445
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
2446
+
2447
+
2448
+
2449
+
2450
+
2451
+
2452
+ <xsl:value-of select="@reference"/>
2453
+
2454
+ </fo:inline>
2455
+ <fo:inline>
2456
+
2457
+ <xsl:apply-templates/>
2458
+ </fo:inline>
2459
+ </fo:block>
2460
+ </xsl:if>
2461
+ </xsl:for-each>
2462
+ </xsl:template><xsl:template name="fn_name_display">
2463
+ <!-- <xsl:variable name="references">
2464
+ <xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
2465
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
2466
+ <xsl:apply-templates />
2467
+ </fn>
2468
+ </xsl:for-each>
2469
+ </xsl:variable>
2470
+ $references=<xsl:copy-of select="$references"/> -->
2471
+ <xsl:for-each select="*[local-name()='name']//*[local-name()='fn']">
2472
+ <xsl:variable name="reference" select="@reference"/>
2473
+ <fo:block id="{@reference}_{ancestor::*[@id][1]/@id}"><xsl:value-of select="@reference"/></fo:block>
2474
+ <fo:block margin-bottom="12pt">
2475
+ <xsl:apply-templates/>
2476
+ </fo:block>
2477
+ </xsl:for-each>
2478
+ </xsl:template><xsl:template name="fn_display_figure">
2479
+ <xsl:variable name="key_iso">
2480
+ <!-- and (not(@class) or @class !='pseudocode') -->
2481
+ </xsl:variable>
2482
+ <xsl:variable name="references">
2483
+ <xsl:for-each select=".//*[local-name()='fn']">
2484
+ <fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
2485
+ <xsl:apply-templates/>
2486
+ </fn>
2487
+ </xsl:for-each>
2488
+ </xsl:variable>
2489
+
2490
+ <!-- current hierarchy is 'figure' element -->
2491
+ <xsl:variable name="following_dl_colwidths">
2492
+ <xsl:if test="*[local-name() = 'dl']"><!-- if there is a 'dl', then set the same columns width as for 'dl' -->
2493
+ <xsl:variable name="html-table">
2494
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2495
+ <xsl:element name="{$ns}:table">
2496
+ <xsl:for-each select="*[local-name() = 'dl'][1]">
2497
+ <tbody>
2498
+ <xsl:apply-templates mode="dl"/>
2499
+ </tbody>
2500
+ </xsl:for-each>
2501
+ </xsl:element>
2502
+ </xsl:variable>
2503
+
2504
+ <xsl:call-template name="calculate-column-widths">
2505
+ <xsl:with-param name="cols-count" select="2"/>
2506
+ <xsl:with-param name="table" select="$html-table"/>
2507
+ </xsl:call-template>
2508
+
2509
+ </xsl:if>
2510
+ </xsl:variable>
2511
+
2512
+
2513
+ <xsl:variable name="maxlength_dt">
2514
+ <xsl:for-each select="*[local-name() = 'dl'][1]">
2515
+ <xsl:call-template name="getMaxLength_dt"/>
2516
+ </xsl:for-each>
2517
+ </xsl:variable>
2518
+
2519
+ <xsl:if test="xalan:nodeset($references)//fn">
2520
+ <fo:block>
2521
+ <fo:table width="95%" table-layout="fixed">
2522
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2523
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
2524
+
2525
+ </xsl:if>
2526
+ <xsl:choose>
2527
+ <!-- if there 'dl', then set same columns width -->
2528
+ <xsl:when test="xalan:nodeset($following_dl_colwidths)//column">
2529
+ <xsl:call-template name="setColumnWidth_dl">
2530
+ <xsl:with-param name="colwidths" select="$following_dl_colwidths"/>
2531
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
2532
+ </xsl:call-template>
2533
+ </xsl:when>
2534
+ <xsl:otherwise>
2535
+ <fo:table-column column-width="15%"/>
2536
+ <fo:table-column column-width="85%"/>
2537
+ </xsl:otherwise>
2538
+ </xsl:choose>
2539
+ <fo:table-body>
2540
+ <xsl:for-each select="xalan:nodeset($references)//fn">
2541
+ <xsl:variable name="reference" select="@reference"/>
2542
+ <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
2543
+ <fo:table-row>
2544
+ <fo:table-cell>
2545
+ <fo:block>
2546
+ <fo:inline font-size="80%" padding-right="5mm" vertical-align="super" id="{@id}">
2547
+
2548
+ <xsl:value-of select="@reference"/>
2549
+ </fo:inline>
2550
+ </fo:block>
2551
+ </fo:table-cell>
2552
+ <fo:table-cell>
2553
+ <fo:block text-align="justify" margin-bottom="12pt">
2554
+
2555
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2556
+ <xsl:attribute name="margin-bottom">0</xsl:attribute>
2557
+ </xsl:if>
2558
+
2559
+ <xsl:apply-templates/>
2560
+ </fo:block>
2561
+ </fo:table-cell>
2562
+ </fo:table-row>
2563
+ </xsl:if>
2564
+ </xsl:for-each>
2565
+ </fo:table-body>
2566
+ </fo:table>
2567
+ </fo:block>
2568
+ </xsl:if>
2569
+
2570
+ </xsl:template><xsl:template match="*[local-name()='fn']">
2571
+ <!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
2572
+ <fo:inline font-size="80%" keep-with-previous.within-line="always">
2573
+
2574
+
2575
+
2576
+
2577
+ <fo:basic-link internal-destination="{@reference}_{ancestor::*[@id][1]/@id}" fox:alt-text="{@reference}"> <!-- @reference | ancestor::*[local-name()='clause'][1]/@id-->
2578
+
2579
+ <xsl:value-of select="@reference"/>
2580
+ </fo:basic-link>
2581
+ </fo:inline>
2582
+ </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
2583
+ <fo:inline>
2584
+ <xsl:apply-templates/>
2585
+ </fo:inline>
2586
+ </xsl:template><xsl:template match="*[local-name()='dl']">
2587
+ <xsl:variable name="parent" select="local-name(..)"/>
2588
+
2589
+ <xsl:variable name="key_iso">
2590
+ <!-- and (not(../@class) or ../@class !='pseudocode') -->
2591
+ </xsl:variable>
2592
+
2593
+ <xsl:choose>
2594
+ <xsl:when test="$parent = 'formula' and count(*[local-name()='dt']) = 1"> <!-- only one component -->
2595
+
2596
+
2597
+ <fo:block margin-bottom="12pt" text-align="left">
2598
+
2599
+ <xsl:variable name="title-where">
2600
+ <xsl:call-template name="getTitle">
2601
+ <xsl:with-param name="name" select="'title-where'"/>
2602
+ </xsl:call-template>
2603
+ </xsl:variable>
2604
+ <xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
2605
+ <xsl:apply-templates select="*[local-name()='dt']/*"/>
2606
+ <xsl:text/>
2607
+ <xsl:apply-templates select="*[local-name()='dd']/*" mode="inline"/>
2608
+ </fo:block>
2609
+
2610
+ </xsl:when>
2611
+ <xsl:when test="$parent = 'formula'"> <!-- a few components -->
2612
+ <fo:block margin-bottom="12pt" text-align="left">
2613
+
2614
+
2615
+
2616
+
2617
+ <xsl:variable name="title-where">
2618
+ <xsl:call-template name="getTitle">
2619
+ <xsl:with-param name="name" select="'title-where'"/>
2620
+ </xsl:call-template>
2621
+ </xsl:variable>
2622
+ <xsl:value-of select="$title-where"/>
2623
+ </fo:block>
2624
+ </xsl:when>
2625
+ <xsl:when test="$parent = 'figure' and (not(../@class) or ../@class !='pseudocode')">
2626
+ <fo:block font-weight="bold" text-align="left" margin-bottom="12pt" keep-with-next="always">
2627
+
2628
+
2629
+
2630
+ <xsl:variable name="title-key">
2631
+ <xsl:call-template name="getTitle">
2632
+ <xsl:with-param name="name" select="'title-key'"/>
2633
+ </xsl:call-template>
2634
+ </xsl:variable>
2635
+ <xsl:value-of select="$title-key"/>
2636
+ </fo:block>
2637
+ </xsl:when>
2638
+ </xsl:choose>
2639
+
2640
+ <!-- a few components -->
2641
+ <xsl:if test="not($parent = 'formula' and count(*[local-name()='dt']) = 1)">
2642
+ <fo:block>
2643
+
2644
+
2645
+
2646
+
2647
+ <xsl:attribute name="margin-left">7mm</xsl:attribute>
2648
+
2649
+ <fo:block>
2650
+
2651
+
2652
+
2653
+ <xsl:attribute name="margin-left">-3.5mm</xsl:attribute>
2654
+
2655
+
2656
+ <fo:table width="95%" table-layout="fixed">
2657
+
2658
+ <xsl:choose>
2659
+ <xsl:when test="normalize-space($key_iso) = 'true' and $parent = 'formula'">
2660
+ <!-- <xsl:attribute name="font-size">11pt</xsl:attribute> -->
2661
+ </xsl:when>
2662
+ <xsl:when test="normalize-space($key_iso) = 'true'">
2663
+ <xsl:attribute name="font-size">10pt</xsl:attribute>
2664
+
2665
+ </xsl:when>
2666
+ </xsl:choose>
2667
+ <!-- create virtual html table for dl/[dt and dd] -->
2668
+ <xsl:variable name="html-table">
2669
+ <xsl:variable name="ns" select="substring-before(name(/*), '-')"/>
2670
+ <xsl:element name="{$ns}:table">
2671
+ <tbody>
2672
+ <xsl:apply-templates mode="dl"/>
2673
+ </tbody>
2674
+ </xsl:element>
2675
+ </xsl:variable>
2676
+ <!-- html-table<xsl:copy-of select="$html-table"/> -->
2677
+ <xsl:variable name="colwidths">
2678
+ <xsl:call-template name="calculate-column-widths">
2679
+ <xsl:with-param name="cols-count" select="2"/>
2680
+ <xsl:with-param name="table" select="$html-table"/>
2681
+ </xsl:call-template>
2682
+ </xsl:variable>
2683
+ <!-- colwidths=<xsl:value-of select="$colwidths"/> -->
2684
+ <xsl:variable name="maxlength_dt">
2685
+ <xsl:call-template name="getMaxLength_dt"/>
2686
+ </xsl:variable>
2687
+ <xsl:call-template name="setColumnWidth_dl">
2688
+ <xsl:with-param name="colwidths" select="$colwidths"/>
2689
+ <xsl:with-param name="maxlength_dt" select="$maxlength_dt"/>
2690
+ </xsl:call-template>
2691
+ <fo:table-body>
2692
+ <xsl:apply-templates>
2693
+ <xsl:with-param name="key_iso" select="normalize-space($key_iso)"/>
2694
+ </xsl:apply-templates>
2695
+ </fo:table-body>
2696
+ </fo:table>
2697
+ </fo:block>
2698
+ </fo:block>
2699
+ </xsl:if>
2700
+ </xsl:template><xsl:template name="setColumnWidth_dl">
2701
+ <xsl:param name="colwidths"/>
2702
+ <xsl:param name="maxlength_dt"/>
2703
+ <xsl:choose>
2704
+ <xsl:when test="ancestor::*[local-name()='dl']"><!-- second level, i.e. inlined table -->
2705
+ <fo:table-column column-width="50%"/>
2706
+ <fo:table-column column-width="50%"/>
2707
+ </xsl:when>
2708
+ <xsl:otherwise>
2709
+ <xsl:choose>
2710
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 2"> <!-- if dt contains short text like t90, a, etc -->
2711
+ <fo:table-column column-width="5%"/>
2712
+ <fo:table-column column-width="95%"/>
2713
+ </xsl:when>
2714
+ <xsl:when test="normalize-space($maxlength_dt) != '' and number($maxlength_dt) &lt;= 5"> <!-- if dt contains short text like t90, a, etc -->
2715
+ <fo:table-column column-width="10%"/>
2716
+ <fo:table-column column-width="90%"/>
2717
+ </xsl:when>
2718
+ <!-- <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.7">
2719
+ <fo:table-column column-width="60%"/>
2720
+ <fo:table-column column-width="40%"/>
2721
+ </xsl:when> -->
2722
+ <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 1.3">
2723
+ <fo:table-column column-width="50%"/>
2724
+ <fo:table-column column-width="50%"/>
2725
+ </xsl:when>
2726
+ <xsl:when test="xalan:nodeset($colwidths)/column[1] div xalan:nodeset($colwidths)/column[2] &gt; 0.5">
2727
+ <fo:table-column column-width="40%"/>
2728
+ <fo:table-column column-width="60%"/>
2729
+ </xsl:when>
2730
+ <xsl:otherwise>
2731
+ <xsl:for-each select="xalan:nodeset($colwidths)//column">
2732
+ <xsl:choose>
2733
+ <xsl:when test=". = 1 or . = 0">
2734
+ <fo:table-column column-width="proportional-column-width(2)"/>
2735
+ </xsl:when>
2736
+ <xsl:otherwise>
2737
+ <fo:table-column column-width="proportional-column-width({.})"/>
2738
+ </xsl:otherwise>
2739
+ </xsl:choose>
2740
+ </xsl:for-each>
2741
+ </xsl:otherwise>
2742
+ </xsl:choose>
2743
+ <!-- <fo:table-column column-width="15%"/>
2744
+ <fo:table-column column-width="85%"/> -->
2745
+ </xsl:otherwise>
2746
+ </xsl:choose>
2747
+ </xsl:template><xsl:template name="getMaxLength_dt">
2748
+ <xsl:for-each select="*[local-name()='dt']">
2749
+ <xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
2750
+ <xsl:if test="position() = 1">
2751
+ <xsl:value-of select="string-length(normalize-space(.))"/>
2752
+ </xsl:if>
2753
+ </xsl:for-each>
2754
+ </xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']">
2755
+ <xsl:param name="key_iso"/>
2756
+
2757
+ <!-- <tr>
2758
+ <td>NOTE</td>
2759
+ <td>
2760
+ <xsl:apply-templates />
2761
+ </td>
2762
+ </tr>
2763
+ -->
2764
+ <fo:table-row>
2765
+ <fo:table-cell>
2766
+ <fo:block margin-top="6pt">
2767
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2768
+ <xsl:attribute name="margin-top">0</xsl:attribute>
2769
+ </xsl:if>
2770
+ <xsl:variable name="title-note">
2771
+ <xsl:call-template name="getTitle">
2772
+ <xsl:with-param name="name" select="'title-note'"/>
2773
+ </xsl:call-template>
2774
+ </xsl:variable>
2775
+ <xsl:value-of select="$title-note"/>
2776
+ </fo:block>
2777
+ </fo:table-cell>
2778
+ <fo:table-cell>
2779
+ <fo:block>
2780
+ <xsl:apply-templates/>
2781
+ </fo:block>
2782
+ </fo:table-cell>
2783
+ </fo:table-row>
2784
+ </xsl:template><xsl:template match="*[local-name()='dt']" mode="dl">
2785
+ <tr>
2786
+ <td>
2787
+ <xsl:apply-templates/>
2788
+ </td>
2789
+ <td>
2790
+
2791
+
2792
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2793
+
2794
+ </td>
2795
+ </tr>
2796
+
2797
+ </xsl:template><xsl:template match="*[local-name()='dt']">
2798
+ <xsl:param name="key_iso"/>
2799
+
2800
+ <fo:table-row>
2801
+ <fo:table-cell>
2802
+
2803
+ <fo:block margin-top="6pt">
2804
+
2805
+
2806
+ <xsl:if test="normalize-space($key_iso) = 'true'">
2807
+ <xsl:attribute name="margin-top">0</xsl:attribute>
2808
+
2809
+ </xsl:if>
2810
+
2811
+
2812
+
2813
+ <xsl:attribute name="margin-top">0pt</xsl:attribute>
2814
+ <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
2815
+
2816
+
2817
+
2818
+ <xsl:apply-templates/>
2819
+ <!-- <xsl:if test="$namespace = 'gb'">
2820
+ <xsl:if test="ancestor::*[local-name()='formula']">
2821
+ <xsl:text>—</xsl:text>
2822
+ </xsl:if>
2823
+ </xsl:if> -->
2824
+ </fo:block>
2825
+ </fo:table-cell>
2826
+ <fo:table-cell>
2827
+ <fo:block>
2828
+
2829
+
2830
+
2831
+ <xsl:apply-templates select="following-sibling::*[local-name()='dd'][1]" mode="process"/>
2832
+
2833
+ </fo:block>
2834
+ </fo:table-cell>
2835
+ </fo:table-row>
2836
+
2837
+ </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
2838
+ <xsl:apply-templates/>
2839
+ </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
2840
+ <xsl:apply-templates/>
2841
+ </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
2842
+ <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
2843
+ </xsl:template><xsl:template match="*[local-name()='em']">
2844
+ <fo:inline font-style="italic">
2845
+ <xsl:apply-templates/>
2846
+ </fo:inline>
2847
+ </xsl:template><xsl:template match="*[local-name()='strong']">
2848
+ <fo:inline font-weight="bold">
2849
+ <xsl:apply-templates/>
2850
+ </fo:inline>
2851
+ </xsl:template><xsl:template match="*[local-name()='sup']">
2852
+ <fo:inline font-size="80%" vertical-align="super">
2853
+ <xsl:apply-templates/>
2854
+ </fo:inline>
2855
+ </xsl:template><xsl:template match="*[local-name()='sub']">
2856
+ <fo:inline font-size="80%" vertical-align="sub">
2857
+ <xsl:apply-templates/>
2858
+ </fo:inline>
2859
+ </xsl:template><xsl:template match="*[local-name()='tt']">
2860
+ <fo:inline font-family="Courier" font-size="10pt">
2861
+ <xsl:apply-templates/>
2862
+ </fo:inline>
2863
+ </xsl:template><xsl:template match="*[local-name()='del']">
2864
+ <fo:inline font-size="10pt" color="red" text-decoration="line-through">
2865
+ <xsl:apply-templates/>
2866
+ </fo:inline>
2867
+ </xsl:template><xsl:template match="text()[ancestor::*[local-name()='smallcap']]">
2868
+ <xsl:variable name="text" select="normalize-space(.)"/>
2869
+ <fo:inline font-size="75%">
2870
+ <xsl:if test="string-length($text) &gt; 0">
2871
+ <xsl:call-template name="recursiveSmallCaps">
2872
+ <xsl:with-param name="text" select="$text"/>
2873
+ </xsl:call-template>
2874
+ </xsl:if>
2875
+ </fo:inline>
2876
+ </xsl:template><xsl:template name="recursiveSmallCaps">
2877
+ <xsl:param name="text"/>
2878
+ <xsl:variable name="char" select="substring($text,1,1)"/>
2879
+ <!-- <xsl:variable name="upperCase" select="translate($char, $lower, $upper)"/> -->
2880
+ <xsl:variable name="upperCase" select="java:toUpperCase(java:java.lang.String.new($char))"/>
2881
+ <xsl:choose>
2882
+ <xsl:when test="$char=$upperCase">
2883
+ <fo:inline font-size="{100 div 0.75}%">
2884
+ <xsl:value-of select="$upperCase"/>
2885
+ </fo:inline>
2886
+ </xsl:when>
2887
+ <xsl:otherwise>
2888
+ <xsl:value-of select="$upperCase"/>
2889
+ </xsl:otherwise>
2890
+ </xsl:choose>
2891
+ <xsl:if test="string-length($text) &gt; 1">
2892
+ <xsl:call-template name="recursiveSmallCaps">
2893
+ <xsl:with-param name="text" select="substring($text,2)"/>
2894
+ </xsl:call-template>
2895
+ </xsl:if>
2896
+ </xsl:template><xsl:template name="tokenize">
2897
+ <xsl:param name="text"/>
2898
+ <xsl:param name="separator" select="' '"/>
2899
+ <xsl:choose>
2900
+ <xsl:when test="not(contains($text, $separator))">
2901
+ <word>
2902
+ <xsl:variable name="str_no_en_chars" select="normalize-space(translate($text, $en_chars, ''))"/>
2903
+ <xsl:variable name="len_str_no_en_chars" select="string-length($str_no_en_chars)"/>
2904
+ <xsl:variable name="len_str_tmp" select="string-length(normalize-space($text))"/>
2905
+ <xsl:variable name="len_str">
2906
+ <xsl:choose>
2907
+ <xsl:when test="normalize-space(translate($text, $upper, '')) = ''"> <!-- english word in CAPITAL letters -->
2908
+ <xsl:value-of select="$len_str_tmp * 1.5"/>
2909
+ </xsl:when>
2910
+ <xsl:otherwise>
2911
+ <xsl:value-of select="$len_str_tmp"/>
2912
+ </xsl:otherwise>
2913
+ </xsl:choose>
2914
+ </xsl:variable>
2915
+
2916
+ <!-- <xsl:if test="$len_str_no_en_chars div $len_str &gt; 0.8">
2917
+ <xsl:message>
2918
+ div=<xsl:value-of select="$len_str_no_en_chars div $len_str"/>
2919
+ len_str=<xsl:value-of select="$len_str"/>
2920
+ len_str_no_en_chars=<xsl:value-of select="$len_str_no_en_chars"/>
2921
+ </xsl:message>
2922
+ </xsl:if> -->
2923
+ <!-- <len_str_no_en_chars><xsl:value-of select="$len_str_no_en_chars"/></len_str_no_en_chars>
2924
+ <len_str><xsl:value-of select="$len_str"/></len_str> -->
2925
+ <xsl:choose>
2926
+ <xsl:when test="$len_str_no_en_chars div $len_str &gt; 0.8"> <!-- means non-english string -->
2927
+ <xsl:value-of select="$len_str - $len_str_no_en_chars"/>
2928
+ </xsl:when>
2929
+ <xsl:otherwise>
2930
+ <xsl:value-of select="$len_str"/>
2931
+ </xsl:otherwise>
2932
+ </xsl:choose>
2933
+ </word>
2934
+ </xsl:when>
2935
+ <xsl:otherwise>
2936
+ <word>
2937
+ <xsl:value-of select="string-length(normalize-space(substring-before($text, $separator)))"/>
2938
+ </word>
2939
+ <xsl:call-template name="tokenize">
2940
+ <xsl:with-param name="text" select="substring-after($text, $separator)"/>
2941
+ </xsl:call-template>
2942
+ </xsl:otherwise>
2943
+ </xsl:choose>
2944
+ </xsl:template><xsl:template name="max_length">
2945
+ <xsl:param name="words"/>
2946
+ <xsl:for-each select="$words//word">
2947
+ <xsl:sort select="." data-type="number" order="descending"/>
2948
+ <xsl:if test="position()=1">
2949
+ <xsl:value-of select="."/>
2950
+ </xsl:if>
2951
+ </xsl:for-each>
2952
+ </xsl:template><xsl:template name="add-zero-spaces-java">
2953
+ <xsl:param name="text" select="."/>
2954
+ <!-- add zero-width space (#x200B) after characters: dash, dot, colon, equal, underscore, em dash, thin space -->
2955
+ <xsl:value-of select="java:replaceAll(java:java.lang.String.new($text),'(-|\.|:|=|_|—| )','$1​')"/>
2956
+ </xsl:template><xsl:template name="add-zero-spaces">
2957
+ <xsl:param name="text" select="."/>
2958
+ <xsl:variable name="zero-space-after-chars">-</xsl:variable>
2959
+ <xsl:variable name="zero-space-after-dot">.</xsl:variable>
2960
+ <xsl:variable name="zero-space-after-colon">:</xsl:variable>
2961
+ <xsl:variable name="zero-space-after-equal">=</xsl:variable>
2962
+ <xsl:variable name="zero-space-after-underscore">_</xsl:variable>
2963
+ <xsl:variable name="zero-space">​</xsl:variable>
2964
+ <xsl:choose>
2965
+ <xsl:when test="contains($text, $zero-space-after-chars)">
2966
+ <xsl:value-of select="substring-before($text, $zero-space-after-chars)"/>
2967
+ <xsl:value-of select="$zero-space-after-chars"/>
2968
+ <xsl:value-of select="$zero-space"/>
2969
+ <xsl:call-template name="add-zero-spaces">
2970
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-chars)"/>
2971
+ </xsl:call-template>
2972
+ </xsl:when>
2973
+ <xsl:when test="contains($text, $zero-space-after-dot)">
2974
+ <xsl:value-of select="substring-before($text, $zero-space-after-dot)"/>
2975
+ <xsl:value-of select="$zero-space-after-dot"/>
2976
+ <xsl:value-of select="$zero-space"/>
2977
+ <xsl:call-template name="add-zero-spaces">
2978
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-dot)"/>
2979
+ </xsl:call-template>
2980
+ </xsl:when>
2981
+ <xsl:when test="contains($text, $zero-space-after-colon)">
2982
+ <xsl:value-of select="substring-before($text, $zero-space-after-colon)"/>
2983
+ <xsl:value-of select="$zero-space-after-colon"/>
2984
+ <xsl:value-of select="$zero-space"/>
2985
+ <xsl:call-template name="add-zero-spaces">
2986
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-colon)"/>
2987
+ </xsl:call-template>
2988
+ </xsl:when>
2989
+ <xsl:when test="contains($text, $zero-space-after-equal)">
2990
+ <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
2991
+ <xsl:value-of select="$zero-space-after-equal"/>
2992
+ <xsl:value-of select="$zero-space"/>
2993
+ <xsl:call-template name="add-zero-spaces">
2994
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equal)"/>
2995
+ </xsl:call-template>
2996
+ </xsl:when>
2997
+ <xsl:when test="contains($text, $zero-space-after-underscore)">
2998
+ <xsl:value-of select="substring-before($text, $zero-space-after-underscore)"/>
2999
+ <xsl:value-of select="$zero-space-after-underscore"/>
3000
+ <xsl:value-of select="$zero-space"/>
3001
+ <xsl:call-template name="add-zero-spaces">
3002
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-underscore)"/>
3003
+ </xsl:call-template>
3004
+ </xsl:when>
3005
+ <xsl:otherwise>
3006
+ <xsl:value-of select="$text"/>
3007
+ </xsl:otherwise>
3008
+ </xsl:choose>
3009
+ </xsl:template><xsl:template name="add-zero-spaces-equal">
3010
+ <xsl:param name="text" select="."/>
3011
+ <xsl:variable name="zero-space-after-equals">==========</xsl:variable>
3012
+ <xsl:variable name="zero-space-after-equal">=</xsl:variable>
3013
+ <xsl:variable name="zero-space">​</xsl:variable>
3014
+ <xsl:choose>
3015
+ <xsl:when test="contains($text, $zero-space-after-equals)">
3016
+ <xsl:value-of select="substring-before($text, $zero-space-after-equals)"/>
3017
+ <xsl:value-of select="$zero-space-after-equals"/>
3018
+ <xsl:value-of select="$zero-space"/>
3019
+ <xsl:call-template name="add-zero-spaces-equal">
3020
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equals)"/>
3021
+ </xsl:call-template>
3022
+ </xsl:when>
3023
+ <xsl:when test="contains($text, $zero-space-after-equal)">
3024
+ <xsl:value-of select="substring-before($text, $zero-space-after-equal)"/>
3025
+ <xsl:value-of select="$zero-space-after-equal"/>
3026
+ <xsl:value-of select="$zero-space"/>
3027
+ <xsl:call-template name="add-zero-spaces-equal">
3028
+ <xsl:with-param name="text" select="substring-after($text, $zero-space-after-equal)"/>
3029
+ </xsl:call-template>
3030
+ </xsl:when>
3031
+ <xsl:otherwise>
3032
+ <xsl:value-of select="$text"/>
3033
+ </xsl:otherwise>
3034
+ </xsl:choose>
3035
+ </xsl:template><xsl:template name="getSimpleTable">
3036
+ <xsl:variable name="simple-table">
3037
+
3038
+ <!-- Step 1. colspan processing -->
3039
+ <xsl:variable name="simple-table-colspan">
3040
+ <tbody>
3041
+ <xsl:apply-templates mode="simple-table-colspan"/>
3042
+ </tbody>
3043
+ </xsl:variable>
3044
+
3045
+ <!-- Step 2. rowspan processing -->
3046
+ <xsl:variable name="simple-table-rowspan">
3047
+ <xsl:apply-templates select="xalan:nodeset($simple-table-colspan)" mode="simple-table-rowspan"/>
3048
+ </xsl:variable>
3049
+
3050
+ <xsl:copy-of select="xalan:nodeset($simple-table-rowspan)"/>
3051
+
3052
+ <!-- <xsl:choose>
3053
+ <xsl:when test="current()//*[local-name()='th'][@colspan] or current()//*[local-name()='td'][@colspan] ">
3054
+
3055
+ </xsl:when>
3056
+ <xsl:otherwise>
3057
+ <xsl:copy-of select="current()"/>
3058
+ </xsl:otherwise>
3059
+ </xsl:choose> -->
3060
+ </xsl:variable>
3061
+ <xsl:copy-of select="$simple-table"/>
3062
+ </xsl:template><xsl:template match="*[local-name()='thead'] | *[local-name()='tbody']" mode="simple-table-colspan">
3063
+ <xsl:apply-templates mode="simple-table-colspan"/>
3064
+ </xsl:template><xsl:template match="*[local-name()='fn']" mode="simple-table-colspan"/><xsl:template match="*[local-name()='th'] | *[local-name()='td']" mode="simple-table-colspan">
3065
+ <xsl:choose>
3066
+ <xsl:when test="@colspan">
3067
+ <xsl:variable name="td">
3068
+ <xsl:element name="td">
3069
+ <xsl:attribute name="divide"><xsl:value-of select="@colspan"/></xsl:attribute>
3070
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
3071
+ <xsl:apply-templates mode="simple-table-colspan"/>
3072
+ </xsl:element>
3073
+ </xsl:variable>
3074
+ <xsl:call-template name="repeatNode">
3075
+ <xsl:with-param name="count" select="@colspan"/>
3076
+ <xsl:with-param name="node" select="$td"/>
3077
+ </xsl:call-template>
3078
+ </xsl:when>
3079
+ <xsl:otherwise>
3080
+ <xsl:element name="td">
3081
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
3082
+ <xsl:apply-templates mode="simple-table-colspan"/>
3083
+ </xsl:element>
3084
+ </xsl:otherwise>
3085
+ </xsl:choose>
3086
+ </xsl:template><xsl:template match="@colspan" mode="simple-table-colspan"/><xsl:template match="*[local-name()='tr']" mode="simple-table-colspan">
3087
+ <xsl:element name="tr">
3088
+ <xsl:apply-templates select="@*" mode="simple-table-colspan"/>
3089
+ <xsl:apply-templates mode="simple-table-colspan"/>
3090
+ </xsl:element>
3091
+ </xsl:template><xsl:template match="@*|node()" mode="simple-table-colspan">
3092
+ <xsl:copy>
3093
+ <xsl:apply-templates select="@*|node()" mode="simple-table-colspan"/>
3094
+ </xsl:copy>
3095
+ </xsl:template><xsl:template name="repeatNode">
3096
+ <xsl:param name="count"/>
3097
+ <xsl:param name="node"/>
3098
+
3099
+ <xsl:if test="$count &gt; 0">
3100
+ <xsl:call-template name="repeatNode">
3101
+ <xsl:with-param name="count" select="$count - 1"/>
3102
+ <xsl:with-param name="node" select="$node"/>
3103
+ </xsl:call-template>
3104
+ <xsl:copy-of select="$node"/>
3105
+ </xsl:if>
3106
+ </xsl:template><xsl:template match="@*|node()" mode="simple-table-rowspan">
3107
+ <xsl:copy>
3108
+ <xsl:apply-templates select="@*|node()" mode="simple-table-rowspan"/>
3109
+ </xsl:copy>
3110
+ </xsl:template><xsl:template match="tbody" mode="simple-table-rowspan">
3111
+ <xsl:copy>
3112
+ <xsl:copy-of select="tr[1]"/>
3113
+ <xsl:apply-templates select="tr[2]" mode="simple-table-rowspan">
3114
+ <xsl:with-param name="previousRow" select="tr[1]"/>
3115
+ </xsl:apply-templates>
3116
+ </xsl:copy>
3117
+ </xsl:template><xsl:template match="tr" mode="simple-table-rowspan">
3118
+ <xsl:param name="previousRow"/>
3119
+ <xsl:variable name="currentRow" select="."/>
3120
+
3121
+ <xsl:variable name="normalizedTDs">
3122
+ <xsl:for-each select="xalan:nodeset($previousRow)//td">
3123
+ <xsl:choose>
3124
+ <xsl:when test="@rowspan &gt; 1">
3125
+ <xsl:copy>
3126
+ <xsl:attribute name="rowspan">
3127
+ <xsl:value-of select="@rowspan - 1"/>
3128
+ </xsl:attribute>
3129
+ <xsl:copy-of select="@*[not(name() = 'rowspan')]"/>
3130
+ <xsl:copy-of select="node()"/>
3131
+ </xsl:copy>
3132
+ </xsl:when>
3133
+ <xsl:otherwise>
3134
+ <xsl:copy-of select="$currentRow/td[1 + count(current()/preceding-sibling::td[not(@rowspan) or (@rowspan = 1)])]"/>
3135
+ </xsl:otherwise>
3136
+ </xsl:choose>
3137
+ </xsl:for-each>
3138
+ </xsl:variable>
3139
+
3140
+ <xsl:variable name="newRow">
3141
+ <xsl:copy>
3142
+ <xsl:copy-of select="$currentRow/@*"/>
3143
+ <xsl:copy-of select="xalan:nodeset($normalizedTDs)"/>
3144
+ </xsl:copy>
3145
+ </xsl:variable>
3146
+ <xsl:copy-of select="$newRow"/>
3147
+
3148
+ <xsl:apply-templates select="following-sibling::tr[1]" mode="simple-table-rowspan">
3149
+ <xsl:with-param name="previousRow" select="$newRow"/>
3150
+ </xsl:apply-templates>
3151
+ </xsl:template><xsl:template name="getLang">
3152
+ <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
3153
+ <xsl:choose>
3154
+ <xsl:when test="$language = 'English'">en</xsl:when>
3155
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
3156
+ </xsl:choose>
3157
+ </xsl:template><xsl:template name="capitalizeWords">
3158
+ <xsl:param name="str"/>
3159
+ <xsl:variable name="str2" select="translate($str, '-', ' ')"/>
3160
+ <xsl:choose>
3161
+ <xsl:when test="contains($str2, ' ')">
3162
+ <xsl:variable name="substr" select="substring-before($str2, ' ')"/>
3163
+ <!-- <xsl:value-of select="translate(substring($substr, 1, 1), $lower, $upper)"/>
3164
+ <xsl:value-of select="substring($substr, 2)"/> -->
3165
+ <xsl:call-template name="capitalize">
3166
+ <xsl:with-param name="str" select="$substr"/>
3167
+ </xsl:call-template>
3168
+ <xsl:text> </xsl:text>
3169
+ <xsl:call-template name="capitalizeWords">
3170
+ <xsl:with-param name="str" select="substring-after($str2, ' ')"/>
3171
+ </xsl:call-template>
3172
+ </xsl:when>
3173
+ <xsl:otherwise>
3174
+ <!-- <xsl:value-of select="translate(substring($str2, 1, 1), $lower, $upper)"/>
3175
+ <xsl:value-of select="substring($str2, 2)"/> -->
3176
+ <xsl:call-template name="capitalize">
3177
+ <xsl:with-param name="str" select="$str2"/>
3178
+ </xsl:call-template>
3179
+ </xsl:otherwise>
3180
+ </xsl:choose>
3181
+ </xsl:template><xsl:template name="capitalize">
3182
+ <xsl:param name="str"/>
3183
+ <xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
3184
+ <xsl:value-of select="substring($str, 2)"/>
3185
+ </xsl:template><xsl:template match="mathml:math">
3186
+ <fo:inline font-family="STIX2Math">
3187
+ <fo:instream-foreign-object fox:alt-text="Math">
3188
+ <xsl:copy-of select="."/>
3189
+ </fo:instream-foreign-object>
3190
+ </fo:inline>
3191
+ </xsl:template><xsl:template match="*[local-name()='localityStack']">
3192
+ <xsl:for-each select="*[local-name()='locality']">
3193
+ <xsl:if test="position() =1"><xsl:text>, </xsl:text></xsl:if>
3194
+ <xsl:apply-templates select="."/>
3195
+ <xsl:if test="position() != last()"><xsl:text>; </xsl:text></xsl:if>
3196
+ </xsl:for-each>
3197
+ </xsl:template><xsl:template match="*[local-name()='link']" name="link">
3198
+ <xsl:variable name="target">
3199
+ <xsl:choose>
3200
+ <xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
3201
+ <xsl:value-of select="normalize-space(substring-after(@target, 'mailto:'))"/>
3202
+ </xsl:when>
3203
+ <xsl:otherwise>
3204
+ <xsl:value-of select="normalize-space(@target)"/>
3205
+ </xsl:otherwise>
3206
+ </xsl:choose>
3207
+ </xsl:variable>
3208
+ <fo:inline xsl:use-attribute-sets="link-style">
3209
+ <xsl:choose>
3210
+ <xsl:when test="$target = ''">
3211
+ <xsl:apply-templates/>
3212
+ </xsl:when>
3213
+ <xsl:otherwise>
3214
+ <fo:basic-link external-destination="{@target}" fox:alt-text="{@target}">
3215
+ <xsl:choose>
3216
+ <xsl:when test="normalize-space(.) = ''">
3217
+ <xsl:value-of select="$target"/>
3218
+ </xsl:when>
3219
+ <xsl:otherwise>
3220
+ <xsl:apply-templates/>
3221
+ </xsl:otherwise>
3222
+ </xsl:choose>
3223
+ </fo:basic-link>
3224
+ </xsl:otherwise>
3225
+ </xsl:choose>
3226
+ </fo:inline>
3227
+ </xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
3228
+ <fo:block xsl:use-attribute-sets="sourcecode-style">
3229
+ <!-- <xsl:choose>
3230
+ <xsl:when test="@lang = 'en'"></xsl:when>
3231
+ <xsl:otherwise> -->
3232
+ <xsl:attribute name="white-space">pre</xsl:attribute>
3233
+ <xsl:attribute name="wrap-option">wrap</xsl:attribute>
3234
+ <!-- </xsl:otherwise>
3235
+ </xsl:choose> -->
3236
+ <xsl:apply-templates/>
3237
+ </fo:block>
3238
+ </xsl:template><xsl:template match="*[local-name()='bookmark']">
3239
+ <fo:inline id="{@id}"/>
3240
+ </xsl:template><xsl:template match="*[local-name()='appendix']">
3241
+ <fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
3242
+ <xsl:variable name="title-appendix">
3243
+ <xsl:call-template name="getTitle">
3244
+ <xsl:with-param name="name" select="'title-appendix'"/>
3245
+ </xsl:call-template>
3246
+ </xsl:variable>
3247
+ <fo:inline padding-right="5mm"><xsl:value-of select="$title-appendix"/> <xsl:number/></fo:inline>
3248
+ <xsl:apply-templates select="*[local-name()='title']" mode="process"/>
3249
+ </fo:block>
3250
+ <xsl:apply-templates/>
3251
+ </xsl:template><xsl:template match="*[local-name()='appendix']/*[local-name()='title']"/><xsl:template match="*[local-name()='appendix']/*[local-name()='title']" mode="process">
3252
+ <fo:inline><xsl:apply-templates/></fo:inline>
3253
+ </xsl:template><xsl:template match="*[local-name()='appendix']//*[local-name()='example']">
3254
+ <fo:block xsl:use-attribute-sets="appendix-example-style">
3255
+ <xsl:variable name="claims_id" select="ancestor::*[local-name()='clause'][1]/@id"/>
3256
+ <xsl:variable name="title-example">
3257
+ <xsl:call-template name="getTitle">
3258
+ <xsl:with-param name="name" select="'title-example'"/>
3259
+ </xsl:call-template>
3260
+ </xsl:variable>
3261
+ <xsl:value-of select="$title-example"/>
3262
+ <xsl:if test="count(ancestor::*[local-name()='clause'][1]//*[local-name()='example']) &gt; 1">
3263
+ <xsl:number count="*[local-name()='example'][ancestor::*[local-name()='clause'][@id = $claims_id]]" level="any"/><xsl:text> </xsl:text>
3264
+ </xsl:if>
3265
+ <xsl:if test="*[local-name()='name']">
3266
+ <xsl:text>— </xsl:text><xsl:apply-templates select="*[local-name()='name']" mode="process"/>
3267
+ </xsl:if>
3268
+ </fo:block>
3269
+ <xsl:apply-templates/>
3270
+ </xsl:template><xsl:template match="*[local-name()='appendix']//*[local-name()='example']/*[local-name()='name']"/><xsl:template match="*[local-name()='appendix']//*[local-name()='example']/*[local-name()='name']" mode="process">
3271
+ <fo:inline><xsl:apply-templates/></fo:inline>
3272
+ </xsl:template><xsl:template match="*[local-name() = 'callout']">
3273
+ <fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}">&lt;<xsl:apply-templates/>&gt;</fo:basic-link>
3274
+ </xsl:template><xsl:template match="*[local-name() = 'annotation']">
3275
+ <xsl:variable name="annotation-id" select="@id"/>
3276
+ <xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
3277
+ <fo:block id="{$annotation-id}" white-space="nowrap">
3278
+ <fo:inline>
3279
+ <xsl:apply-templates>
3280
+ <xsl:with-param name="callout" select="concat('&lt;', $callout, '&gt; ')"/>
3281
+ </xsl:apply-templates>
3282
+ </fo:inline>
3283
+ </fo:block>
3284
+ </xsl:template><xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
3285
+ <xsl:param name="callout"/>
3286
+ <fo:inline id="{@id}">
3287
+ <!-- for first p in annotation, put <x> -->
3288
+ <xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
3289
+ <xsl:apply-templates/>
3290
+ </fo:inline>
3291
+ </xsl:template><xsl:template match="*[local-name() = 'modification']">
3292
+ <xsl:variable name="title-modified">
3293
+ <xsl:call-template name="getTitle">
3294
+ <xsl:with-param name="name" select="'title-modified'"/>
3295
+ </xsl:call-template>
3296
+ </xsl:variable>
3297
+ <xsl:choose>
3298
+ <xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
3299
+ <xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
3300
+ </xsl:choose>
3301
+ <xsl:apply-templates/>
3302
+ </xsl:template><xsl:template name="convertDate">
3303
+ <xsl:param name="date"/>
3304
+ <xsl:param name="format" select="'short'"/>
3305
+ <xsl:variable name="year" select="substring($date, 1, 4)"/>
3306
+ <xsl:variable name="month" select="substring($date, 6, 2)"/>
3307
+ <xsl:variable name="day" select="substring($date, 9, 2)"/>
3308
+ <xsl:variable name="monthStr">
3309
+ <xsl:choose>
3310
+ <xsl:when test="$month = '01'">January</xsl:when>
3311
+ <xsl:when test="$month = '02'">February</xsl:when>
3312
+ <xsl:when test="$month = '03'">March</xsl:when>
3313
+ <xsl:when test="$month = '04'">April</xsl:when>
3314
+ <xsl:when test="$month = '05'">May</xsl:when>
3315
+ <xsl:when test="$month = '06'">June</xsl:when>
3316
+ <xsl:when test="$month = '07'">July</xsl:when>
3317
+ <xsl:when test="$month = '08'">August</xsl:when>
3318
+ <xsl:when test="$month = '09'">September</xsl:when>
3319
+ <xsl:when test="$month = '10'">October</xsl:when>
3320
+ <xsl:when test="$month = '11'">November</xsl:when>
3321
+ <xsl:when test="$month = '12'">December</xsl:when>
3322
+ </xsl:choose>
3323
+ </xsl:variable>
3324
+ <xsl:variable name="result">
3325
+ <xsl:choose>
3326
+ <xsl:when test="$format = 'short' or $day = ''">
3327
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $year))"/>
3328
+ </xsl:when>
3329
+ <xsl:otherwise>
3330
+ <xsl:value-of select="normalize-space(concat($monthStr, ' ', $day, ', ' , $year))"/>
3331
+ </xsl:otherwise>
3332
+ </xsl:choose>
3333
+ </xsl:variable>
3334
+ <xsl:value-of select="$result"/>
3335
+ </xsl:template><xsl:template name="insertKeywords">
3336
+ <xsl:param name="sorting" select="'true'"/>
3337
+ <xsl:param name="charAtEnd" select="'.'"/>
3338
+ <xsl:param name="charDelim" select="', '"/>
3339
+ <xsl:choose>
3340
+ <xsl:when test="$sorting = 'true' or $sorting = 'yes'">
3341
+ <xsl:for-each select="/*/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
3342
+ <xsl:sort data-type="text" order="ascending"/>
3343
+ <xsl:call-template name="insertKeyword">
3344
+ <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
3345
+ <xsl:with-param name="charDelim" select="$charDelim"/>
3346
+ </xsl:call-template>
3347
+ </xsl:for-each>
3348
+ </xsl:when>
3349
+ <xsl:otherwise>
3350
+ <xsl:for-each select="/*/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
3351
+ <xsl:call-template name="insertKeyword">
3352
+ <xsl:with-param name="charAtEnd" select="$charAtEnd"/>
3353
+ <xsl:with-param name="charDelim" select="$charDelim"/>
3354
+ </xsl:call-template>
3355
+ </xsl:for-each>
3356
+ </xsl:otherwise>
3357
+ </xsl:choose>
3358
+ </xsl:template><xsl:template name="insertKeyword">
3359
+ <xsl:param name="charAtEnd"/>
3360
+ <xsl:param name="charDelim"/>
3361
+ <xsl:apply-templates/>
3362
+ <xsl:choose>
3363
+ <xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
3364
+ <xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
3365
+ </xsl:choose>
3366
+ </xsl:template><xsl:template name="addPDFUAmeta">
3367
+ <fo:declarations>
3368
+ <pdf:catalog xmlns:pdf="http://xmlgraphics.apache.org/fop/extensions/pdf">
3369
+ <pdf:dictionary type="normal" key="ViewerPreferences">
3370
+ <pdf:boolean key="DisplayDocTitle">true</pdf:boolean>
3371
+ </pdf:dictionary>
3372
+ </pdf:catalog>
3373
+ <x:xmpmeta xmlns:x="adobe:ns:meta/">
3374
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
3375
+ <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">
3376
+ <!-- Dublin Core properties go here -->
3377
+ <dc:title>
3378
+ <xsl:variable name="title">
3379
+
3380
+
3381
+ <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'title'][@language = 'en']"/>
3382
+
3383
+
3384
+
3385
+ </xsl:variable>
3386
+ <xsl:choose>
3387
+ <xsl:when test="normalize-space($title) != ''">
3388
+ <xsl:value-of select="$title"/>
3389
+ </xsl:when>
3390
+ <xsl:otherwise>
3391
+ <xsl:text> </xsl:text>
3392
+ </xsl:otherwise>
3393
+ </xsl:choose>
3394
+ </dc:title>
3395
+ <dc:creator>
3396
+
3397
+ <xsl:value-of select="/*/*[local-name() = 'bibdata']/*[local-name() = 'contributor'][*[local-name() = 'role']/@type='author']/*[local-name() = 'organization']/*[local-name() = 'name']"/>
3398
+
3399
+
3400
+ </dc:creator>
3401
+ <dc:description>
3402
+ <xsl:variable name="abstract">
3403
+
3404
+ <xsl:copy-of select="/*/*[local-name() = 'bibliography']/*[local-name() = 'references']/*[local-name() = 'bibitem']/*[local-name() = 'abstract']//text()"/>
3405
+
3406
+
3407
+
3408
+
3409
+ </xsl:variable>
3410
+ <xsl:value-of select="normalize-space($abstract)"/>
3411
+ </dc:description>
3412
+ <pdf:Keywords>
3413
+ <xsl:call-template name="insertKeywords"/>
3414
+ </pdf:Keywords>
3415
+ </rdf:Description>
3416
+ <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
3417
+ <!-- XMP properties go here -->
3418
+ <xmp:CreatorTool/>
3419
+ </rdf:Description>
3420
+ </rdf:RDF>
3421
+ </x:xmpmeta>
3422
+ </fo:declarations>
3423
+ </xsl:template><xsl:template name="getId">
3424
+ <xsl:choose>
3425
+ <xsl:when test="../@id">
3426
+ <xsl:value-of select="../@id"/>
3427
+ </xsl:when>
3428
+ <xsl:otherwise>
3429
+ <!-- <xsl:value-of select="concat(local-name(..), '_', text())"/> -->
3430
+ <xsl:value-of select="concat(generate-id(..), '_', text())"/>
3431
+ </xsl:otherwise>
3432
+ </xsl:choose>
3433
+ </xsl:template><xsl:template name="getLevel">
3434
+ <xsl:variable name="level_total" select="count(ancestor::*)"/>
3435
+ <xsl:variable name="level">
3436
+ <xsl:choose>
3437
+ <xsl:when test="ancestor::*[local-name() = 'preface']">
3438
+ <xsl:value-of select="$level_total - 2"/>
3439
+ </xsl:when>
3440
+ <xsl:when test="ancestor::*[local-name() = 'sections']">
3441
+ <xsl:value-of select="$level_total - 2"/>
3442
+ </xsl:when>
3443
+ <xsl:when test="ancestor::*[local-name() = 'bibliography']">
3444
+ <xsl:value-of select="$level_total - 2"/>
3445
+ </xsl:when>
3446
+ <xsl:when test="local-name(ancestor::*[1]) = 'annex'">1</xsl:when>
3447
+ <xsl:otherwise>
3448
+ <xsl:value-of select="$level_total - 1"/>
3449
+ </xsl:otherwise>
3450
+ </xsl:choose>
3451
+ </xsl:variable>
3452
+ <xsl:value-of select="$level"/>
3453
+ </xsl:template><xsl:template name="getSubSection">
3454
+ <xsl:number format=".1" level="multiple" count="*[local-name() = 'clause']/*[local-name() = 'clause'] | *[local-name() = 'clause']/*[local-name() = 'terms'] | *[local-name() = 'terms']/*[local-name() = 'term'] | *[local-name() = 'clause']/*[local-name() = 'term'] | *[local-name() = 'terms']/*[local-name() = 'clause'] | *[local-name() = 'terms']/*[local-name() = 'definitions'] | *[local-name() = 'definitions']/*[local-name() = 'clause'] | *[local-name() = 'clause']/*[local-name() = 'definitions'] | *[local-name() = 'definitions']/*[local-name() = 'definitions'] | *[local-name() = 'clause']/*[local-name() = 'references']"/>
3455
+ </xsl:template><xsl:template name="split">
3456
+ <xsl:param name="pText" select="."/>
3457
+ <xsl:param name="sep" select="','"/>
3458
+ <xsl:if test="string-length($pText) &gt;0">
3459
+ <item>
3460
+ <xsl:value-of select="normalize-space(substring-before(concat($pText, ','), $sep))"/>
3461
+ </item>
3462
+ <xsl:call-template name="split">
3463
+ <xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
3464
+ <xsl:with-param name="sep" select="$sep"/>
3465
+ </xsl:call-template>
3466
+ </xsl:if>
3467
+ </xsl:template><xsl:template name="getDocumentId">
3468
+ <xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
3469
+ </xsl:template><xsl:template name="namespaceCheck">
3470
+ <xsl:variable name="documentNS" select="namespace-uri(/*)"/>
3471
+ <xsl:variable name="XSLNS">
3472
+
3473
+
3474
+
3475
+
3476
+
3477
+
3478
+
3479
+
3480
+
3481
+
3482
+
3483
+ <xsl:value-of select="document('')//*/namespace::iho"/>
3484
+
3485
+
3486
+ </xsl:variable>
3487
+ <xsl:if test="$documentNS != $XSLNS">
3488
+ <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
3489
+ </xsl:if>
3490
+ </xsl:template><xsl:template name="getLanguage">
3491
+ <xsl:param name="lang"/>
3492
+ <xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
3493
+ <xsl:choose>
3494
+ <xsl:when test="$language = 'en'">English</xsl:when>
3495
+ <xsl:when test="$language = 'fr'">French</xsl:when>
3496
+ <xsl:when test="$language = 'de'">Deutsch</xsl:when>
3497
+ <xsl:when test="$language = 'cn'">Chinese</xsl:when>
3498
+ <xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
3499
+ </xsl:choose>
3500
+ </xsl:template></xsl:stylesheet>