metanorma-gb 1.4.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/Gemfile +0 -1
- data/Rakefile +17 -0
- data/lib/asciidoctor/gb/cleanup.rb +130 -0
- data/lib/asciidoctor/gb/converter.rb +15 -126
- data/lib/asciidoctor/gb/front_id.rb +3 -3
- data/lib/asciidoctor/gb/isodoc.rng +12 -6
- data/lib/asciidoctor/gb/section_input.rb +11 -0
- data/lib/asciidoctor/gb/validate.rb +0 -1
- data/lib/isodoc/gb/base_convert.rb +25 -77
- data/lib/isodoc/gb/cleanup.rb +0 -11
- data/lib/isodoc/gb/gb.recommendation.xsl +1466 -1209
- data/lib/isodoc/gb/html/_coverpage.css +193 -0
- data/lib/isodoc/gb/html/gb.css +657 -0
- data/lib/isodoc/gb/html/htmlcompliantstyle.css +1303 -0
- data/lib/isodoc/gb/html/htmlcompliantstyle.scss +0 -1
- data/lib/isodoc/gb/html/htmlstyle.css +844 -0
- data/lib/isodoc/gb/html/wordstyle.css +2932 -0
- data/lib/isodoc/gb/html_convert.rb +16 -13
- data/lib/isodoc/gb/i18n.rb +16 -0
- data/lib/isodoc/gb/init.rb +29 -0
- data/lib/isodoc/gb/metadata.rb +1 -1
- data/lib/isodoc/gb/presentation_xml_convert.rb +17 -1
- data/lib/isodoc/gb/word_convert.rb +20 -15
- data/lib/isodoc/gb/xref.rb +6 -0
- data/lib/metanorma/gb/version.rb +1 -1
- data/metanorma-gb.gemspec +3 -2
- metadata +29 -6
@@ -1,33 +1,23 @@
|
|
1
1
|
require_relative "common"
|
2
2
|
require "gb_agencies"
|
3
3
|
require_relative "cleanup"
|
4
|
-
require_relative "metadata"
|
5
4
|
require "fileutils"
|
6
5
|
|
7
6
|
module IsoDoc
|
8
7
|
module Gb
|
9
8
|
module BaseConvert
|
10
|
-
def
|
9
|
+
def scss_fontheader
|
11
10
|
b = options[:bodyfont] || "Arial"
|
12
11
|
h = options[:headerfont] || "Arial"
|
13
12
|
m = options[:monospacefont] || "Courier"
|
14
13
|
t = options[:titlefont] || "Arial"
|
15
14
|
"$bodyfont: #{b};\n$headerfont: #{h};\n$monospacefont: #{m};\n"\
|
16
15
|
"$titlefont: #{t};\n"
|
17
|
-
end
|
18
|
-
|
19
|
-
def metadata_init(lang, script, labels)
|
20
|
-
unless ["en", "zh"].include? lang
|
21
|
-
lang = "zh"
|
22
|
-
script = "Hans"
|
23
|
-
end
|
24
|
-
@meta = Metadata.new(lang, script, labels)
|
25
|
-
@meta.set(:standardclassimg, @standardclassimg)
|
26
|
-
@common.meta = @meta
|
27
16
|
end
|
28
17
|
|
29
18
|
def cleanup(docxml)
|
30
|
-
@
|
19
|
+
@i18n ||= i18n_init(@lang, @script)
|
20
|
+
@cleanup = Cleanup.new(@script, @i18n.deprecated)
|
31
21
|
super
|
32
22
|
@cleanup.cleanup(docxml)
|
33
23
|
docxml
|
@@ -38,43 +28,26 @@ module IsoDoc
|
|
38
28
|
@cleanup.example_cleanup(docxml)
|
39
29
|
end
|
40
30
|
|
41
|
-
def i18n_init(lang, script)
|
42
|
-
super
|
43
|
-
y = if lang == "en"
|
44
|
-
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
|
45
|
-
elsif lang == "zh" && script == "Hans"
|
46
|
-
YAML.load_file(File.join(File.dirname(__FILE__),
|
47
|
-
"i18n-zh-Hans.yaml"))
|
48
|
-
else
|
49
|
-
YAML.load_file(File.join(File.dirname(__FILE__),
|
50
|
-
"i18n-zh-Hans.yaml"))
|
51
|
-
end
|
52
|
-
@labels = @labels.merge(y)
|
53
|
-
end
|
54
|
-
|
55
31
|
def omit_docid_prefix(prefix)
|
56
32
|
super || prefix == "Chinese Standard"
|
57
33
|
end
|
58
34
|
|
59
|
-
def
|
60
|
-
|
61
|
-
div1.div **attr_code(class: "formula") do |div|
|
35
|
+
def formula_parse1(node, out)
|
36
|
+
out.div **attr_code(class: "formula") do |div|
|
62
37
|
insert_tab(div, 1)
|
63
38
|
parse(node.at(ns("./stem")), div)
|
64
|
-
lbl =
|
39
|
+
lbl = node&.at(ns("./name"))&.text
|
65
40
|
unless lbl.nil?
|
66
41
|
insert_tab(div, 1)
|
67
42
|
div << "(#{lbl})"
|
68
43
|
end
|
69
44
|
end
|
70
|
-
formula_where(node.at(ns("./dl")), div1)
|
71
|
-
end
|
72
45
|
end
|
73
46
|
|
74
47
|
def formula_where(dl, out)
|
75
48
|
return unless dl
|
76
49
|
out.p **{ style: "page-break-after:avoid;"} do |p|
|
77
|
-
p << @
|
50
|
+
p << @i18n.where
|
78
51
|
end
|
79
52
|
formula_dl_parse(dl, out)
|
80
53
|
end
|
@@ -99,32 +72,37 @@ module IsoDoc
|
|
99
72
|
{ class: "example_label",
|
100
73
|
style: "padding:2pt 2pt 2pt 2pt;vertical-align:top;" }.freeze
|
101
74
|
|
102
|
-
def
|
103
|
-
l10n(
|
75
|
+
def note_delim
|
76
|
+
l10n(": ")
|
104
77
|
end
|
105
78
|
|
106
79
|
def note_parse(node, out)
|
107
|
-
note_parse_table(node, out
|
80
|
+
note_parse_table(node, out)
|
108
81
|
end
|
109
82
|
|
110
|
-
def note_parse_table(node, out
|
83
|
+
def note_parse_table(node, out)
|
111
84
|
@note = true
|
85
|
+
name = node&.at(ns("./name"))&.remove
|
86
|
+
note_parse_table1(node, out, name)
|
87
|
+
@note = false
|
88
|
+
end
|
89
|
+
|
90
|
+
def note_parse_table1(node, out, name)
|
112
91
|
out.table **note_attrs(node) do |t|
|
113
92
|
t.tr do |tr|
|
114
|
-
@libdir = File.dirname(__FILE__)
|
115
93
|
tr.td **EXAMPLE_TBL_ATTR do |td|
|
116
|
-
|
94
|
+
name and name.children.each { |n| parse(n, td) }
|
95
|
+
td << note_delim
|
117
96
|
end
|
118
97
|
tr.td **{ style: "vertical-align:top;", class: "Note" } do |td|
|
119
98
|
node.children.each { |n| parse(n, td) }
|
120
99
|
end
|
121
100
|
end
|
122
101
|
end
|
123
|
-
@note = false
|
124
102
|
end
|
125
103
|
|
126
104
|
def termnote_parse(node, out)
|
127
|
-
note_parse_table(node, out
|
105
|
+
note_parse_table(node, out)
|
128
106
|
end
|
129
107
|
|
130
108
|
def middle(isoxml, out)
|
@@ -157,19 +135,19 @@ module IsoDoc
|
|
157
135
|
|
158
136
|
def deprecated_term_parse(node, out)
|
159
137
|
out.p **{ class: "DeprecatedTerms" } do |p|
|
160
|
-
p << l10n("#{@
|
138
|
+
p << l10n("#{@i18n.deprecated}: ")
|
161
139
|
node.children.each { |c| parse(c, p) }
|
162
140
|
end
|
163
141
|
end
|
164
142
|
|
165
143
|
def termref_render(x)
|
166
|
-
x.sub!(%r{\s*\[MODIFICATION\]\s*$}m, l10n(", #{@
|
144
|
+
x.sub!(%r{\s*\[MODIFICATION\]\s*$}m, l10n(", #{@i18n.modified}"))
|
167
145
|
parts = x.split(%r{(\s*\[MODIFICATION\]|,)}m)
|
168
|
-
parts[1] = l10n(", #{@
|
169
|
-
parts[1] == "," && !/^\s*#{@
|
146
|
+
parts[1] = l10n(", #{@i18n.source}") if parts.size > 1 &&
|
147
|
+
parts[1] == "," && !/^\s*#{@i18n.modified}/.match(parts[2])
|
170
148
|
parts.map do |p|
|
171
149
|
/\s*\[MODIFICATION\]/.match(p) ?
|
172
|
-
l10n(", #{@
|
150
|
+
l10n(", #{@i18n.modified} — ") : p
|
173
151
|
end.join.sub(/\A\s*/m, l10n("[")).sub(/\s*\z/m, l10n("]"))
|
174
152
|
end
|
175
153
|
|
@@ -181,42 +159,12 @@ module IsoDoc
|
|
181
159
|
end.join
|
182
160
|
end
|
183
161
|
|
184
|
-
def foreword(isoxml, out)
|
185
|
-
f = isoxml.at(ns("//foreword")) || return
|
186
|
-
page_break(out)
|
187
|
-
out.div do |s|
|
188
|
-
s.h1 **{ class: "ForewordTitle" } do |h1|
|
189
|
-
h1 << "#{@foreword_lbl} "
|
190
|
-
# insert_tab(h1, 1)
|
191
|
-
end
|
192
|
-
f.elements.each { |e| parse(e, s) unless e.name == "title" }
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
162
|
def clausedelimspace(out)
|
197
163
|
out << " "
|
198
164
|
end
|
199
165
|
|
200
|
-
def clause_name(num, title, div, header_class)
|
201
|
-
header_class = {} if header_class.nil?
|
202
|
-
div.h1 **attr_code(header_class) do |h1|
|
203
|
-
if num && !@suppressheadingnumbers
|
204
|
-
h1 << "#{num}."
|
205
|
-
h1 << " "
|
206
|
-
end
|
207
|
-
title.is_a?(String) ? h1 << title :
|
208
|
-
title&.children&.each { |c2| parse(c2, h1) }
|
209
|
-
end
|
210
|
-
div.parent.at(".//h1")
|
211
|
-
end
|
212
|
-
|
213
166
|
def example_span_label(node, div, name)
|
214
|
-
n = @xrefs.get[node["id"]]
|
215
167
|
div.span **{ class: "example_label" } do |p|
|
216
|
-
lbl = (n.nil? || n[:label].nil? || n[:label].empty?) ? @example_lbl :
|
217
|
-
l10n("#{@example_lbl} #{n[:label]}")
|
218
|
-
p << l10n(lbl + ":")
|
219
|
-
name and !lbl.nil? and p << " — "
|
220
168
|
name and name.children.each { |n| parse(n, div) }
|
221
169
|
end
|
222
170
|
end
|
data/lib/isodoc/gb/cleanup.rb
CHANGED
@@ -74,17 +74,6 @@ module IsoDoc
|
|
74
74
|
term_merge(docxml, "DeprecatedTerms")
|
75
75
|
docxml
|
76
76
|
end
|
77
|
-
|
78
|
-
=begin
|
79
|
-
def intro_cleanup(docxml)
|
80
|
-
# insert tab for purposes of ToC lining up
|
81
|
-
docxml.xpath("//h1[@class = 'IntroTitle']").each do |h1|
|
82
|
-
if h1.content == "引言"
|
83
|
-
h1.add_child('<span style="mso-tab-count:1">  </span>')
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
=end
|
88
77
|
end
|
89
78
|
end
|
90
79
|
end
|
@@ -37,23 +37,8 @@
|
|
37
37
|
-->
|
38
38
|
<xsl:variable name="contents">
|
39
39
|
<contents>
|
40
|
-
<xsl:
|
41
|
-
|
42
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:sections/gb:clause[1]" mode="contents"> <!-- [@id = '_scope'] -->
|
43
|
-
<xsl:with-param name="sectionNum" select="'1'"/>
|
44
|
-
</xsl:apply-templates>
|
45
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[1]" mode="contents"> <!-- [@id = '_normative_references'] -->
|
46
|
-
<xsl:with-param name="sectionNum" select="'2'"/>
|
47
|
-
</xsl:apply-templates>
|
48
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:sections/*[position() > 1]" mode="contents"> <!-- @id != '_scope' -->
|
49
|
-
<xsl:with-param name="sectionNumSkew" select="'1'"/>
|
50
|
-
</xsl:apply-templates>
|
51
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:annex" mode="contents"/>
|
52
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[position() > 1]" mode="contents"/> <!-- @id = '_bibliography' -->
|
53
|
-
|
54
|
-
<xsl:apply-templates select="//gb:figure" mode="contents"/>
|
55
|
-
|
56
|
-
<xsl:apply-templates select="//gb:table" mode="contents"/>
|
40
|
+
<xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
|
41
|
+
<xsl:call-template name="processMainSectionsDefault_Contents"/>
|
57
42
|
</contents>
|
58
43
|
</xsl:variable>
|
59
44
|
|
@@ -62,7 +47,7 @@
|
|
62
47
|
</xsl:variable>
|
63
48
|
|
64
49
|
<xsl:template match="/">
|
65
|
-
<xsl:
|
50
|
+
<xsl:call-template name="namespaceCheck"/>
|
66
51
|
<fo:root font-family="SimSun" font-size="10.5pt" xml:lang="{$lang}"> <!-- -->
|
67
52
|
<fo:layout-master-set>
|
68
53
|
|
@@ -344,32 +329,19 @@
|
|
344
329
|
|
345
330
|
<fo:block line-height="220%">
|
346
331
|
<xsl:variable name="margin-left">12</xsl:variable>
|
347
|
-
<xsl:for-each select="xalan:nodeset($contents)//item[@display = 'true'][not(@level = 2 and starts-with(@section, '0'))]
|
332
|
+
<xsl:for-each select="xalan:nodeset($contents)//item"><!-- [@display = 'true'][not(@level = 2 and starts-with(@section, '0'))] skip clause from preface -->
|
348
333
|
<fo:block text-align-last="justify">
|
349
334
|
<xsl:if test="@level =2">
|
350
335
|
<xsl:attribute name="margin-left">3.7mm</xsl:attribute>
|
351
336
|
</xsl:if>
|
352
337
|
<fo:basic-link internal-destination="{@id}" fox:alt-text="{text()}">
|
353
|
-
<xsl:if test="normalize-space(@section) != ''
|
354
|
-
<fo:inline>
|
355
|
-
<xsl:if test="@type = 'annex' and @level = 1">
|
356
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
357
|
-
</xsl:if>
|
338
|
+
<xsl:if test="normalize-space(@section) != ''">
|
339
|
+
<fo:inline>
|
358
340
|
<xsl:value-of select="@section"/>
|
359
341
|
</fo:inline>
|
360
|
-
<xsl:
|
361
|
-
<xsl:text>. </xsl:text>
|
362
|
-
</xsl:if>
|
363
|
-
<xsl:if test="@type = 'annex' and @level = 1">
|
364
|
-
<xsl:text> </xsl:text>
|
365
|
-
</xsl:if>
|
342
|
+
<xsl:value-of select="$tab_zh"/>
|
366
343
|
</xsl:if>
|
367
|
-
<xsl:
|
368
|
-
<fo:inline font-weight="normal">(<xsl:value-of select="@addon"/>)</fo:inline>
|
369
|
-
<xsl:text> </xsl:text>
|
370
|
-
</xsl:if>
|
371
|
-
<xsl:value-of select="text()"/>
|
372
|
-
<xsl:text> </xsl:text>
|
344
|
+
<xsl:apply-templates/>
|
373
345
|
<fo:inline keep-together.within-line="always">
|
374
346
|
<fo:leader font-weight="normal" leader-pattern="dots"/>
|
375
347
|
<fo:inline><fo:page-number-citation ref-id="{@id}"/></fo:inline>
|
@@ -383,8 +355,8 @@
|
|
383
355
|
</fo:block-container>
|
384
356
|
|
385
357
|
<!-- Foreword, Introduction -->
|
386
|
-
<fo:block line-height="150%">
|
387
|
-
<xsl:
|
358
|
+
<fo:block line-height="150%">
|
359
|
+
<xsl:call-template name="processPrefaceSectionsDefault"/>
|
388
360
|
</fo:block>
|
389
361
|
|
390
362
|
</fo:flow>
|
@@ -407,25 +379,7 @@
|
|
407
379
|
</xsl:call-template>
|
408
380
|
</fo:block>
|
409
381
|
|
410
|
-
<xsl:
|
411
|
-
<xsl:with-param name="sectionNum" select="'1'"/>
|
412
|
-
</xsl:apply-templates>
|
413
|
-
|
414
|
-
<!-- Normative references -->
|
415
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[1]">
|
416
|
-
<xsl:with-param name="sectionNum" select="'2'"/>
|
417
|
-
</xsl:apply-templates>
|
418
|
-
|
419
|
-
<!-- Main sections -->
|
420
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:sections/*[position() > 1]">
|
421
|
-
<xsl:with-param name="sectionNumSkew" select="'1'"/>
|
422
|
-
</xsl:apply-templates>
|
423
|
-
|
424
|
-
<!-- Annex(s) -->
|
425
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:annex"/>
|
426
|
-
|
427
|
-
<!-- Bibliography -->
|
428
|
-
<xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[position() > 1]"/>
|
382
|
+
<xsl:call-template name="processMainSectionsDefault"/>
|
429
383
|
|
430
384
|
</fo:block>
|
431
385
|
</fo:flow>
|
@@ -482,185 +436,57 @@
|
|
482
436
|
</xsl:if>
|
483
437
|
</xsl:template>
|
484
438
|
|
485
|
-
|
486
|
-
|
487
|
-
<xsl:param name="sectionNum"/>
|
488
|
-
<xsl:param name="sectionNumSkew"/>
|
489
|
-
<xsl:apply-templates>
|
490
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
491
|
-
<xsl:with-param name="sectionNumSkew" select="$sectionNumSkew"/>
|
492
|
-
</xsl:apply-templates>
|
439
|
+
<xsl:template match="node()">
|
440
|
+
<xsl:apply-templates/>
|
493
441
|
</xsl:template>
|
494
442
|
|
495
443
|
<!-- ============================= -->
|
496
444
|
<!-- CONTENTS -->
|
497
445
|
<!-- ============================= -->
|
498
|
-
<xsl:template match="node()" mode="contents">
|
499
|
-
<xsl:
|
500
|
-
<xsl:param name="sectionNumSkew"/>
|
501
|
-
<xsl:apply-templates mode="contents">
|
502
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
503
|
-
<xsl:with-param name="sectionNumSkew" select="$sectionNumSkew"/>
|
504
|
-
</xsl:apply-templates>
|
446
|
+
<xsl:template match="node()" mode="contents">
|
447
|
+
<xsl:apply-templates mode="contents"/>
|
505
448
|
</xsl:template>
|
506
449
|
|
507
|
-
|
508
|
-
|
509
|
-
<!-- it's necessary, because there is itu:bibliography/itu:references from other section, but numbering should be sequental -->
|
510
|
-
<xsl:template match="gb:gb-standard/gb:sections/*" mode="contents">
|
511
|
-
<xsl:param name="sectionNum"/>
|
512
|
-
<xsl:param name="sectionNumSkew" select="0"/>
|
513
|
-
<xsl:variable name="sectionNum_">
|
514
|
-
<xsl:choose>
|
515
|
-
<xsl:when test="$sectionNum"><xsl:value-of select="$sectionNum"/></xsl:when>
|
516
|
-
<xsl:when test="$sectionNumSkew != 0">
|
517
|
-
<xsl:variable name="number"><xsl:number count="*"/></xsl:variable> <!-- gb:sections/gb:clause | gb:sections/gb:terms -->
|
518
|
-
<xsl:value-of select="$number + $sectionNumSkew"/>
|
519
|
-
</xsl:when>
|
520
|
-
<xsl:otherwise>
|
521
|
-
<xsl:number count="*"/>
|
522
|
-
</xsl:otherwise>
|
523
|
-
</xsl:choose>
|
524
|
-
</xsl:variable>
|
525
|
-
<xsl:apply-templates mode="contents">
|
526
|
-
<xsl:with-param name="sectionNum" select="$sectionNum_"/>
|
527
|
-
</xsl:apply-templates>
|
528
|
-
</xsl:template>
|
529
|
-
|
530
|
-
<!-- Any node with title element - clause, definition, annex,... -->
|
531
|
-
<xsl:template match="gb:title | gb:preferred" mode="contents">
|
532
|
-
<xsl:param name="sectionNum"/>
|
533
|
-
<!-- sectionNum=<xsl:value-of select="$sectionNum"/> -->
|
534
|
-
<xsl:variable name="id">
|
535
|
-
<xsl:call-template name="getId"/>
|
536
|
-
</xsl:variable>
|
537
|
-
|
450
|
+
<!-- element with title -->
|
451
|
+
<xsl:template match="*[gb:title]" mode="contents">
|
538
452
|
<xsl:variable name="level">
|
539
|
-
<xsl:call-template name="getLevel"
|
540
|
-
|
541
|
-
|
542
|
-
<xsl:variable name="section">
|
543
|
-
<xsl:call-template name="getSection">
|
544
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
453
|
+
<xsl:call-template name="getLevel">
|
454
|
+
<xsl:with-param name="depth" select="gb:title/@depth"/>
|
545
455
|
</xsl:call-template>
|
546
456
|
</xsl:variable>
|
547
457
|
|
548
458
|
<xsl:variable name="display">
|
549
459
|
<xsl:choose>
|
550
|
-
<xsl:when test="ancestor::gb:bibitem">false</xsl:when>
|
551
|
-
<xsl:when test="ancestor::gb:term">false</xsl:when>
|
552
|
-
<xsl:when test="
|
553
|
-
<xsl:when test="$level <= 3">true</xsl:when>
|
460
|
+
<xsl:when test="ancestor-or-self::gb:bibitem">false</xsl:when>
|
461
|
+
<xsl:when test="ancestor-or-self::gb:term">false</xsl:when>
|
462
|
+
<xsl:when test="$level <= 2">true</xsl:when>
|
554
463
|
<xsl:otherwise>false</xsl:otherwise>
|
555
464
|
</xsl:choose>
|
556
465
|
</xsl:variable>
|
557
466
|
|
558
|
-
<xsl:
|
559
|
-
|
560
|
-
<xsl:variable name="type">
|
561
|
-
<xsl:value-of select="local-name(..)"/>
|
562
|
-
</xsl:variable>
|
563
|
-
|
564
|
-
<xsl:variable name="root">
|
565
|
-
<xsl:choose>
|
566
|
-
<xsl:when test="ancestor::gb:annex">annex</xsl:when>
|
567
|
-
</xsl:choose>
|
568
|
-
</xsl:variable>
|
569
|
-
|
570
|
-
<item id="{$id}" level="{$level}" section="{$section}" display-section="{$display-section}" display="{$display}" type="{$type}" root="{$root}">
|
571
|
-
<xsl:attribute name="addon">
|
572
|
-
<xsl:if test="local-name(..) = 'annex'">
|
573
|
-
<xsl:variable name="obligation" select="../@obligation"/>
|
574
|
-
<xsl:variable name="title-obligation-normative">
|
575
|
-
<xsl:call-template name="getTitle">
|
576
|
-
<xsl:with-param name="name" select="'title-obligation-normative'"/>
|
577
|
-
</xsl:call-template>
|
578
|
-
</xsl:variable>
|
579
|
-
<xsl:choose>
|
580
|
-
<xsl:when test="$obligation = 'normative'"><xsl:value-of select="$title-obligation-normative"/></xsl:when>
|
581
|
-
<xsl:otherwise><xsl:value-of select="$obligation"/></xsl:otherwise>
|
582
|
-
</xsl:choose>
|
583
|
-
</xsl:if>
|
584
|
-
</xsl:attribute>
|
585
|
-
<xsl:value-of select="."/>
|
586
|
-
</item>
|
467
|
+
<xsl:if test="$display = 'true'">
|
587
468
|
|
588
|
-
|
589
|
-
|
590
|
-
|
469
|
+
<xsl:variable name="section">
|
470
|
+
<xsl:call-template name="getSection"/>
|
471
|
+
</xsl:variable>
|
472
|
+
|
473
|
+
<xsl:variable name="title">
|
474
|
+
<xsl:call-template name="getName"/>
|
475
|
+
</xsl:variable>
|
476
|
+
|
477
|
+
<xsl:variable name="type">
|
478
|
+
<xsl:value-of select="local-name()"/>
|
479
|
+
</xsl:variable>
|
480
|
+
|
481
|
+
<item id="{@id}" level="{$level}" section="{$section}" type="{$type}">
|
482
|
+
<xsl:apply-templates select="xalan:nodeset($title)" mode="contents_item"/>
|
483
|
+
</item>
|
484
|
+
<xsl:apply-templates mode="contents"/>
|
485
|
+
</xsl:if>
|
591
486
|
|
592
487
|
</xsl:template>
|
593
488
|
|
594
489
|
|
595
|
-
<xsl:template match="gb:figure" mode="contents">
|
596
|
-
<item level="" id="{@id}" display="false">
|
597
|
-
<xsl:attribute name="section">
|
598
|
-
<xsl:call-template name="getFigureNumber"/>
|
599
|
-
</xsl:attribute>
|
600
|
-
</item>
|
601
|
-
</xsl:template>
|
602
|
-
|
603
|
-
<xsl:template match="gb:table" mode="contents">
|
604
|
-
<xsl:param name="sectionNum"/>
|
605
|
-
<xsl:variable name="annex-id" select="ancestor::gb:annex/@id"/>
|
606
|
-
<item level="" id="{@id}" display="false" type="table">
|
607
|
-
<xsl:attribute name="section">
|
608
|
-
<xsl:variable name="title-table">
|
609
|
-
<xsl:call-template name="getTitle">
|
610
|
-
<xsl:with-param name="name" select="'title-table'"/>
|
611
|
-
</xsl:call-template>
|
612
|
-
</xsl:variable>
|
613
|
-
<xsl:value-of select="$title-table"/>
|
614
|
-
<xsl:choose>
|
615
|
-
<xsl:when test="ancestor::*[local-name()='executivesummary']"> <!-- NIST -->
|
616
|
-
<xsl:text>ES-</xsl:text><xsl:number format="1" count="*[local-name()='executivesummary']//*[local-name()='table']"/>
|
617
|
-
</xsl:when>
|
618
|
-
<xsl:when test="ancestor::*[local-name()='annex']">
|
619
|
-
<xsl:number format="A-" count="gb:annex"/>
|
620
|
-
<xsl:number format="1" level="any" count="gb:table[ancestor::gb:annex[@id = $annex-id]]"/>
|
621
|
-
</xsl:when>
|
622
|
-
<xsl:otherwise>
|
623
|
-
<!-- <xsl:number format="1"/> -->
|
624
|
-
<xsl:number format="1" level="any" count="*[local-name()='sections']//*[local-name()='table']"/>
|
625
|
-
</xsl:otherwise>
|
626
|
-
</xsl:choose>
|
627
|
-
</xsl:attribute>
|
628
|
-
<xsl:value-of select="gb:name/text()"/>
|
629
|
-
</item>
|
630
|
-
</xsl:template>
|
631
|
-
|
632
|
-
<xsl:template match="gb:formula" mode="contents">
|
633
|
-
<item level="" id="{@id}" display="false">
|
634
|
-
<xsl:attribute name="section">
|
635
|
-
<xsl:variable name="title-formula">
|
636
|
-
<xsl:call-template name="getTitle">
|
637
|
-
<xsl:with-param name="name" select="'title-formula'"/>
|
638
|
-
</xsl:call-template>
|
639
|
-
</xsl:variable>
|
640
|
-
<xsl:value-of select="$title-formula"/><xsl:number format="(A.1)" level="multiple" count="gb:annex | gb:formula"/>
|
641
|
-
</xsl:attribute>
|
642
|
-
</item>
|
643
|
-
</xsl:template>
|
644
|
-
|
645
|
-
<xsl:template match="gb:li" mode="contents">
|
646
|
-
<xsl:param name="sectionNum"/>
|
647
|
-
<item level="" id="{@id}" display="false" type="li">
|
648
|
-
<xsl:attribute name="section">
|
649
|
-
<xsl:call-template name="getListItemFormat"/>
|
650
|
-
</xsl:attribute>
|
651
|
-
<xsl:attribute name="parent_section">
|
652
|
-
<xsl:for-each select="ancestor::*[not(local-name() = 'p' or local-name() = 'ol')][1]">
|
653
|
-
<xsl:call-template name="getSection">
|
654
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
655
|
-
</xsl:call-template>
|
656
|
-
</xsl:for-each>
|
657
|
-
</xsl:attribute>
|
658
|
-
</item>
|
659
|
-
<xsl:apply-templates mode="contents">
|
660
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
661
|
-
</xsl:apply-templates>
|
662
|
-
</xsl:template>
|
663
|
-
|
664
490
|
<xsl:template name="getListItemFormat">
|
665
491
|
<xsl:choose>
|
666
492
|
<xsl:when test="local-name(..) = 'ul'">—</xsl:when> <!-- dash -->
|
@@ -683,6 +509,9 @@
|
|
683
509
|
<!-- ============================= -->
|
684
510
|
<!-- ============================= -->
|
685
511
|
|
512
|
+
<xsl:template match="*[local-name() = 'tab']" priority="2">
|
513
|
+
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
514
|
+
</xsl:template>
|
686
515
|
|
687
516
|
<xsl:template match="gb:license-statement//gb:title">
|
688
517
|
<fo:block text-align="center" font-weight="bold">
|
@@ -729,87 +558,50 @@
|
|
729
558
|
</fo:block>
|
730
559
|
</xsl:template>
|
731
560
|
|
732
|
-
<!-- Foreword, Introduction -->
|
733
|
-
<xsl:template match="gb:gb-standard/gb:preface/*">
|
734
|
-
<fo:block break-after="page"/>
|
735
|
-
<xsl:apply-templates/>
|
736
|
-
</xsl:template>
|
737
561
|
|
562
|
+
<!-- ====== -->
|
563
|
+
<!-- title -->
|
564
|
+
<!-- ====== -->
|
738
565
|
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
<
|
744
|
-
<xsl:
|
745
|
-
|
746
|
-
<xsl:
|
747
|
-
</xsl:
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
<xsl:when test="$sectionNum"><xsl:value-of select="$sectionNum"/></xsl:when>
|
752
|
-
<xsl:when test="$sectionNumSkew != 0">
|
753
|
-
<xsl:variable name="number"><xsl:number count="gb:sections/gb:clause | gb:sections/gb:terms"/></xsl:variable>
|
754
|
-
<xsl:value-of select="$number + $sectionNumSkew"/>
|
755
|
-
</xsl:when>
|
756
|
-
</xsl:choose>
|
757
|
-
</xsl:variable>
|
758
|
-
<xsl:if test="not(gb:title)">
|
759
|
-
<fo:block margin-top="3pt" margin-bottom="12pt">
|
760
|
-
<xsl:value-of select="$sectionNum_"/><xsl:number format=".1 " level="multiple" count="gb:clause"/>
|
761
|
-
</fo:block>
|
762
|
-
</xsl:if>
|
763
|
-
<xsl:apply-templates>
|
764
|
-
<xsl:with-param name="sectionNum" select="$sectionNum_"/>
|
765
|
-
</xsl:apply-templates>
|
566
|
+
<xsl:template match="gb:annex/gb:title">
|
567
|
+
<xsl:variable name="level">
|
568
|
+
<xsl:call-template name="getLevel"/>
|
569
|
+
</xsl:variable>
|
570
|
+
<xsl:variable name="font-family">
|
571
|
+
<xsl:choose>
|
572
|
+
<xsl:when test="$level >= 3">SimSun</xsl:when>
|
573
|
+
<xsl:otherwise>SimHei</xsl:otherwise>
|
574
|
+
</xsl:choose>
|
575
|
+
</xsl:variable>
|
576
|
+
<fo:block font-family="{$font-family}" font-size="10.5pt" text-align="center" margin-bottom="24pt" keep-with-next="always">
|
577
|
+
<xsl:apply-templates/>
|
766
578
|
</fo:block>
|
767
579
|
</xsl:template>
|
768
580
|
|
769
|
-
|
770
|
-
<xsl:template match="gb:
|
771
|
-
<
|
772
|
-
|
773
|
-
<xsl:call-template name="getSection">
|
774
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
775
|
-
</xsl:call-template>
|
776
|
-
</xsl:variable>
|
777
|
-
<fo:block margin-top="6pt" margin-bottom="6pt" keep-with-next="always">
|
778
|
-
<fo:inline font-family="SimHei">
|
779
|
-
<xsl:value-of select="$section"/><xsl:text>.</xsl:text>
|
780
|
-
</fo:inline>
|
581
|
+
<!-- Bibliography -->
|
582
|
+
<xsl:template match="gb:references[not(@normative='true')]/gb:title">
|
583
|
+
<fo:block font-family="SimHei" text-align="center" margin-top="6pt" margin-bottom="16pt" keep-with-next="always">
|
584
|
+
<xsl:apply-templates/>
|
781
585
|
</fo:block>
|
782
|
-
<xsl:apply-templates>
|
783
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
784
|
-
</xsl:apply-templates>
|
785
586
|
</xsl:template>
|
786
587
|
|
787
|
-
|
788
588
|
<xsl:template match="gb:title">
|
789
|
-
<xsl:param name="sectionNum"/>
|
790
|
-
|
791
|
-
<xsl:variable name="parent-name" select="local-name(..)"/>
|
792
|
-
<xsl:variable name="references_num_current">
|
793
|
-
<xsl:number level="any" count="gb:references"/>
|
794
|
-
</xsl:variable>
|
795
|
-
|
796
|
-
<xsl:variable name="id">
|
797
|
-
<xsl:call-template name="getId"/>
|
798
|
-
</xsl:variable>
|
799
589
|
|
800
590
|
<xsl:variable name="level">
|
801
591
|
<xsl:call-template name="getLevel"/>
|
802
592
|
</xsl:variable>
|
803
593
|
|
804
|
-
<xsl:variable name="
|
805
|
-
<xsl:
|
806
|
-
<xsl:
|
807
|
-
|
594
|
+
<xsl:variable name="element-name">
|
595
|
+
<xsl:choose>
|
596
|
+
<xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
|
597
|
+
<xsl:otherwise>fo:block</xsl:otherwise>
|
598
|
+
</xsl:choose>
|
808
599
|
</xsl:variable>
|
809
600
|
|
810
601
|
<xsl:variable name="font-family">
|
811
602
|
<xsl:choose>
|
812
603
|
<xsl:when test="ancestor::gb:annex and $level >= 3">SimSun</xsl:when>
|
604
|
+
<xsl:when test="$element-name = 'fo:inline'">SimSun</xsl:when>
|
813
605
|
<xsl:otherwise>SimHei</xsl:otherwise>
|
814
606
|
</xsl:choose>
|
815
607
|
</xsl:variable>
|
@@ -821,98 +613,65 @@
|
|
821
613
|
</xsl:choose>
|
822
614
|
</xsl:variable>
|
823
615
|
|
824
|
-
<xsl:variable name="element-name">
|
825
|
-
<xsl:choose>
|
826
|
-
<xsl:when test="../@inline-header = 'true'">fo:inline</xsl:when>
|
827
|
-
<xsl:otherwise>fo:block</xsl:otherwise>
|
828
|
-
</xsl:choose>
|
829
|
-
</xsl:variable>
|
830
616
|
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
</fo:block>
|
854
|
-
</xsl:when>
|
855
|
-
<xsl:when test="$parent-name = 'references' and $references_num_current != 1"> <!-- Bibliography -->
|
856
|
-
<fo:block id="{$id}" font-family="{$font-family}" text-align="center" margin-top="6pt" margin-bottom="16pt" keep-with-next="always">
|
857
|
-
<xsl:apply-templates/>
|
858
|
-
</fo:block>
|
859
|
-
</xsl:when>
|
617
|
+
|
618
|
+
<xsl:element name="{$element-name}">
|
619
|
+
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
620
|
+
<xsl:attribute name="font-family"><xsl:value-of select="$font-family"/></xsl:attribute>
|
621
|
+
<xsl:attribute name="margin-top">
|
622
|
+
<xsl:choose>
|
623
|
+
<xsl:when test="ancestor::gb:preface">8pt</xsl:when>
|
624
|
+
<xsl:when test="$level = 2 and ancestor::gb:annex">10pt</xsl:when>
|
625
|
+
<xsl:when test="$level = 1">16pt</xsl:when>
|
626
|
+
<xsl:when test="$level = ''">6pt</xsl:when>
|
627
|
+
<xsl:when test="$level >= 5">6pt</xsl:when>
|
628
|
+
<xsl:otherwise>12pt</xsl:otherwise>
|
629
|
+
</xsl:choose>
|
630
|
+
</xsl:attribute>
|
631
|
+
<xsl:attribute name="margin-bottom">
|
632
|
+
<xsl:choose>
|
633
|
+
<xsl:when test="ancestor::gb:preface">24pt</xsl:when>
|
634
|
+
<xsl:when test="$level = 1">16pt</xsl:when>
|
635
|
+
<xsl:when test="$level >= 5">6pt</xsl:when>
|
636
|
+
<xsl:otherwise>8pt</xsl:otherwise>
|
637
|
+
</xsl:choose>
|
638
|
+
</xsl:attribute>
|
860
639
|
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
<xsl:attribute name="font-family">SimHei</xsl:attribute>
|
886
|
-
</xsl:if>
|
887
|
-
<xsl:if test="$element-name = 'fo:inline'">
|
888
|
-
<xsl:attribute name="padding-left">7.4mm</xsl:attribute>
|
889
|
-
</xsl:if>
|
890
|
-
|
891
|
-
<xsl:value-of select="$section"/>
|
892
|
-
<xsl:if test="$section != ''">. </xsl:if>
|
640
|
+
|
641
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
642
|
+
<xsl:if test="ancestor::gb:preface">
|
643
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
644
|
+
<xsl:attribute name="font-family">SimHei</xsl:attribute>
|
645
|
+
</xsl:if>
|
646
|
+
<xsl:if test="$element-name = 'fo:inline'">
|
647
|
+
<xsl:attribute name="padding-left">7.4mm</xsl:attribute>
|
648
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
649
|
+
</xsl:if>
|
650
|
+
|
651
|
+
<xsl:apply-templates/>
|
652
|
+
|
653
|
+
<xsl:if test="$element-name = 'fo:inline'">
|
654
|
+
<xsl:value-of select="$tab_zh"/>
|
655
|
+
</xsl:if>
|
656
|
+
|
657
|
+
</xsl:element>
|
658
|
+
|
659
|
+
<xsl:if test="$element-name = 'fo:inline' and not(following-sibling::gb:p)">
|
660
|
+
<!-- <fo:block> -->
|
661
|
+
<xsl:value-of select="$linebreak"/>
|
662
|
+
<!-- </fo:block> -->
|
663
|
+
</xsl:if>
|
893
664
|
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
<xsl:if test="$element-name = 'fo:inline' and not(following-sibling::gb:p)">
|
898
|
-
<!-- <fo:block> -->
|
899
|
-
<xsl:value-of select="$linebreak"/>
|
900
|
-
<!-- </fo:block> -->
|
901
|
-
</xsl:if>
|
902
|
-
</xsl:otherwise>
|
903
|
-
</xsl:choose>
|
904
|
-
</xsl:template>
|
665
|
+
</xsl:template>
|
666
|
+
<!-- ====== -->
|
667
|
+
<!-- ====== -->
|
905
668
|
|
906
|
-
|
907
669
|
|
908
|
-
<xsl:template match="gb:p">
|
909
|
-
<xsl:param name="inline" select="'false'"/>
|
670
|
+
<xsl:template match="gb:p">
|
910
671
|
<xsl:variable name="previous-element" select="local-name(preceding-sibling::*[1])"/>
|
911
672
|
<xsl:variable name="element-name">
|
912
|
-
<xsl:choose>
|
913
|
-
<xsl:when test="
|
914
|
-
<xsl:when test="../@inline-header = 'true' and $previous-element = 'title'">fo:inline</xsl:when> <!-- first paragraph after inline title -->
|
915
|
-
<!-- <xsl:when test="local-name(..) = 'admonition'">fo:inline</xsl:when> -->
|
673
|
+
<xsl:choose>
|
674
|
+
<xsl:when test="../@inline-header = 'true' and $previous-element = 'title'">fo:inline</xsl:when> <!-- first paragraph after inline title -->
|
916
675
|
<xsl:otherwise>fo:block</xsl:otherwise>
|
917
676
|
</xsl:choose>
|
918
677
|
</xsl:variable>
|
@@ -922,7 +681,7 @@
|
|
922
681
|
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
923
682
|
<xsl:when test="ancestor::gb:td/@align"><xsl:value-of select="ancestor::gb:td/@align"/></xsl:when>
|
924
683
|
<xsl:when test="ancestor::gb:th/@align"><xsl:value-of select="ancestor::gb:th/@align"/></xsl:when>
|
925
|
-
<xsl:otherwise>justify</xsl:otherwise
|
684
|
+
<xsl:otherwise>justify</xsl:otherwise>
|
926
685
|
</xsl:choose>
|
927
686
|
</xsl:attribute>
|
928
687
|
<xsl:attribute name="text-indent">
|
@@ -937,21 +696,9 @@
|
|
937
696
|
</xsl:if>
|
938
697
|
<xsl:apply-templates/>
|
939
698
|
</xsl:element>
|
940
|
-
<xsl:if test="$element-name = 'fo:inline' and not(
|
941
|
-
<xsl:
|
942
|
-
|
943
|
-
<xsl:value-of select="$linebreak"/>
|
944
|
-
</xsl:when>
|
945
|
-
<xsl:otherwise>
|
946
|
-
<fo:block margin-bottom="12pt">
|
947
|
-
<xsl:value-of select="$linebreak"/>
|
948
|
-
</fo:block>
|
949
|
-
</xsl:otherwise>
|
950
|
-
</xsl:choose>
|
951
|
-
</xsl:if>
|
952
|
-
<xsl:if test="$inline = 'true'">
|
953
|
-
<fo:block> </fo:block>
|
954
|
-
</xsl:if>
|
699
|
+
<xsl:if test="$element-name = 'fo:inline' and not(local-name(..) = 'admonition')">
|
700
|
+
<xsl:value-of select="$linebreak"/>
|
701
|
+
</xsl:if>
|
955
702
|
</xsl:template>
|
956
703
|
|
957
704
|
<xsl:template match="gb:li//gb:p//text()">
|
@@ -994,13 +741,13 @@
|
|
994
741
|
<fo:inline font-size="60%" keep-with-previous.within-line="always" vertical-align="super">
|
995
742
|
<fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
|
996
743
|
<!-- <xsl:value-of select="@reference"/> -->
|
997
|
-
<xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@
|
744
|
+
<xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@normative='true' or not(preceding-sibling::gb:references)]]/gb:note)"/>
|
998
745
|
</fo:basic-link>
|
999
746
|
</fo:inline>
|
1000
747
|
<fo:footnote-body>
|
1001
748
|
<fo:block font-size="9pt" margin-bottom="12pt">
|
1002
749
|
<fo:inline font-size="50%" id="footnote_{@reference}_{$number}" keep-with-next.within-line="always" vertical-align="super">
|
1003
|
-
<xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@
|
750
|
+
<xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@normative='true' or not(preceding-sibling::gb:references)]]/gb:note)"/>
|
1004
751
|
</fo:inline>
|
1005
752
|
<xsl:for-each select="gb:p">
|
1006
753
|
<xsl:apply-templates/>
|
@@ -1023,90 +770,6 @@
|
|
1023
770
|
<xsl:apply-templates/>
|
1024
771
|
</xsl:template>
|
1025
772
|
|
1026
|
-
<xsl:template match="gb:review">
|
1027
|
-
<!-- comment 2019-11-29 -->
|
1028
|
-
<!-- <fo:block font-weight="bold">Review:</fo:block>
|
1029
|
-
<xsl:apply-templates /> -->
|
1030
|
-
</xsl:template>
|
1031
|
-
|
1032
|
-
<xsl:template match="text()">
|
1033
|
-
<xsl:value-of select="."/>
|
1034
|
-
</xsl:template>
|
1035
|
-
|
1036
|
-
<xsl:template match="gb:image">
|
1037
|
-
<fo:block-container text-align="center">
|
1038
|
-
<fo:block>
|
1039
|
-
<fo:external-graphic src="{@src}" fox:alt-text="Image {@alt}"/>
|
1040
|
-
</fo:block>
|
1041
|
-
<fo:block font-family="SimHei" margin-top="12pt" margin-bottom="12pt">
|
1042
|
-
<xsl:variable name="title-figure">
|
1043
|
-
<xsl:call-template name="getTitle">
|
1044
|
-
<xsl:with-param name="name" select="'title-figure'"/>
|
1045
|
-
</xsl:call-template>
|
1046
|
-
</xsl:variable>
|
1047
|
-
<xsl:value-of select="$title-figure"/>
|
1048
|
-
<xsl:call-template name="getFigureNumber"/>
|
1049
|
-
</fo:block>
|
1050
|
-
</fo:block-container>
|
1051
|
-
</xsl:template>
|
1052
|
-
|
1053
|
-
<xsl:template match="gb:figure">
|
1054
|
-
<fo:block-container id="{@id}">
|
1055
|
-
<fo:block>
|
1056
|
-
<xsl:apply-templates/>
|
1057
|
-
</fo:block>
|
1058
|
-
<xsl:call-template name="fn_display_figure"/>
|
1059
|
-
<xsl:for-each select="gb:note//gb:p">
|
1060
|
-
<xsl:call-template name="note"/>
|
1061
|
-
</xsl:for-each>
|
1062
|
-
<fo:block font-family="SimHei" text-align="center" margin-top="12pt" margin-bottom="12pt" keep-with-previous="always">
|
1063
|
-
<xsl:call-template name="getFigureNumber"/>
|
1064
|
-
<xsl:if test="gb:name">
|
1065
|
-
<!-- <xsl:if test="not(local-name(..) = 'figure')"> -->
|
1066
|
-
<xsl:text> — </xsl:text>
|
1067
|
-
<!-- </xsl:if> -->
|
1068
|
-
<xsl:value-of select="gb:name"/>
|
1069
|
-
</xsl:if>
|
1070
|
-
</fo:block>
|
1071
|
-
</fo:block-container>
|
1072
|
-
</xsl:template>
|
1073
|
-
|
1074
|
-
<xsl:template name="getFigureNumber">
|
1075
|
-
<xsl:variable name="title-figure">
|
1076
|
-
<xsl:call-template name="getTitle">
|
1077
|
-
<xsl:with-param name="name" select="'title-figure'"/>
|
1078
|
-
</xsl:call-template>
|
1079
|
-
</xsl:variable>
|
1080
|
-
<xsl:choose>
|
1081
|
-
<xsl:when test="ancestor::gb:annex">
|
1082
|
-
<xsl:value-of select="$title-figure"/><xsl:number format="A.1-1" level="multiple" count="gb:annex | gb:figure"/>
|
1083
|
-
</xsl:when>
|
1084
|
-
<xsl:otherwise>
|
1085
|
-
<xsl:value-of select="$title-figure"/><xsl:number format="1" level="any"/>
|
1086
|
-
</xsl:otherwise>
|
1087
|
-
</xsl:choose>
|
1088
|
-
</xsl:template>
|
1089
|
-
|
1090
|
-
<xsl:template match="gb:figure/gb:name"/>
|
1091
|
-
<xsl:template match="gb:figure/gb:fn" priority="2"/>
|
1092
|
-
<xsl:template match="gb:figure/gb:note"/>
|
1093
|
-
|
1094
|
-
|
1095
|
-
<xsl:template match="gb:figure/gb:image">
|
1096
|
-
<fo:block text-align="center">
|
1097
|
-
<xsl:variable name="src">
|
1098
|
-
<xsl:choose>
|
1099
|
-
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
1100
|
-
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
1101
|
-
</xsl:when>
|
1102
|
-
<xsl:otherwise>
|
1103
|
-
<xsl:value-of select="@src"/>
|
1104
|
-
</xsl:otherwise>
|
1105
|
-
</xsl:choose>
|
1106
|
-
</xsl:variable>
|
1107
|
-
<fo:external-graphic src="{$src}" width="100%" content-height="100%" content-width="scale-to-fit" scaling="uniform" fox:alt-text="Image {@alt}"/> <!-- src="{@src}" -->
|
1108
|
-
</fo:block>
|
1109
|
-
</xsl:template>
|
1110
773
|
|
1111
774
|
|
1112
775
|
<xsl:template match="gb:bibitem">
|
@@ -1134,7 +797,7 @@
|
|
1134
797
|
</xsl:template>
|
1135
798
|
|
1136
799
|
|
1137
|
-
<xsl:template match="gb:bibitem/gb:note">
|
800
|
+
<xsl:template match="gb:bibitem/gb:note" priority="2">
|
1138
801
|
<fo:footnote>
|
1139
802
|
<xsl:variable name="number">
|
1140
803
|
<xsl:number level="any" count="gb:bibitem/gb:note"/>
|
@@ -1164,12 +827,12 @@
|
|
1164
827
|
</xsl:if>
|
1165
828
|
<xsl:apply-templates/>
|
1166
829
|
</fo:list-block>
|
1167
|
-
<xsl:for-each select="./gb:note
|
830
|
+
<xsl:for-each select="./gb:note">
|
1168
831
|
<xsl:call-template name="note"/>
|
1169
832
|
</xsl:for-each>
|
1170
833
|
</xsl:template>
|
1171
834
|
|
1172
|
-
<xsl:template match="gb:ul//gb:note | gb:ol//gb:note"/>
|
835
|
+
<xsl:template match="gb:ul//gb:note | gb:ol//gb:note" priority="2"/>
|
1173
836
|
|
1174
837
|
<xsl:template match="gb:li">
|
1175
838
|
<fo:list-item id="{@id}">
|
@@ -1179,42 +842,23 @@
|
|
1179
842
|
</fo:block>
|
1180
843
|
</fo:list-item-label>
|
1181
844
|
<fo:list-item-body start-indent="body-start()">
|
1182
|
-
<
|
1183
|
-
|
845
|
+
<fo:block>
|
846
|
+
<xsl:apply-templates/>
|
847
|
+
<xsl:apply-templates select=".//gb:note" mode="process"/>
|
848
|
+
</fo:block>
|
1184
849
|
</fo:list-item-body>
|
1185
850
|
</fo:list-item>
|
1186
851
|
</xsl:template>
|
1187
852
|
|
1188
853
|
|
1189
|
-
<xsl:template match="gb:term">
|
1190
|
-
<xsl:param name="sectionNum"/>
|
1191
|
-
<fo:block id="{@id}" font-family="SimHei" font-size="11pt" keep-with-next="always" margin-top="10pt" margin-bottom="8pt" line-height="1.1">
|
1192
|
-
<fo:inline>
|
1193
|
-
<xsl:variable name="section">
|
1194
|
-
<xsl:for-each select="*[1]">
|
1195
|
-
<xsl:call-template name="getSection">
|
1196
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
1197
|
-
</xsl:call-template>
|
1198
|
-
</xsl:for-each>
|
1199
|
-
</xsl:variable>
|
1200
|
-
<xsl:value-of select="$section"/><xsl:text>.</xsl:text>
|
1201
|
-
</fo:inline>
|
1202
|
-
</fo:block>
|
1203
|
-
<fo:block>
|
1204
|
-
<xsl:apply-templates>
|
1205
|
-
<xsl:with-param name="sectionNum" select="$sectionNum"/>
|
1206
|
-
</xsl:apply-templates>
|
1207
|
-
</fo:block>
|
1208
|
-
</xsl:template>
|
1209
854
|
|
1210
|
-
<xsl:template match="gb:preferred">
|
1211
|
-
|
1212
|
-
|
855
|
+
<xsl:template match="gb:preferred" priority="2">
|
856
|
+
|
1213
857
|
<fo:inline font-family="SimHei" font-size="11pt">
|
1214
858
|
<xsl:if test="not(preceding-sibling::*[1][local-name() = 'preferred'])">
|
1215
859
|
<xsl:attribute name="padding-left">7.4mm</xsl:attribute>
|
1216
860
|
</xsl:if>
|
1217
|
-
<xsl:apply-templates/><xsl:
|
861
|
+
<xsl:apply-templates/><xsl:value-of select="$tab_zh"/>
|
1218
862
|
</fo:inline>
|
1219
863
|
|
1220
864
|
<xsl:if test="not(following-sibling::*[1][local-name() = 'preferred'])">
|
@@ -1223,14 +867,13 @@
|
|
1223
867
|
|
1224
868
|
</xsl:template>
|
1225
869
|
|
1226
|
-
<xsl:template match="gb:admitted">
|
1227
|
-
<xsl:param name="sectionNum"/>
|
870
|
+
<xsl:template match="gb:admitted" priority="2">
|
1228
871
|
|
1229
872
|
<fo:inline font-size="11pt">
|
1230
873
|
<xsl:if test="not(preceding-sibling::*[1][local-name() = 'admitted'])">
|
1231
874
|
<xsl:attribute name="padding-left">7.4mm</xsl:attribute>
|
1232
875
|
</xsl:if>
|
1233
|
-
<xsl:apply-templates/><xsl:
|
876
|
+
<xsl:apply-templates/><xsl:value-of select="$tab_zh"/>
|
1234
877
|
</fo:inline>
|
1235
878
|
|
1236
879
|
<xsl:if test="not(following-sibling::*[1][local-name() = 'admitted'])">
|
@@ -1239,8 +882,8 @@
|
|
1239
882
|
|
1240
883
|
</xsl:template>
|
1241
884
|
|
1242
|
-
|
1243
|
-
|
885
|
+
|
886
|
+
<xsl:template match="gb:deprecates" priority="2">
|
1244
887
|
<fo:inline font-size="11pt">
|
1245
888
|
<xsl:if test="not(preceding-sibling::*[1][local-name() = 'deprecates'])">
|
1246
889
|
<xsl:attribute name="padding-left">7.4mm</xsl:attribute>
|
@@ -1255,48 +898,12 @@
|
|
1255
898
|
</fo:inline>
|
1256
899
|
<xsl:if test="not(following-sibling::*[1][local-name() = 'deprecates'])">
|
1257
900
|
<xsl:value-of select="$linebreak"/>
|
1258
|
-
</xsl:if>
|
1259
|
-
|
1260
|
-
</xsl:template>
|
1261
|
-
|
1262
|
-
<xsl:template match="gb:definition[preceding-sibling::gb:domain]">
|
1263
|
-
<xsl:apply-templates/>
|
1264
|
-
</xsl:template>
|
1265
|
-
<xsl:template match="gb:definition[preceding-sibling::gb:domain]/gb:p">
|
1266
|
-
<fo:inline> <xsl:apply-templates/></fo:inline>
|
1267
|
-
<fo:block> </fo:block>
|
1268
|
-
</xsl:template>
|
1269
|
-
|
1270
|
-
<xsl:template match="gb:definition">
|
1271
|
-
<fo:block>
|
1272
|
-
<xsl:apply-templates/>
|
1273
|
-
</fo:block>
|
1274
|
-
</xsl:template>
|
1275
|
-
|
1276
|
-
<xsl:template match="gb:termsource">
|
1277
|
-
<fo:block text-indent="7.4mm">
|
1278
|
-
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
1279
|
-
<fo:basic-link internal-destination="{gb:origin/@bibitemid}" fox:alt-text="{gb:origin/@citeas}">
|
1280
|
-
<xsl:text>[</xsl:text> <!-- SOURCE: -->
|
1281
|
-
<xsl:value-of select="gb:origin/@citeas"/>
|
1282
|
-
|
1283
|
-
<xsl:apply-templates select="gb:origin/gb:localityStack"/>
|
1284
|
-
|
1285
|
-
</fo:basic-link>
|
1286
|
-
<xsl:apply-templates select="gb:modification"/>
|
1287
|
-
<xsl:text>]</xsl:text>
|
1288
|
-
</fo:block>
|
901
|
+
</xsl:if>
|
1289
902
|
</xsl:template>
|
1290
903
|
|
1291
904
|
|
1292
|
-
<xsl:template match="gb:modification/gb:p">
|
1293
|
-
<xsl:apply-templates/>
|
1294
|
-
</xsl:template>
|
1295
|
-
<xsl:template match="gb:modification/text()">
|
1296
|
-
<xsl:apply-templates/>
|
1297
|
-
</xsl:template>
|
1298
905
|
|
1299
|
-
<xsl:template match="gb:termnote">
|
906
|
+
<xsl:template match="gb:termnote" priority="2">
|
1300
907
|
<fo:block-container font-size="9pt" margin-left="7.4mm" margin-top="4pt" line-height="125%">
|
1301
908
|
<fo:block-container margin-left="0mm">
|
1302
909
|
<fo:table table-layout="fixed" width="100%">
|
@@ -1306,13 +913,7 @@
|
|
1306
913
|
<fo:table-row>
|
1307
914
|
<fo:table-cell>
|
1308
915
|
<fo:block font-family="SimHei">
|
1309
|
-
<xsl:
|
1310
|
-
<xsl:variable name="title-note-to-entry">
|
1311
|
-
<xsl:call-template name="getTitle">
|
1312
|
-
<xsl:with-param name="name" select="'title-note-to-entry'"/>
|
1313
|
-
</xsl:call-template>
|
1314
|
-
</xsl:variable>
|
1315
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($title-note-to-entry),'#',$num)"/>
|
916
|
+
<xsl:apply-templates select="gb:name" mode="presentation"/>
|
1316
917
|
</fo:block>
|
1317
918
|
</fo:table-cell>
|
1318
919
|
<fo:table-cell>
|
@@ -1327,48 +928,14 @@
|
|
1327
928
|
</fo:block-container>
|
1328
929
|
</xsl:template>
|
1329
930
|
|
1330
|
-
<xsl:template match="gb:termnote/gb:p">
|
1331
|
-
<fo:inline><xsl:apply-templates/></fo:inline>
|
1332
|
-
</xsl:template>
|
1333
|
-
|
1334
|
-
<xsl:template match="gb:domain">
|
1335
|
-
<fo:inline padding-left="7.4mm"><<xsl:apply-templates/>> </fo:inline>
|
1336
|
-
</xsl:template>
|
1337
|
-
|
1338
|
-
|
1339
|
-
<xsl:template match="gb:termexample">
|
1340
|
-
<fo:block font-size="9pt" margin-top="14pt" margin-bottom="14pt" text-align="justify">
|
1341
|
-
<fo:inline padding-right="1mm" font-family="SimHei">
|
1342
|
-
<xsl:variable name="title-example">
|
1343
|
-
<xsl:call-template name="getTitle">
|
1344
|
-
<xsl:with-param name="name" select="'title-example'"/>
|
1345
|
-
</xsl:call-template>
|
1346
|
-
</xsl:variable>
|
1347
|
-
<xsl:value-of select="$title-example"/>
|
1348
|
-
<xsl:if test="count(ancestor::gb:term[1]//gb:termexample) > 1">
|
1349
|
-
<xsl:number/>
|
1350
|
-
</xsl:if>
|
1351
|
-
<xsl:text>:</xsl:text>
|
1352
|
-
</fo:inline>
|
1353
|
-
<xsl:apply-templates/>
|
1354
|
-
</fo:block>
|
1355
|
-
</xsl:template>
|
1356
|
-
|
1357
|
-
<xsl:template match="gb:termexample/gb:p">
|
1358
|
-
<fo:inline><xsl:apply-templates/></fo:inline>
|
1359
|
-
</xsl:template>
|
1360
931
|
|
1361
|
-
|
1362
|
-
<xsl:template match="gb:annex">
|
1363
|
-
<fo:block break-after="page"/>
|
1364
|
-
<xsl:apply-templates/>
|
1365
|
-
</xsl:template>
|
1366
932
|
|
1367
|
-
|
1368
933
|
<!-- <xsl:template match="gb:references[@id = '_bibliography']"> -->
|
1369
|
-
<xsl:template match="gb:references[
|
934
|
+
<xsl:template match="gb:references[not(@normative='true')]">
|
1370
935
|
<fo:block break-after="page"/>
|
1371
|
-
<
|
936
|
+
<fo:block id="{@id}">
|
937
|
+
<xsl:apply-templates/>
|
938
|
+
</fo:block>
|
1372
939
|
<fo:block-container text-align="center">
|
1373
940
|
<fo:block-container margin-left="63mm" width="42mm" border-bottom="2pt solid black">
|
1374
941
|
<fo:block> </fo:block>
|
@@ -1379,7 +946,7 @@
|
|
1379
946
|
|
1380
947
|
<!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
|
1381
948
|
<!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem"> -->
|
1382
|
-
<xsl:template match="gb:references[
|
949
|
+
<xsl:template match="gb:references[not(@normative='true')]/gb:bibitem">
|
1383
950
|
<fo:list-block font-size="11pt" margin-bottom="12pt" provisional-distance-between-starts="12mm">
|
1384
951
|
<fo:list-item>
|
1385
952
|
<fo:list-item-label end-indent="label-end()">
|
@@ -1418,36 +985,15 @@
|
|
1418
985
|
</xsl:template>
|
1419
986
|
|
1420
987
|
<!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem" mode="contents"/> -->
|
1421
|
-
<xsl:template match="gb:references[
|
988
|
+
<xsl:template match="gb:references[not(@normative='true')]/gb:bibitem" mode="contents"/>
|
1422
989
|
|
1423
990
|
<!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem/gb:title"> -->
|
1424
|
-
<xsl:template match="gb:references[
|
991
|
+
<xsl:template match="gb:references[not(@normative='true')]/gb:bibitem/gb:title">
|
1425
992
|
<fo:inline font-style="italic">
|
1426
993
|
<xsl:apply-templates/>
|
1427
994
|
</fo:inline>
|
1428
995
|
</xsl:template>
|
1429
996
|
|
1430
|
-
<xsl:template match="gb:quote">
|
1431
|
-
<fo:block margin-top="12pt" margin-left="12mm" margin-right="12mm">
|
1432
|
-
<xsl:apply-templates select=".//gb:p"/>
|
1433
|
-
</fo:block>
|
1434
|
-
<fo:block text-align="right">
|
1435
|
-
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
1436
|
-
<xsl:text>— </xsl:text><xsl:value-of select="gb:author"/>
|
1437
|
-
<xsl:if test="gb:source">
|
1438
|
-
<xsl:text>, </xsl:text>
|
1439
|
-
<xsl:apply-templates select="gb:source"/>
|
1440
|
-
</xsl:if>
|
1441
|
-
</fo:block>
|
1442
|
-
</xsl:template>
|
1443
|
-
|
1444
|
-
<xsl:template match="gb:source">
|
1445
|
-
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
1446
|
-
<xsl:value-of select="@citeas"/> <!-- disable-output-escaping="yes" -->
|
1447
|
-
<xsl:apply-templates select="gb:localityStack"/>
|
1448
|
-
</fo:basic-link>
|
1449
|
-
</xsl:template>
|
1450
|
-
|
1451
997
|
|
1452
998
|
<xsl:template match="mathml:math" priority="2">
|
1453
999
|
<fo:inline font-family="Cambria Math">
|
@@ -1457,169 +1003,8 @@
|
|
1457
1003
|
</fo:inline>
|
1458
1004
|
</xsl:template>
|
1459
1005
|
|
1460
|
-
<xsl:template match="gb:xref">
|
1461
|
-
<xsl:param name="sectionNum"/>
|
1462
|
-
|
1463
|
-
<xsl:variable name="target" select="normalize-space(@target)"/>
|
1464
|
-
<fo:basic-link internal-destination="{$target}" fox:alt-text="{$target}">
|
1465
|
-
<xsl:variable name="section" select="xalan:nodeset($contents)//item[@id = $target]/@section"/>
|
1466
|
-
<!-- <xsl:if test="not(starts-with($section, 'Figure') or starts-with($section, 'Table'))"> -->
|
1467
|
-
<!-- <xsl:attribute name="color">blue</xsl:attribute>
|
1468
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute> -->
|
1469
|
-
<!-- </xsl:if> -->
|
1470
|
-
<xsl:variable name="type" select="xalan:nodeset($contents)//item[@id = $target]/@type"/>
|
1471
|
-
<xsl:variable name="root" select="xalan:nodeset($contents)//item[@id =$target]/@root"/>
|
1472
|
-
<xsl:variable name="level" select="xalan:nodeset($contents)//item[@id =$target]/@level"/>
|
1473
|
-
|
1474
|
-
<xsl:variable name="title-clause">
|
1475
|
-
<xsl:call-template name="getTitle">
|
1476
|
-
<xsl:with-param name="name" select="'title-clause'"/>
|
1477
|
-
</xsl:call-template>
|
1478
|
-
</xsl:variable>
|
1479
|
-
<xsl:variable name="title-annex">
|
1480
|
-
<xsl:call-template name="getTitle">
|
1481
|
-
<xsl:with-param name="name" select="'title-annex'"/>
|
1482
|
-
</xsl:call-template>
|
1483
|
-
</xsl:variable>
|
1484
|
-
|
1485
|
-
<xsl:choose>
|
1486
|
-
<xsl:when test="$type = 'clause' and $root != 'annex' and $level = 1"><xsl:value-of select="$title-clause"/></xsl:when><!-- and not (ancestor::annex) -->
|
1487
|
-
<xsl:when test="$type = 'clause' and $root = 'annex'"><xsl:value-of select="$title-annex"/></xsl:when>
|
1488
|
-
<xsl:when test="$type = 'li'">
|
1489
|
-
<xsl:attribute name="color">black</xsl:attribute>
|
1490
|
-
<xsl:attribute name="text-decoration">none</xsl:attribute>
|
1491
|
-
<xsl:variable name="parent_section" select="xalan:nodeset($contents)//item[@id =$target]/@parent_section"/>
|
1492
|
-
<xsl:variable name="currentSection">
|
1493
|
-
<xsl:call-template name="getSection"/>
|
1494
|
-
</xsl:variable>
|
1495
|
-
<xsl:if test="not(contains($parent_section, $currentSection))">
|
1496
|
-
<fo:basic-link internal-destination="{$target}" fox:alt-text="{$target}">
|
1497
|
-
<xsl:attribute name="color">blue</xsl:attribute>
|
1498
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1499
|
-
<xsl:value-of select="$parent_section"/><xsl:text> </xsl:text>
|
1500
|
-
</fo:basic-link>
|
1501
|
-
</xsl:if>
|
1502
|
-
</xsl:when>
|
1503
|
-
<xsl:when test="normalize-space($section) = ''">
|
1504
|
-
<xsl:text>[</xsl:text><xsl:value-of select="$target"/><xsl:text>]</xsl:text>
|
1505
|
-
</xsl:when>
|
1506
|
-
<xsl:otherwise/> <!-- <xsl:value-of select="$type"/> -->
|
1507
|
-
</xsl:choose>
|
1508
|
-
<xsl:value-of select="$section"/>
|
1509
|
-
</fo:basic-link>
|
1510
|
-
</xsl:template>
|
1511
|
-
|
1512
|
-
<xsl:template match="gb:example/gb:p">
|
1513
|
-
<fo:block font-size="10pt" margin-top="8pt" margin-bottom="8pt">
|
1514
|
-
<!-- <xsl:if test="ancestor::gb:li">
|
1515
|
-
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1516
|
-
</xsl:if> -->
|
1517
|
-
<xsl:variable name="claims_id" select="ancestor::gb:clause[1]/@id"/>
|
1518
|
-
<fo:inline padding-right="5mm">
|
1519
|
-
<xsl:variable name="title-example">
|
1520
|
-
<xsl:call-template name="getTitle">
|
1521
|
-
<xsl:with-param name="name" select="'title-example'"/>
|
1522
|
-
</xsl:call-template>
|
1523
|
-
</xsl:variable>
|
1524
|
-
<xsl:value-of select="$title-example"/>
|
1525
|
-
<xsl:if test="count(ancestor::gb:clause[1]//gb:example) > 1">
|
1526
|
-
<xsl:number count="gb:example[ancestor::gb:clause[@id = $claims_id]]" level="any"/>
|
1527
|
-
</xsl:if>
|
1528
|
-
</fo:inline>
|
1529
|
-
<xsl:apply-templates/>
|
1530
|
-
</fo:block>
|
1531
|
-
</xsl:template>
|
1532
|
-
|
1533
|
-
<xsl:template match="gb:note/gb:p" name="note">
|
1534
|
-
<xsl:variable name="claims_id" select="ancestor::gb:clause[1]/@id"/>
|
1535
|
-
<fo:block-container font-size="9pt" margin-left="7.4mm" margin-top="4pt" line-height="125%">
|
1536
|
-
<fo:block-container margin-left="0mm">
|
1537
|
-
<fo:table table-layout="fixed" width="100%">
|
1538
|
-
<fo:table-column column-width="10mm"/>
|
1539
|
-
<fo:table-column column-width="155mm"/>
|
1540
|
-
<fo:table-body>
|
1541
|
-
<fo:table-row>
|
1542
|
-
<fo:table-cell>
|
1543
|
-
<fo:block font-family="SimHei">
|
1544
|
-
<xsl:variable name="title-note">
|
1545
|
-
<xsl:call-template name="getTitle">
|
1546
|
-
<xsl:with-param name="name" select="'title-note'"/>
|
1547
|
-
</xsl:call-template>
|
1548
|
-
</xsl:variable>
|
1549
|
-
<xsl:value-of select="normalize-space($title-note)"/>
|
1550
|
-
<xsl:if test="count(ancestor::gb:clause[1]//gb:note) > 1">
|
1551
|
-
<xsl:text> </xsl:text><xsl:number count="gb:note[ancestor::gb:clause[@id = $claims_id]]" level="any"/>
|
1552
|
-
</xsl:if>
|
1553
|
-
<xsl:text>:</xsl:text>
|
1554
|
-
</fo:block>
|
1555
|
-
</fo:table-cell>
|
1556
|
-
<fo:table-cell>
|
1557
|
-
<fo:block text-align="justify">
|
1558
|
-
<xsl:apply-templates/>
|
1559
|
-
</fo:block>
|
1560
|
-
</fo:table-cell>
|
1561
|
-
</fo:table-row>
|
1562
|
-
</fo:table-body>
|
1563
|
-
</fo:table>
|
1564
|
-
</fo:block-container>
|
1565
|
-
</fo:block-container>
|
1566
|
-
</xsl:template>
|
1567
1006
|
|
1568
|
-
|
1569
|
-
<xsl:template match="gb:eref">
|
1570
|
-
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}"> <!-- font-size="9pt" color="blue" vertical-align="super" -->
|
1571
|
-
<xsl:if test="@type = 'footnote'">
|
1572
|
-
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
1573
|
-
<xsl:attribute name="font-size">50%</xsl:attribute>
|
1574
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
1575
|
-
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
1576
|
-
</xsl:if>
|
1577
|
-
<!-- <xsl:if test="@type = 'inline'">
|
1578
|
-
<xsl:attribute name="color">blue</xsl:attribute>
|
1579
|
-
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1580
|
-
</xsl:if> -->
|
1581
|
-
|
1582
|
-
<xsl:choose>
|
1583
|
-
<xsl:when test="@citeas and normalize-space(text()) = ''">
|
1584
|
-
<xsl:value-of select="@citeas"/> <!-- disable-output-escaping="yes" -->
|
1585
|
-
</xsl:when>
|
1586
|
-
<xsl:when test="@bibitemid and normalize-space(text()) = ''">
|
1587
|
-
<xsl:value-of select="//gb:bibitem[@id = current()/@bibitemid]/gb:docidentifier"/>
|
1588
|
-
</xsl:when>
|
1589
|
-
<xsl:otherwise/>
|
1590
|
-
</xsl:choose>
|
1591
|
-
<xsl:apply-templates select="gb:localityStack"/>
|
1592
|
-
<xsl:apply-templates select="text()"/>
|
1593
|
-
</fo:basic-link>
|
1594
|
-
</xsl:template>
|
1595
|
-
|
1596
|
-
<xsl:template match="gb:locality">
|
1597
|
-
<xsl:variable name="title-clause">
|
1598
|
-
<xsl:call-template name="getTitle">
|
1599
|
-
<xsl:with-param name="name" select="'title-clause'"/>
|
1600
|
-
</xsl:call-template>
|
1601
|
-
</xsl:variable>
|
1602
|
-
<xsl:variable name="title-annex">
|
1603
|
-
<xsl:call-template name="getTitle">
|
1604
|
-
<xsl:with-param name="name" select="'title-annex'"/>
|
1605
|
-
</xsl:call-template>
|
1606
|
-
</xsl:variable>
|
1607
|
-
<xsl:variable name="title-table">
|
1608
|
-
<xsl:call-template name="getTitle">
|
1609
|
-
<xsl:with-param name="name" select="'title-table'"/>
|
1610
|
-
</xsl:call-template>
|
1611
|
-
</xsl:variable>
|
1612
|
-
<xsl:choose>
|
1613
|
-
<xsl:when test="@type ='section' and ancestor::gb:termsource">SOURCE Section </xsl:when>
|
1614
|
-
<xsl:when test="ancestor::gb:termsource"/>
|
1615
|
-
<xsl:when test="@type ='clause' and ancestor::gb:eref"/>
|
1616
|
-
<xsl:when test="@type ='clause'"><xsl:value-of select="$title-clause"/></xsl:when>
|
1617
|
-
<xsl:when test="@type ='annex'"><xsl:value-of select="$title-annex"/></xsl:when>
|
1618
|
-
<xsl:when test="@type ='table'"><xsl:value-of select="$title-table"/></xsl:when>
|
1619
|
-
<xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise>
|
1620
|
-
</xsl:choose>
|
1621
|
-
<xsl:text> </xsl:text><xsl:value-of select="gb:referenceFrom"/>
|
1622
|
-
</xsl:template>
|
1007
|
+
|
1623
1008
|
|
1624
1009
|
<xsl:template match="gb:admonition">
|
1625
1010
|
<xsl:variable name="title-caution">
|
@@ -1644,18 +1029,7 @@
|
|
1644
1029
|
</fo:block>
|
1645
1030
|
</xsl:template>
|
1646
1031
|
|
1647
|
-
|
1648
|
-
<fo:block id="{@id}">
|
1649
|
-
<xsl:apply-templates/>
|
1650
|
-
</fo:block>
|
1651
|
-
</xsl:template>
|
1652
|
-
|
1653
|
-
<xsl:template match="gb:formula/gb:dt/gb:stem">
|
1654
|
-
<fo:inline>
|
1655
|
-
<xsl:apply-templates/>
|
1656
|
-
</fo:inline>
|
1657
|
-
</xsl:template>
|
1658
|
-
|
1032
|
+
|
1659
1033
|
<xsl:template match="gb:formula/gb:stem">
|
1660
1034
|
<fo:block font-size="11pt" margin-top="14pt" margin-bottom="14pt">
|
1661
1035
|
<fo:table table-layout="fixed" width="170mm">
|
@@ -1670,28 +1044,16 @@
|
|
1670
1044
|
</fo:table-cell>
|
1671
1045
|
<fo:table-cell display-align="center">
|
1672
1046
|
<fo:block text-align="left">
|
1673
|
-
<xsl:
|
1674
|
-
<xsl:when test="ancestor::gb:annex">
|
1675
|
-
<xsl:number format="(A.1)" level="multiple" count="gb:annex | gb:formula"/>
|
1676
|
-
</xsl:when>
|
1677
|
-
<xsl:otherwise> <!-- not(ancestor::gb:annex) -->
|
1678
|
-
<xsl:number format="(1)" level="any" count="gb:formula"/>
|
1679
|
-
</xsl:otherwise>
|
1680
|
-
</xsl:choose>
|
1047
|
+
<xsl:apply-templates select="../gb:name" mode="presentation"/>
|
1681
1048
|
</fo:block>
|
1682
1049
|
</fo:table-cell>
|
1683
1050
|
</fo:table-row>
|
1684
1051
|
</fo:table-body>
|
1685
|
-
</fo:table>
|
1686
|
-
<fo:inline keep-together.within-line="always">
|
1687
|
-
</fo:inline>
|
1052
|
+
</fo:table>
|
1688
1053
|
</fo:block>
|
1689
1054
|
</xsl:template>
|
1690
1055
|
|
1691
|
-
|
1692
|
-
<!-- <fo:block> </fo:block> -->
|
1693
|
-
<xsl:value-of select="$linebreak"/>
|
1694
|
-
</xsl:template>
|
1056
|
+
|
1695
1057
|
|
1696
1058
|
<xsl:template name="insertHeaderFooter">
|
1697
1059
|
<fo:static-content flow-name="header">
|
@@ -1724,88 +1086,6 @@
|
|
1724
1086
|
</xsl:template>
|
1725
1087
|
|
1726
1088
|
|
1727
|
-
<xsl:template name="getSection">
|
1728
|
-
<xsl:param name="sectionNum"/>
|
1729
|
-
<xsl:variable name="level">
|
1730
|
-
<xsl:call-template name="getLevel"/>
|
1731
|
-
</xsl:variable>
|
1732
|
-
<xsl:variable name="section">
|
1733
|
-
<xsl:choose>
|
1734
|
-
<xsl:when test="ancestor::gb:bibliography">
|
1735
|
-
<xsl:value-of select="$sectionNum"/>
|
1736
|
-
</xsl:when>
|
1737
|
-
<xsl:when test="ancestor::gb:sections">
|
1738
|
-
<!-- 1, 2, 3, 4, ... from main section (not annex, bibliography, ...) -->
|
1739
|
-
<xsl:choose>
|
1740
|
-
<xsl:when test="$level = 1">
|
1741
|
-
<xsl:value-of select="$sectionNum"/>
|
1742
|
-
</xsl:when>
|
1743
|
-
<xsl:when test="$level >= 2">
|
1744
|
-
<xsl:variable name="num">
|
1745
|
-
<xsl:call-template name="getSubSection"/>
|
1746
|
-
</xsl:variable>
|
1747
|
-
<xsl:value-of select="concat($sectionNum, $num)"/>
|
1748
|
-
</xsl:when>
|
1749
|
-
<xsl:otherwise>
|
1750
|
-
<!-- z<xsl:value-of select="$sectionNum"/>z -->
|
1751
|
-
</xsl:otherwise>
|
1752
|
-
</xsl:choose>
|
1753
|
-
</xsl:when>
|
1754
|
-
<xsl:when test="ancestor::gb:annex">
|
1755
|
-
<xsl:variable name="annexid" select="normalize-space(/gb:gb-standard/gb:bibdata/gb:ext/gb:structuredidentifier/gb:annexid)"/>
|
1756
|
-
<xsl:choose>
|
1757
|
-
<xsl:when test="$level = 1">
|
1758
|
-
<xsl:variable name="title-annex">
|
1759
|
-
<xsl:call-template name="getTitle">
|
1760
|
-
<xsl:with-param name="name" select="'title-annex'"/>
|
1761
|
-
</xsl:call-template>
|
1762
|
-
</xsl:variable>
|
1763
|
-
<xsl:value-of select="$title-annex"/>
|
1764
|
-
<xsl:choose>
|
1765
|
-
<xsl:when test="count(//gb:annex) = 1 and $annexid != ''">
|
1766
|
-
<xsl:value-of select="$annexid"/>
|
1767
|
-
</xsl:when>
|
1768
|
-
<xsl:otherwise>
|
1769
|
-
<xsl:number format="A" level="any" count="gb:annex"/>
|
1770
|
-
</xsl:otherwise>
|
1771
|
-
</xsl:choose>
|
1772
|
-
</xsl:when>
|
1773
|
-
<xsl:otherwise>
|
1774
|
-
<xsl:choose>
|
1775
|
-
<xsl:when test="count(//gb:annex) = 1 and $annexid != ''">
|
1776
|
-
<xsl:value-of select="$annexid"/><xsl:number format=".1" level="multiple" count="gb:clause"/>
|
1777
|
-
</xsl:when>
|
1778
|
-
<xsl:otherwise>
|
1779
|
-
<xsl:number format="A.1" level="multiple" count="gb:annex | gb:clause"/>
|
1780
|
-
</xsl:otherwise>
|
1781
|
-
</xsl:choose>
|
1782
|
-
</xsl:otherwise>
|
1783
|
-
</xsl:choose>
|
1784
|
-
</xsl:when>
|
1785
|
-
<xsl:when test="ancestor::gb:preface"> <!-- if preface and there is clause(s) -->
|
1786
|
-
<xsl:choose>
|
1787
|
-
<xsl:when test="$level = 1 and ..//gb:clause">0</xsl:when>
|
1788
|
-
<xsl:when test="$level >= 2">
|
1789
|
-
<xsl:variable name="num">
|
1790
|
-
<xsl:number format=".1" level="multiple" count="gb:clause"/>
|
1791
|
-
</xsl:variable>
|
1792
|
-
<xsl:value-of select="concat('0', $num)"/>
|
1793
|
-
</xsl:when>
|
1794
|
-
<xsl:otherwise>
|
1795
|
-
<!-- z<xsl:value-of select="$sectionNum"/>z -->
|
1796
|
-
</xsl:otherwise>
|
1797
|
-
</xsl:choose>
|
1798
|
-
</xsl:when>
|
1799
|
-
<xsl:otherwise>
|
1800
|
-
</xsl:otherwise>
|
1801
|
-
</xsl:choose>
|
1802
|
-
</xsl:variable>
|
1803
|
-
<xsl:value-of select="$section"/>
|
1804
|
-
</xsl:template>
|
1805
|
-
|
1806
|
-
<!-- <xsl:variable name="Image-GB-Logo">
|
1807
|
-
<xsl:text>R0lGODlhWAIvAcQSAEBAQL+/v39/f4CAgO/v7xAQEDAwMJ+fn8/Pz2BgYCAgIN/f31BQUK+vr4+Pj3BwcP///wAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAABYAi8BAAX/oCSOZGmeaKqubOu+MBIcgpAAOBDtfO//wKBwSCwaj8gkEUBwIRTKqHRKrVqvWF4hh6sJGgEEbEwum8/otHqdWgRsgEJ2Tq/bpQcX487v+/+APlsMXwFsh4iJiouLCAcPOoGSk5REAi6RlZqbnJUGCQ6GjKOkpaZnBA0CmUhbOQ8DsbKztLW2t7i5uru8vb6/tAY+ly2sEQzAycrLzM3Oz843OcJRAA8NTafa29yJDQ/URQDIBwEBEOjp6uvs7e7v8PHy8/T19vIHP8QsxgUI9wADChxIsKDBg+sImHMwgEEcIwAciOlGsaJFEwgcGAPyKRQBhCBDihxJrwGQfSs2//ojybKly5cwFTqARETBg4kXc+pcFOABFCEKQJ2DSbSoUXcI5OzYswOlikgGwq08SrWqVaOOEvwEYnPBzq9gyTRIoJTrtQVX06oFmZSHAQI8nKaIxETqv7V48+qlt+AA2SAA8oQdTHgEggdlBTE4gHav48dIy76FEBfTDgAQCGydCrmz57Q9t/YoIMBr4dMWFwgQ3cPm0M+w9xKQ/JFyU8sRMENou6NA49jAg7M8zHpHAtOok5c6wP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C/i4zrUjwDkET/+DNQ5QP6k0QWlowICgCu6AO4VpDDUzwXpTwAEAEVaSAgAADs=</xsl:text>
|
1808
|
-
</xsl:variable> -->
|
1809
1089
|
|
1810
1090
|
<xsl:template name="addLetterSpacing">
|
1811
1091
|
<xsl:param name="text"/>
|
@@ -1821,46 +1101,6 @@
|
|
1821
1101
|
</xsl:template>
|
1822
1102
|
|
1823
1103
|
<xsl:variable name="titles" select="xalan:nodeset($titles_)"/><xsl:variable name="titles_">
|
1824
|
-
|
1825
|
-
<title-table lang="en">Table </title-table>
|
1826
|
-
<title-table lang="fr">Tableau </title-table>
|
1827
|
-
|
1828
|
-
|
1829
|
-
<title-table lang="zh">表 </title-table>
|
1830
|
-
|
1831
|
-
|
1832
|
-
<title-note lang="en">NOTE </title-note>
|
1833
|
-
<title-note lang="fr">NOTE </title-note>
|
1834
|
-
|
1835
|
-
|
1836
|
-
<title-note lang="zh">注 </title-note>
|
1837
|
-
|
1838
|
-
|
1839
|
-
<title-figure lang="en">Figure </title-figure>
|
1840
|
-
<title-figure lang="fr">Figure </title-figure>
|
1841
|
-
|
1842
|
-
|
1843
|
-
<title-figure lang="zh">图 </title-figure>
|
1844
|
-
|
1845
|
-
|
1846
|
-
<title-example lang="en">EXAMPLE </title-example>
|
1847
|
-
<title-example lang="fr">EXEMPLE </title-example>
|
1848
|
-
|
1849
|
-
|
1850
|
-
<title-example lang="zh">示例 </title-example>
|
1851
|
-
|
1852
|
-
|
1853
|
-
<title-example-xref lang="en">Example </title-example-xref>
|
1854
|
-
<title-example-xref lang="fr">Exemple </title-example-xref>
|
1855
|
-
|
1856
|
-
<title-section lang="en">Section </title-section>
|
1857
|
-
<title-section lang="fr">Section </title-section>
|
1858
|
-
|
1859
|
-
<title-inequality lang="en">Inequality </title-inequality>
|
1860
|
-
<title-inequality lang="fr">Inequality </title-inequality>
|
1861
|
-
|
1862
|
-
<title-equation lang="en">Equation </title-equation>
|
1863
|
-
<title-equation lang="fr">Equation </title-equation>
|
1864
1104
|
|
1865
1105
|
<title-annex lang="en">Annex </title-annex>
|
1866
1106
|
<title-annex lang="fr">Annexe </title-annex>
|
@@ -1868,25 +1108,13 @@
|
|
1868
1108
|
|
1869
1109
|
<title-annex lang="zh">附件 </title-annex>
|
1870
1110
|
|
1871
|
-
|
1872
|
-
<title-appendix lang="en">Appendix </title-appendix>
|
1873
|
-
<title-appendix lang="fr">Appendix </title-appendix>
|
1874
|
-
|
1875
|
-
<title-clause lang="en">Clause </title-clause>
|
1876
|
-
<title-clause lang="fr">Article </title-clause>
|
1877
|
-
|
1878
|
-
|
1879
|
-
<title-clause lang="zh">条 </title-clause>
|
1880
|
-
|
1881
|
-
|
1111
|
+
|
1882
1112
|
<title-edition lang="en">
|
1883
1113
|
|
1884
1114
|
|
1885
1115
|
</title-edition>
|
1886
1116
|
|
1887
|
-
|
1888
|
-
<title-formula lang="fr">Formula </title-formula>
|
1889
|
-
|
1117
|
+
|
1890
1118
|
<title-toc lang="en">
|
1891
1119
|
|
1892
1120
|
|
@@ -1925,13 +1153,6 @@
|
|
1925
1153
|
</title-part>
|
1926
1154
|
<title-part lang="zh">第 # 部分:</title-part>
|
1927
1155
|
|
1928
|
-
<title-note-to-entry lang="en">Note # to entry: </title-note-to-entry>
|
1929
|
-
<title-note-to-entry lang="fr">Note # à l'article: </title-note-to-entry>
|
1930
|
-
|
1931
|
-
|
1932
|
-
<title-note-to-entry lang="zh">注#: </title-note-to-entry>
|
1933
|
-
|
1934
|
-
|
1935
1156
|
<title-modified lang="en">modified</title-modified>
|
1936
1157
|
<title-modified lang="fr">modifiée</title-modified>
|
1937
1158
|
|
@@ -1945,14 +1166,12 @@
|
|
1945
1166
|
|
1946
1167
|
<title-deprecated lang="en">DEPRECATED</title-deprecated>
|
1947
1168
|
<title-deprecated lang="fr">DEPRECATED</title-deprecated>
|
1948
|
-
|
1949
|
-
<title-submitting-organizations lang="en">Submitting Organizations</title-submitting-organizations>
|
1950
|
-
|
1169
|
+
|
1951
1170
|
<title-list-tables lang="en">List of Tables</title-list-tables>
|
1952
1171
|
|
1953
1172
|
<title-list-figures lang="en">List of Figures</title-list-figures>
|
1954
1173
|
|
1955
|
-
<title-
|
1174
|
+
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
1956
1175
|
|
1957
1176
|
<title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
|
1958
1177
|
|
@@ -1962,8 +1181,6 @@
|
|
1962
1181
|
|
1963
1182
|
<title-in lang="en">in </title-in>
|
1964
1183
|
|
1965
|
-
<title-box lang="en">Box </title-box>
|
1966
|
-
|
1967
1184
|
<title-partly-supercedes lang="en">Partly Supercedes </title-partly-supercedes>
|
1968
1185
|
<title-partly-supercedes lang="zh">部分代替 </title-partly-supercedes>
|
1969
1186
|
|
@@ -1986,7 +1203,7 @@
|
|
1986
1203
|
<title-warning lang="zh">警告</title-warning>
|
1987
1204
|
|
1988
1205
|
<title-amendment lang="en">AMENDMENT</title-amendment>
|
1989
|
-
</xsl:variable><xsl:template name="getTitle">
|
1206
|
+
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
1990
1207
|
<xsl:param name="name"/>
|
1991
1208
|
<xsl:variable name="lang">
|
1992
1209
|
<xsl:call-template name="getLang"/>
|
@@ -2004,6 +1221,8 @@
|
|
2004
1221
|
|
2005
1222
|
|
2006
1223
|
</xsl:attribute-set><xsl:attribute-set name="sourcecode-style">
|
1224
|
+
<xsl:attribute name="white-space">pre</xsl:attribute>
|
1225
|
+
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
2007
1226
|
|
2008
1227
|
<xsl:attribute name="font-family">Courier</xsl:attribute>
|
2009
1228
|
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
@@ -2016,92 +1235,365 @@
|
|
2016
1235
|
|
2017
1236
|
|
2018
1237
|
|
2019
|
-
</xsl:attribute-set><xsl:attribute-set name="
|
2020
|
-
|
2021
|
-
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
2022
|
-
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
2023
|
-
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
2024
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1238
|
+
</xsl:attribute-set><xsl:attribute-set name="permission-style">
|
2025
1239
|
|
1240
|
+
</xsl:attribute-set><xsl:attribute-set name="permission-name-style">
|
2026
1241
|
|
1242
|
+
</xsl:attribute-set><xsl:attribute-set name="permission-label-style">
|
2027
1243
|
|
2028
|
-
</xsl:attribute-set><xsl:attribute-set name="
|
1244
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-style">
|
2029
1245
|
|
2030
|
-
|
2031
|
-
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
2032
|
-
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1246
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
|
2033
1247
|
|
1248
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
|
2034
1249
|
|
1250
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-subject-style">
|
1251
|
+
</xsl:attribute-set><xsl:attribute-set name="requirement-inherit-style">
|
1252
|
+
</xsl:attribute-set><xsl:attribute-set name="recommendation-style">
|
1253
|
+
|
1254
|
+
|
1255
|
+
</xsl:attribute-set><xsl:attribute-set name="recommendation-name-style">
|
1256
|
+
|
1257
|
+
|
1258
|
+
</xsl:attribute-set><xsl:attribute-set name="recommendation-label-style">
|
1259
|
+
|
1260
|
+
</xsl:attribute-set><xsl:attribute-set name="termexample-style">
|
1261
|
+
|
1262
|
+
|
1263
|
+
|
1264
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
1265
|
+
<xsl:attribute name="margin-top">14pt</xsl:attribute>
|
1266
|
+
<xsl:attribute name="margin-bottom">14pt</xsl:attribute>
|
1267
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
1268
|
+
|
1269
|
+
|
1270
|
+
|
1271
|
+
|
1272
|
+
|
1273
|
+
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
1274
|
+
|
1275
|
+
|
1276
|
+
|
1277
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1278
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1279
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1280
|
+
|
1281
|
+
|
1282
|
+
|
1283
|
+
|
1284
|
+
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
</xsl:attribute-set><xsl:attribute-set name="example-body-style">
|
1289
|
+
|
1290
|
+
|
1291
|
+
|
1292
|
+
</xsl:attribute-set><xsl:attribute-set name="example-name-style">
|
1293
|
+
|
1294
|
+
|
1295
|
+
|
1296
|
+
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
1297
|
+
|
1298
|
+
|
1299
|
+
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
|
1304
|
+
|
1305
|
+
|
1306
|
+
|
1307
|
+
|
1308
|
+
|
1309
|
+
|
1310
|
+
|
1311
|
+
|
1312
|
+
</xsl:attribute-set><xsl:attribute-set name="example-p-style">
|
1313
|
+
|
1314
|
+
|
1315
|
+
|
1316
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1317
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1318
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1319
|
+
|
1320
|
+
|
1321
|
+
|
1322
|
+
|
1323
|
+
|
1324
|
+
|
1325
|
+
|
1326
|
+
|
1327
|
+
|
1328
|
+
|
1329
|
+
|
1330
|
+
</xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
|
1331
|
+
|
1332
|
+
|
1333
|
+
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
1334
|
+
<xsl:attribute name="font-family">SimHei</xsl:attribute>
|
1335
|
+
|
1336
|
+
|
1337
|
+
|
1338
|
+
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1339
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1340
|
+
|
1341
|
+
|
1342
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1343
|
+
<xsl:attribute name="font-family">SimHei</xsl:attribute>
|
1344
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
1345
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2035
1346
|
|
2036
|
-
</xsl:attribute-set><xsl:template match="text()">
|
2037
|
-
<xsl:value-of select="."/>
|
2038
|
-
</xsl:template><xsl:template match="*[local-name()='br']">
|
2039
|
-
<xsl:value-of select="$linebreak"/>
|
2040
|
-
</xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
|
2041
|
-
<!-- <xsl:call-template name="add-zero-spaces"/> -->
|
2042
|
-
<xsl:call-template name="add-zero-spaces-java"/>
|
2043
|
-
</xsl:template><xsl:template match="*[local-name()='table']">
|
2044
|
-
|
2045
|
-
<xsl:variable name="simple-table">
|
2046
|
-
<!-- <xsl:copy> -->
|
2047
|
-
<xsl:call-template name="getSimpleTable"/>
|
2048
|
-
<!-- </xsl:copy> -->
|
2049
|
-
</xsl:variable>
|
2050
|
-
|
2051
|
-
<!-- DEBUG -->
|
2052
|
-
<!-- SourceTable=<xsl:copy-of select="current()"/>EndSourceTable -->
|
2053
|
-
<!-- Simpletable=<xsl:copy-of select="$simple-table"/>EndSimpltable -->
|
2054
|
-
|
2055
|
-
<!-- <xsl:variable name="namespace" select="substring-before(name(/*), '-')"/> -->
|
2056
1347
|
|
2057
|
-
<!-- <xsl:if test="$namespace = 'iso'">
|
2058
|
-
<fo:block space-before="6pt"> </fo:block>
|
2059
|
-
</xsl:if> -->
|
2060
1348
|
|
2061
|
-
<xsl:choose>
|
2062
|
-
<xsl:when test="@unnumbered = 'true'"/>
|
2063
|
-
<xsl:otherwise>
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2067
|
-
<fo:block font-weight="bold" text-align="center" margin-bottom="6pt" keep-with-next="always">
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
<xsl:attribute name="font-family">SimHei</xsl:attribute>
|
2076
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
2077
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2078
|
-
|
2079
|
-
|
2080
|
-
<xsl:variable name="title-table">
|
2081
|
-
<xsl:call-template name="getTitle">
|
2082
|
-
<xsl:with-param name="name" select="'title-table'"/>
|
2083
|
-
</xsl:call-template>
|
2084
|
-
</xsl:variable>
|
2085
|
-
<xsl:value-of select="$title-table"/>
|
2086
|
-
|
2087
|
-
<xsl:call-template name="getTableNumber"/>
|
2088
|
-
|
2089
|
-
|
2090
|
-
<xsl:if test="*[local-name()='name']">
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
<xsl:text> — </xsl:text>
|
2095
|
-
|
2096
|
-
<xsl:apply-templates select="*[local-name()='name']" mode="process"/>
|
2097
|
-
</xsl:if>
|
2098
|
-
</fo:block>
|
2099
1349
|
|
1350
|
+
|
1351
|
+
|
1352
|
+
|
2100
1353
|
|
2101
|
-
|
1354
|
+
|
1355
|
+
|
1356
|
+
</xsl:attribute-set><xsl:attribute-set name="appendix-style">
|
2102
1357
|
|
2103
|
-
</xsl:
|
2104
|
-
|
1358
|
+
<xsl:attribute name="font-size">12pt</xsl:attribute>
|
1359
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1360
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1361
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1362
|
+
|
1363
|
+
|
1364
|
+
|
1365
|
+
</xsl:attribute-set><xsl:attribute-set name="appendix-example-style">
|
1366
|
+
|
1367
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1368
|
+
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1369
|
+
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
1370
|
+
|
1371
|
+
|
1372
|
+
|
1373
|
+
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
1374
|
+
|
1375
|
+
|
1376
|
+
</xsl:attribute-set><xsl:attribute-set name="eref-style">
|
1377
|
+
|
1378
|
+
|
1379
|
+
|
1380
|
+
</xsl:attribute-set><xsl:attribute-set name="note-style">
|
1381
|
+
|
1382
|
+
|
1383
|
+
|
1384
|
+
<xsl:attribute name="font-size">9pt</xsl:attribute>
|
1385
|
+
<xsl:attribute name="margin-left">7.4mm</xsl:attribute>
|
1386
|
+
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
1387
|
+
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
1388
|
+
<xsl:attribute name="line-height">125%</xsl:attribute>
|
1389
|
+
|
1390
|
+
|
1391
|
+
|
1392
|
+
|
1393
|
+
|
1394
|
+
|
1395
|
+
|
1396
|
+
|
1397
|
+
|
1398
|
+
|
1399
|
+
|
1400
|
+
|
1401
|
+
|
1402
|
+
</xsl:attribute-set><xsl:attribute-set name="note-name-style">
|
1403
|
+
|
1404
|
+
|
1405
|
+
|
1406
|
+
<xsl:attribute name="font-family">SimHei</xsl:attribute>
|
1407
|
+
|
1408
|
+
|
1409
|
+
|
1410
|
+
|
1411
|
+
|
1412
|
+
|
1413
|
+
|
1414
|
+
|
1415
|
+
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1416
|
+
|
1417
|
+
|
1418
|
+
|
1419
|
+
<xsl:attribute name="margin-top">4pt</xsl:attribute>
|
1420
|
+
<xsl:attribute name="line-height">125%</xsl:attribute>
|
1421
|
+
<xsl:attribute name="text-align">justify</xsl:attribute>
|
1422
|
+
|
1423
|
+
|
1424
|
+
|
1425
|
+
|
1426
|
+
|
1427
|
+
|
1428
|
+
|
1429
|
+
|
1430
|
+
|
1431
|
+
|
1432
|
+
|
1433
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
1434
|
+
|
1435
|
+
|
1436
|
+
|
1437
|
+
|
1438
|
+
|
1439
|
+
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
1440
|
+
|
1441
|
+
|
1442
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1443
|
+
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
1444
|
+
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
1445
|
+
|
1446
|
+
|
1447
|
+
|
1448
|
+
|
1449
|
+
|
1450
|
+
</xsl:attribute-set><xsl:attribute-set name="quote-source-style">
|
1451
|
+
|
1452
|
+
|
1453
|
+
<xsl:attribute name="text-align">right</xsl:attribute>
|
1454
|
+
|
1455
|
+
|
1456
|
+
</xsl:attribute-set><xsl:attribute-set name="termsource-style">
|
1457
|
+
|
1458
|
+
|
1459
|
+
|
1460
|
+
<xsl:attribute name="text-indent">7.4mm</xsl:attribute>
|
1461
|
+
|
1462
|
+
|
1463
|
+
|
1464
|
+
</xsl:attribute-set><xsl:attribute-set name="origin-style">
|
1465
|
+
|
1466
|
+
|
1467
|
+
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
1468
|
+
|
1469
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1470
|
+
|
1471
|
+
|
1472
|
+
|
1473
|
+
|
1474
|
+
|
1475
|
+
<xsl:attribute name="font-family">SimHei</xsl:attribute>
|
1476
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1477
|
+
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
1478
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1479
|
+
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
1480
|
+
|
1481
|
+
|
1482
|
+
|
1483
|
+
|
1484
|
+
|
1485
|
+
|
1486
|
+
|
1487
|
+
|
1488
|
+
|
1489
|
+
|
1490
|
+
|
1491
|
+
|
1492
|
+
</xsl:attribute-set><xsl:attribute-set name="formula-style">
|
1493
|
+
|
1494
|
+
</xsl:attribute-set><xsl:attribute-set name="image-style">
|
1495
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1496
|
+
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
|
1501
|
+
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1502
|
+
|
1503
|
+
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1504
|
+
|
1505
|
+
|
1506
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
1507
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
1508
|
+
<xsl:attribute name="content-width">scale-to-fit</xsl:attribute>
|
1509
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
1510
|
+
|
1511
|
+
|
1512
|
+
|
1513
|
+
|
1514
|
+
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
1515
|
+
|
1516
|
+
|
1517
|
+
<xsl:attribute name="font-family">Courier</xsl:attribute>
|
1518
|
+
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1519
|
+
|
1520
|
+
</xsl:attribute-set><xsl:attribute-set name="sourcecode-name-style">
|
1521
|
+
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1522
|
+
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
1523
|
+
<xsl:attribute name="text-align">center</xsl:attribute>
|
1524
|
+
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1525
|
+
</xsl:attribute-set><xsl:attribute-set name="domain-style">
|
1526
|
+
|
1527
|
+
<xsl:attribute name="padding-left">7.4mm</xsl:attribute>
|
1528
|
+
|
1529
|
+
</xsl:attribute-set><xsl:attribute-set name="admitted-style">
|
1530
|
+
|
1531
|
+
|
1532
|
+
</xsl:attribute-set><xsl:attribute-set name="deprecates-style">
|
1533
|
+
|
1534
|
+
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
1535
|
+
|
1536
|
+
|
1537
|
+
</xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
|
1538
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
|
1539
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
|
1540
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
|
1541
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
|
1542
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
|
1543
|
+
</xsl:template><xsl:template name="processMainSectionsDefault_Contents">
|
1544
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
|
1545
|
+
|
1546
|
+
<!-- Normative references -->
|
1547
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']" mode="contents"/>
|
1548
|
+
<!-- Terms and definitions -->
|
1549
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]" mode="contents"/>
|
1550
|
+
<!-- Another main sections -->
|
1551
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]" mode="contents"/>
|
1552
|
+
<xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
|
1553
|
+
<!-- Bibliography -->
|
1554
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]" mode="contents"/>
|
1555
|
+
</xsl:template><xsl:template name="processPrefaceSectionsDefault">
|
1556
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
|
1557
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
1558
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
1559
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
|
1560
|
+
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
|
1561
|
+
</xsl:template><xsl:template name="processMainSectionsDefault">
|
1562
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
|
1563
|
+
|
1564
|
+
<!-- Normative references -->
|
1565
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
|
1566
|
+
<!-- Terms and definitions -->
|
1567
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]"/>
|
1568
|
+
<!-- Another main sections -->
|
1569
|
+
<xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]"/>
|
1570
|
+
<xsl:apply-templates select="/*/*[local-name()='annex']"/>
|
1571
|
+
<!-- Bibliography -->
|
1572
|
+
<xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
|
1573
|
+
</xsl:template><xsl:template match="text()">
|
1574
|
+
<xsl:value-of select="."/>
|
1575
|
+
</xsl:template><xsl:template match="*[local-name()='br']">
|
1576
|
+
<xsl:value-of select="$linebreak"/>
|
1577
|
+
</xsl:template><xsl:template match="*[local-name()='td']//text() | *[local-name()='th']//text() | *[local-name()='dt']//text() | *[local-name()='dd']//text()" priority="1">
|
1578
|
+
<!-- <xsl:call-template name="add-zero-spaces"/> -->
|
1579
|
+
<xsl:call-template name="add-zero-spaces-java"/>
|
1580
|
+
</xsl:template><xsl:template match="*[local-name()='table']">
|
1581
|
+
|
1582
|
+
<xsl:variable name="simple-table">
|
1583
|
+
<xsl:call-template name="getSimpleTable"/>
|
1584
|
+
</xsl:variable>
|
1585
|
+
|
1586
|
+
|
1587
|
+
|
1588
|
+
|
1589
|
+
|
1590
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
1591
|
+
|
1592
|
+
|
1593
|
+
|
1594
|
+
<xsl:call-template name="fn_name_display"/>
|
1595
|
+
|
1596
|
+
|
2105
1597
|
|
2106
1598
|
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
2107
1599
|
|
@@ -2157,6 +1649,7 @@
|
|
2157
1649
|
|
2158
1650
|
|
2159
1651
|
|
1652
|
+
|
2160
1653
|
<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">
|
2161
1654
|
|
2162
1655
|
|
@@ -2171,6 +1664,7 @@
|
|
2171
1664
|
|
2172
1665
|
|
2173
1666
|
|
1667
|
+
|
2174
1668
|
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
2175
1669
|
<xsl:choose>
|
2176
1670
|
<xsl:when test=". = 1 or . = 0">
|
@@ -2197,35 +1691,15 @@
|
|
2197
1691
|
<xsl:apply-templates select="*[local-name()='note']" mode="process"/>
|
2198
1692
|
|
2199
1693
|
|
1694
|
+
|
1695
|
+
|
2200
1696
|
</fo:block-container>
|
2201
|
-
</xsl:template><xsl:template name="
|
2202
|
-
<xsl:
|
2203
|
-
<xsl:
|
2204
|
-
<xsl:
|
2205
|
-
</
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
<xsl:variable name="annex-id" select="ancestor::gb:annex/@id"/>
|
2210
|
-
<xsl:number format="A." count="*[local-name()='annex']"/><xsl:number format="1" level="any" count="*[local-name()='table'][(not(@unnumbered) or @unnumbered != 'true') and ancestor::gb:annex[@id = $annex-id]]"/>
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2215
|
-
|
2216
|
-
|
2217
|
-
|
2218
|
-
</xsl:when>
|
2219
|
-
<xsl:otherwise>
|
2220
|
-
|
2221
|
-
|
2222
|
-
<xsl:number format="A." count="*[local-name()='annex']"/>
|
2223
|
-
<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']"/>
|
2224
|
-
|
2225
|
-
</xsl:otherwise>
|
2226
|
-
</xsl:choose>
|
2227
|
-
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='name']"/><xsl:template match="*[local-name()='table']/*[local-name()='name']" mode="process">
|
2228
|
-
<xsl:apply-templates/>
|
1697
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
|
1698
|
+
<xsl:if test="normalize-space() != ''">
|
1699
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
1700
|
+
<xsl:apply-templates/>
|
1701
|
+
</fo:block>
|
1702
|
+
</xsl:if>
|
2229
1703
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
2230
1704
|
<xsl:param name="table-row"/>
|
2231
1705
|
<xsl:variable name="columns-count" select="count($table-row/*)"/>
|
@@ -2446,6 +1920,16 @@
|
|
2446
1920
|
</fo:table-row>
|
2447
1921
|
</xsl:template><xsl:template match="*[local-name()='th']">
|
2448
1922
|
<fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
|
1923
|
+
<xsl:attribute name="text-align">
|
1924
|
+
<xsl:choose>
|
1925
|
+
<xsl:when test="@align">
|
1926
|
+
<xsl:value-of select="@align"/>
|
1927
|
+
</xsl:when>
|
1928
|
+
<xsl:otherwise>center</xsl:otherwise>
|
1929
|
+
</xsl:choose>
|
1930
|
+
</xsl:attribute>
|
1931
|
+
|
1932
|
+
|
2449
1933
|
|
2450
1934
|
|
2451
1935
|
|
@@ -2469,6 +1953,14 @@
|
|
2469
1953
|
</fo:table-cell>
|
2470
1954
|
</xsl:template><xsl:template match="*[local-name()='td']">
|
2471
1955
|
<fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
|
1956
|
+
<xsl:attribute name="text-align">
|
1957
|
+
<xsl:choose>
|
1958
|
+
<xsl:when test="@align">
|
1959
|
+
<xsl:value-of select="@align"/>
|
1960
|
+
</xsl:when>
|
1961
|
+
<xsl:otherwise>left</xsl:otherwise>
|
1962
|
+
</xsl:choose>
|
1963
|
+
</xsl:attribute>
|
2472
1964
|
|
2473
1965
|
|
2474
1966
|
|
@@ -2476,7 +1968,7 @@
|
|
2476
1968
|
<xsl:if test="ancestor::*[local-name() = 'tfoot']">
|
2477
1969
|
<xsl:attribute name="border-bottom">solid black 0</xsl:attribute>
|
2478
1970
|
</xsl:if>
|
2479
|
-
|
1971
|
+
|
2480
1972
|
|
2481
1973
|
|
2482
1974
|
|
@@ -2495,21 +1987,9 @@
|
|
2495
1987
|
<fo:block>
|
2496
1988
|
|
2497
1989
|
<xsl:apply-templates/>
|
2498
|
-
</fo:block>
|
2499
|
-
<!-- <xsl:choose>
|
2500
|
-
<xsl:when test="count(*) = 1 and *[local-name() = 'p']">
|
2501
|
-
<xsl:apply-templates />
|
2502
|
-
</xsl:when>
|
2503
|
-
<xsl:otherwise>
|
2504
|
-
<fo:block>
|
2505
|
-
<xsl:apply-templates />
|
2506
|
-
</fo:block>
|
2507
|
-
</xsl:otherwise>
|
2508
|
-
</xsl:choose> -->
|
2509
|
-
|
2510
|
-
|
1990
|
+
</fo:block>
|
2511
1991
|
</fo:table-cell>
|
2512
|
-
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
|
1992
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']" priority="2"/><xsl:template match="*[local-name()='table']/*[local-name()='note']" mode="process">
|
2513
1993
|
|
2514
1994
|
|
2515
1995
|
<fo:block font-size="10pt" margin-bottom="12pt">
|
@@ -2526,26 +2006,15 @@
|
|
2526
2006
|
<xsl:attribute name="font-family">SimHei</xsl:attribute>
|
2527
2007
|
|
2528
2008
|
|
2529
|
-
<xsl:variable name="title-note">
|
2530
|
-
<xsl:call-template name="getTitle">
|
2531
|
-
<xsl:with-param name="name" select="'title-note'"/>
|
2532
|
-
</xsl:call-template>
|
2533
|
-
</xsl:variable>
|
2534
|
-
<xsl:value-of select="$title-note"/>
|
2535
|
-
|
2536
|
-
<xsl:variable name="id" select="ancestor::*[local-name() = 'table'][1]/@id"/>
|
2537
|
-
<xsl:if test="count(//*[local-name()='note'][ancestor::*[@id = $id]]) > 1">
|
2538
|
-
<xsl:number count="*[local-name()='note'][ancestor::*[@id = $id]]" level="any"/>
|
2539
|
-
</xsl:if>
|
2540
|
-
<xsl:text>:</xsl:text>
|
2541
|
-
|
2542
|
-
|
2543
2009
|
|
2010
|
+
|
2011
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
2012
|
+
|
2544
2013
|
</fo:inline>
|
2545
2014
|
<xsl:apply-templates mode="process"/>
|
2546
2015
|
</fo:block>
|
2547
2016
|
|
2548
|
-
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
|
2017
|
+
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='name']" mode="process"/><xsl:template match="*[local-name()='table']/*[local-name()='note']/*[local-name()='p']" mode="process">
|
2549
2018
|
<xsl:apply-templates/>
|
2550
2019
|
</xsl:template><xsl:template name="fn_display">
|
2551
2020
|
<xsl:variable name="references">
|
@@ -2611,7 +2080,7 @@
|
|
2611
2080
|
true <!-- and (not(@class) or @class !='pseudocode') -->
|
2612
2081
|
</xsl:variable>
|
2613
2082
|
<xsl:variable name="references">
|
2614
|
-
<xsl:for-each select=".//*[local-name()='fn']">
|
2083
|
+
<xsl:for-each select=".//*[local-name()='fn'][not(parent::*[local-name()='name'])]">
|
2615
2084
|
<fn reference="{@reference}" id="{@reference}_{ancestor::*[@id][1]/@id}">
|
2616
2085
|
<xsl:apply-templates/>
|
2617
2086
|
</fn>
|
@@ -2906,7 +2375,7 @@
|
|
2906
2375
|
<xsl:value-of select="string-length(normalize-space(.))"/>
|
2907
2376
|
</xsl:if>
|
2908
2377
|
</xsl:for-each>
|
2909
|
-
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']">
|
2378
|
+
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
|
2910
2379
|
<xsl:param name="key_iso"/>
|
2911
2380
|
|
2912
2381
|
<!-- <tr>
|
@@ -2922,12 +2391,7 @@
|
|
2922
2391
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
2923
2392
|
<xsl:attribute name="margin-top">0</xsl:attribute>
|
2924
2393
|
</xsl:if>
|
2925
|
-
<xsl:
|
2926
|
-
<xsl:call-template name="getTitle">
|
2927
|
-
<xsl:with-param name="name" select="'title-note'"/>
|
2928
|
-
</xsl:call-template>
|
2929
|
-
</xsl:variable>
|
2930
|
-
<xsl:value-of select="$title-note"/>
|
2394
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
2931
2395
|
</fo:block>
|
2932
2396
|
</fo:table-cell>
|
2933
2397
|
<fo:table-cell>
|
@@ -2996,7 +2460,7 @@
|
|
2996
2460
|
<fo:inline font-style="italic">
|
2997
2461
|
<xsl:apply-templates/>
|
2998
2462
|
</fo:inline>
|
2999
|
-
</xsl:template><xsl:template match="*[local-name()='strong']">
|
2463
|
+
</xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
3000
2464
|
<fo:inline font-weight="bold">
|
3001
2465
|
<xsl:apply-templates/>
|
3002
2466
|
</fo:inline>
|
@@ -3009,7 +2473,7 @@
|
|
3009
2473
|
<xsl:apply-templates/>
|
3010
2474
|
</fo:inline>
|
3011
2475
|
</xsl:template><xsl:template match="*[local-name()='tt']">
|
3012
|
-
<fo:inline
|
2476
|
+
<fo:inline xsl:use-attribute-sets="tt-style">
|
3013
2477
|
<xsl:apply-templates/>
|
3014
2478
|
</fo:inline>
|
3015
2479
|
</xsl:template><xsl:template match="*[local-name()='del']">
|
@@ -3330,127 +2794,855 @@
|
|
3330
2794
|
</xsl:call-template>
|
3331
2795
|
</xsl:otherwise>
|
3332
2796
|
</xsl:choose>
|
3333
|
-
</xsl:template><xsl:template name="capitalize">
|
3334
|
-
<xsl:param name="str"/>
|
3335
|
-
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
|
3336
|
-
<xsl:value-of select="substring($str, 2)"/>
|
3337
|
-
</xsl:template><xsl:template match="mathml:math">
|
3338
|
-
<fo:inline font-family="STIX2Math">
|
3339
|
-
<fo:instream-foreign-object fox:alt-text="Math">
|
3340
|
-
<xsl:copy-of select="."/>
|
3341
|
-
</fo:instream-foreign-object>
|
3342
|
-
</fo:inline>
|
3343
|
-
</xsl:template><xsl:template match="*[local-name()='localityStack']">
|
3344
|
-
<xsl:
|
3345
|
-
<xsl:
|
3346
|
-
|
3347
|
-
|
3348
|
-
|
3349
|
-
|
3350
|
-
|
2797
|
+
</xsl:template><xsl:template name="capitalize">
|
2798
|
+
<xsl:param name="str"/>
|
2799
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(substring($str, 1, 1)))"/>
|
2800
|
+
<xsl:value-of select="substring($str, 2)"/>
|
2801
|
+
</xsl:template><xsl:template match="mathml:math">
|
2802
|
+
<fo:inline font-family="STIX2Math">
|
2803
|
+
<fo:instream-foreign-object fox:alt-text="Math">
|
2804
|
+
<xsl:copy-of select="."/>
|
2805
|
+
</fo:instream-foreign-object>
|
2806
|
+
</fo:inline>
|
2807
|
+
</xsl:template><xsl:template match="*[local-name()='localityStack']"/><xsl:template match="*[local-name()='link']" name="link">
|
2808
|
+
<xsl:variable name="target">
|
2809
|
+
<xsl:choose>
|
2810
|
+
<xsl:when test="starts-with(normalize-space(@target), 'mailto:')">
|
2811
|
+
<xsl:value-of select="normalize-space(substring-after(@target, 'mailto:'))"/>
|
2812
|
+
</xsl:when>
|
2813
|
+
<xsl:otherwise>
|
2814
|
+
<xsl:value-of select="normalize-space(@target)"/>
|
2815
|
+
</xsl:otherwise>
|
2816
|
+
</xsl:choose>
|
2817
|
+
</xsl:variable>
|
2818
|
+
<fo:inline xsl:use-attribute-sets="link-style">
|
2819
|
+
<xsl:choose>
|
2820
|
+
<xsl:when test="$target = ''">
|
2821
|
+
<xsl:apply-templates/>
|
2822
|
+
</xsl:when>
|
2823
|
+
<xsl:otherwise>
|
2824
|
+
<fo:basic-link external-destination="{@target}" fox:alt-text="{@target}">
|
2825
|
+
<xsl:choose>
|
2826
|
+
<xsl:when test="normalize-space(.) = ''">
|
2827
|
+
<xsl:value-of select="$target"/>
|
2828
|
+
</xsl:when>
|
2829
|
+
<xsl:otherwise>
|
2830
|
+
<xsl:apply-templates/>
|
2831
|
+
</xsl:otherwise>
|
2832
|
+
</xsl:choose>
|
2833
|
+
</fo:basic-link>
|
2834
|
+
</xsl:otherwise>
|
2835
|
+
</xsl:choose>
|
2836
|
+
</fo:inline>
|
2837
|
+
</xsl:template><xsl:template match="*[local-name()='bookmark']">
|
2838
|
+
<fo:inline id="{@id}"/>
|
2839
|
+
</xsl:template><xsl:template match="*[local-name()='appendix']">
|
2840
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-style">
|
2841
|
+
<xsl:apply-templates select="*[local-name()='title']" mode="process"/>
|
2842
|
+
</fo:block>
|
2843
|
+
<xsl:apply-templates/>
|
2844
|
+
</xsl:template><xsl:template match="*[local-name()='appendix']/*[local-name()='title']"/><xsl:template match="*[local-name()='appendix']/*[local-name()='title']" mode="process">
|
2845
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
2846
|
+
</xsl:template><xsl:template match="*[local-name()='appendix']//*[local-name()='example']" priority="2">
|
2847
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="appendix-example-style">
|
2848
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
2849
|
+
</fo:block>
|
2850
|
+
<xsl:apply-templates/>
|
2851
|
+
</xsl:template><xsl:template match="*[local-name() = 'callout']">
|
2852
|
+
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}"><<xsl:apply-templates/>></fo:basic-link>
|
2853
|
+
</xsl:template><xsl:template match="*[local-name() = 'annotation']">
|
2854
|
+
<xsl:variable name="annotation-id" select="@id"/>
|
2855
|
+
<xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
|
2856
|
+
<fo:block id="{$annotation-id}" white-space="nowrap">
|
2857
|
+
<fo:inline>
|
2858
|
+
<xsl:apply-templates>
|
2859
|
+
<xsl:with-param name="callout" select="concat('<', $callout, '> ')"/>
|
2860
|
+
</xsl:apply-templates>
|
2861
|
+
</fo:inline>
|
2862
|
+
</fo:block>
|
2863
|
+
</xsl:template><xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
|
2864
|
+
<xsl:param name="callout"/>
|
2865
|
+
<fo:inline id="{@id}">
|
2866
|
+
<!-- for first p in annotation, put <x> -->
|
2867
|
+
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
|
2868
|
+
<xsl:apply-templates/>
|
2869
|
+
</fo:inline>
|
2870
|
+
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
2871
|
+
<xsl:variable name="title-modified">
|
2872
|
+
<xsl:call-template name="getTitle">
|
2873
|
+
<xsl:with-param name="name" select="'title-modified'"/>
|
2874
|
+
</xsl:call-template>
|
2875
|
+
</xsl:variable>
|
2876
|
+
<xsl:choose>
|
2877
|
+
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
|
2878
|
+
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
|
2879
|
+
</xsl:choose>
|
2880
|
+
<xsl:apply-templates/>
|
2881
|
+
</xsl:template><xsl:template match="*[local-name() = 'xref']">
|
2882
|
+
<fo:basic-link internal-destination="{@target}" fox:alt-text="{@target}" xsl:use-attribute-sets="xref-style">
|
2883
|
+
|
2884
|
+
<xsl:apply-templates/>
|
2885
|
+
</fo:basic-link>
|
2886
|
+
</xsl:template><xsl:template match="*[local-name() = 'formula']" name="formula">
|
2887
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="formula-style">
|
2888
|
+
<xsl:apply-templates/>
|
2889
|
+
</fo:block>
|
2890
|
+
</xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'dt']/*[local-name() = 'stem']">
|
2891
|
+
<fo:inline>
|
2892
|
+
<xsl:apply-templates/>
|
2893
|
+
</fo:inline>
|
2894
|
+
</xsl:template><xsl:template match="*[local-name() = 'admitted']/*[local-name() = 'stem']">
|
2895
|
+
<fo:inline>
|
2896
|
+
<xsl:apply-templates/>
|
2897
|
+
</fo:inline>
|
2898
|
+
</xsl:template><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'formula']/*[local-name() = 'name']" mode="presentation">
|
2899
|
+
<xsl:if test="normalize-space() != ''">
|
2900
|
+
<xsl:text>(</xsl:text><xsl:apply-templates/><xsl:text>)</xsl:text>
|
2901
|
+
</xsl:if>
|
2902
|
+
</xsl:template><xsl:template match="*[local-name() = 'note']" name="note">
|
2903
|
+
|
2904
|
+
<fo:block-container id="{@id}" xsl:use-attribute-sets="note-style">
|
2905
|
+
|
2906
|
+
|
2907
|
+
|
2908
|
+
|
2909
|
+
<fo:block-container margin-left="0mm">
|
2910
|
+
|
2911
|
+
<fo:table table-layout="fixed" width="100%">
|
2912
|
+
<fo:table-column column-width="10mm"/>
|
2913
|
+
<fo:table-column column-width="155mm"/>
|
2914
|
+
<fo:table-body>
|
2915
|
+
<fo:table-row>
|
2916
|
+
<fo:table-cell>
|
2917
|
+
<fo:block font-family="SimHei" xsl:use-attribute-sets="note-name-style">
|
2918
|
+
<xsl:apply-templates select="gb:name" mode="presentation"/>
|
2919
|
+
</fo:block>
|
2920
|
+
</fo:table-cell>
|
2921
|
+
<fo:table-cell>
|
2922
|
+
<fo:block text-align="justify">
|
2923
|
+
<xsl:apply-templates/>
|
2924
|
+
</fo:block>
|
2925
|
+
</fo:table-cell>
|
2926
|
+
</fo:table-row>
|
2927
|
+
</fo:table-body>
|
2928
|
+
</fo:table>
|
2929
|
+
|
2930
|
+
|
2931
|
+
|
2932
|
+
|
2933
|
+
|
2934
|
+
|
2935
|
+
|
2936
|
+
|
2937
|
+
|
2938
|
+
</fo:block-container>
|
2939
|
+
</fo:block-container>
|
2940
|
+
|
2941
|
+
</xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'p']">
|
2942
|
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
2943
|
+
<xsl:choose>
|
2944
|
+
<xsl:when test="$num = 1">
|
2945
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
2946
|
+
<xsl:apply-templates/>
|
2947
|
+
</fo:inline>
|
2948
|
+
</xsl:when>
|
2949
|
+
<xsl:otherwise>
|
2950
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
2951
|
+
<xsl:apply-templates/>
|
2952
|
+
</fo:block>
|
2953
|
+
</xsl:otherwise>
|
2954
|
+
</xsl:choose>
|
2955
|
+
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
2956
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
2957
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
2958
|
+
<xsl:apply-templates/>
|
2959
|
+
</fo:block>
|
2960
|
+
</xsl:template><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name'] | *[local-name() = 'termnote']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'note']/*[local-name() = 'name']" mode="presentation">
|
2961
|
+
<xsl:param name="sfx"/>
|
2962
|
+
<xsl:variable name="suffix">
|
2963
|
+
<xsl:choose>
|
2964
|
+
<xsl:when test="$sfx != ''">
|
2965
|
+
<xsl:value-of select="$sfx"/>
|
2966
|
+
</xsl:when>
|
2967
|
+
<xsl:otherwise>
|
2968
|
+
|
2969
|
+
<xsl:text>:</xsl:text>
|
2970
|
+
|
2971
|
+
|
2972
|
+
</xsl:otherwise>
|
2973
|
+
</xsl:choose>
|
2974
|
+
</xsl:variable>
|
2975
|
+
<xsl:if test="normalize-space() != ''">
|
2976
|
+
<xsl:apply-templates/>
|
2977
|
+
<xsl:value-of select="$suffix"/>
|
2978
|
+
</xsl:if>
|
2979
|
+
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'name']" mode="presentation">
|
2980
|
+
<xsl:param name="sfx"/>
|
2981
|
+
<xsl:variable name="suffix">
|
2982
|
+
<xsl:choose>
|
2983
|
+
<xsl:when test="$sfx != ''">
|
2984
|
+
<xsl:value-of select="$sfx"/>
|
2985
|
+
</xsl:when>
|
2986
|
+
<xsl:otherwise>
|
2987
|
+
|
2988
|
+
<xsl:text>:</xsl:text>
|
2989
|
+
|
2990
|
+
|
2991
|
+
</xsl:otherwise>
|
2992
|
+
</xsl:choose>
|
2993
|
+
</xsl:variable>
|
2994
|
+
<xsl:if test="normalize-space() != ''">
|
2995
|
+
<xsl:apply-templates/>
|
2996
|
+
<xsl:value-of select="$suffix"/>
|
2997
|
+
</xsl:if>
|
2998
|
+
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
2999
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
3000
|
+
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
3001
|
+
<fo:block id="{@id}">
|
3002
|
+
<xsl:apply-templates/>
|
3003
|
+
</fo:block>
|
3004
|
+
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3005
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3006
|
+
|
3007
|
+
<fo:block font-family="SimHei" font-size="11pt" keep-with-next="always" margin-top="10pt" margin-bottom="8pt" line-height="1.1">
|
3008
|
+
<xsl:apply-templates select="gb:name" mode="presentation"/>
|
3009
|
+
</fo:block>
|
3010
|
+
|
3011
|
+
|
3012
|
+
|
3013
|
+
<xsl:apply-templates/>
|
3014
|
+
</fo:block>
|
3015
|
+
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
|
3016
|
+
<xsl:if test="normalize-space() != ''">
|
3017
|
+
<fo:inline>
|
3018
|
+
<xsl:apply-templates/>
|
3019
|
+
<!-- <xsl:if test="$namespace = 'gb' or $namespace = 'ogc'">
|
3020
|
+
<xsl:text>.</xsl:text>
|
3021
|
+
</xsl:if> -->
|
3022
|
+
</fo:inline>
|
3023
|
+
</xsl:if>
|
3024
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']">
|
3025
|
+
<fo:block-container id="{@id}">
|
3026
|
+
<fo:block>
|
3027
|
+
<xsl:apply-templates/>
|
3028
|
+
</fo:block>
|
3029
|
+
<xsl:call-template name="fn_display_figure"/>
|
3030
|
+
<xsl:for-each select="*[local-name() = 'note']">
|
3031
|
+
<xsl:call-template name="note"/>
|
3032
|
+
</xsl:for-each>
|
3033
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3034
|
+
</fo:block-container>
|
3035
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
3036
|
+
<fo:block id="{@id}">
|
3037
|
+
<xsl:apply-templates/>
|
3038
|
+
</fo:block>
|
3039
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']//*[local-name() = 'p']">
|
3040
|
+
<fo:block xsl:use-attribute-sets="figure-pseudocode-p-style">
|
3041
|
+
<xsl:apply-templates/>
|
3042
|
+
</fo:block>
|
3043
|
+
</xsl:template><xsl:template match="*[local-name() = 'image']">
|
3044
|
+
<fo:block xsl:use-attribute-sets="image-style">
|
3045
|
+
|
3046
|
+
|
3047
|
+
<xsl:variable name="src">
|
3048
|
+
<xsl:choose>
|
3049
|
+
<xsl:when test="@mimetype = 'image/svg+xml' and $images/images/image[@id = current()/@id]">
|
3050
|
+
<xsl:value-of select="$images/images/image[@id = current()/@id]/@src"/>
|
3051
|
+
</xsl:when>
|
3052
|
+
<xsl:otherwise>
|
3053
|
+
<xsl:value-of select="@src"/>
|
3054
|
+
</xsl:otherwise>
|
3055
|
+
</xsl:choose>
|
3056
|
+
</xsl:variable>
|
3057
|
+
|
3058
|
+
<fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" xsl:use-attribute-sets="image-graphic-style"/>
|
3059
|
+
</fo:block>
|
3060
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="contents">
|
3061
|
+
<xsl:apply-templates mode="contents"/>
|
3062
|
+
<xsl:text> </xsl:text>
|
3063
|
+
</xsl:template><xsl:template match="text()" mode="contents">
|
3064
|
+
<xsl:value-of select="."/>
|
3065
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'image']/*[local-name() = 'name']" mode="presentation">
|
3066
|
+
<xsl:if test="normalize-space() != ''">
|
3067
|
+
<fo:block xsl:use-attribute-sets="figure-name-style">
|
3068
|
+
|
3069
|
+
<xsl:apply-templates/>
|
3070
|
+
</fo:block>
|
3071
|
+
</xsl:if>
|
3072
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'fn']" priority="2"/><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'note']"/><xsl:template match="*[local-name() = 'title']" mode="contents_item">
|
3073
|
+
<xsl:apply-templates mode="contents_item"/>
|
3074
|
+
<!-- <xsl:text> </xsl:text> -->
|
3075
|
+
</xsl:template><xsl:template name="getSection">
|
3076
|
+
<xsl:value-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
3077
|
+
</xsl:template><xsl:template name="getName">
|
3078
|
+
<xsl:choose>
|
3079
|
+
<xsl:when test="*[local-name() = 'title']/*[local-name() = 'tab']">
|
3080
|
+
<xsl:copy-of select="*[local-name() = 'title']/*[local-name() = 'tab'][1]/following-sibling::node()"/>
|
3081
|
+
</xsl:when>
|
3082
|
+
<xsl:otherwise>
|
3083
|
+
<xsl:copy-of select="*[local-name() = 'title']/node()"/>
|
3084
|
+
</xsl:otherwise>
|
3085
|
+
</xsl:choose>
|
3086
|
+
</xsl:template><xsl:template name="insertTitleAsListItem">
|
3087
|
+
<xsl:param name="provisional-distance-between-starts" select="'9.5mm'"/>
|
3088
|
+
<xsl:variable name="section">
|
3089
|
+
<xsl:for-each select="..">
|
3090
|
+
<xsl:call-template name="getSection"/>
|
3091
|
+
</xsl:for-each>
|
3092
|
+
</xsl:variable>
|
3093
|
+
<fo:list-block provisional-distance-between-starts="{$provisional-distance-between-starts}">
|
3094
|
+
<fo:list-item>
|
3095
|
+
<fo:list-item-label end-indent="label-end()">
|
3096
|
+
<fo:block>
|
3097
|
+
<xsl:value-of select="$section"/>
|
3098
|
+
</fo:block>
|
3099
|
+
</fo:list-item-label>
|
3100
|
+
<fo:list-item-body start-indent="body-start()">
|
3101
|
+
<fo:block>
|
3102
|
+
<xsl:choose>
|
3103
|
+
<xsl:when test="*[local-name() = 'tab']">
|
3104
|
+
<xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
|
3105
|
+
</xsl:when>
|
3106
|
+
<xsl:otherwise>
|
3107
|
+
<xsl:apply-templates/>
|
3108
|
+
</xsl:otherwise>
|
3109
|
+
</xsl:choose>
|
3110
|
+
</fo:block>
|
3111
|
+
</fo:list-item-body>
|
3112
|
+
</fo:list-item>
|
3113
|
+
</fo:list-block>
|
3114
|
+
</xsl:template><xsl:template name="extractTitle">
|
3115
|
+
<xsl:choose>
|
3116
|
+
<xsl:when test="*[local-name() = 'tab']">
|
3117
|
+
<xsl:apply-templates select="*[local-name() = 'tab'][1]/following-sibling::node()"/>
|
3118
|
+
</xsl:when>
|
3119
|
+
<xsl:otherwise>
|
3120
|
+
<xsl:apply-templates/>
|
3121
|
+
</xsl:otherwise>
|
3122
|
+
</xsl:choose>
|
3123
|
+
</xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
3124
|
+
<xsl:text> </xsl:text>
|
3125
|
+
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
3126
|
+
<xsl:copy>
|
3127
|
+
<xsl:apply-templates mode="contents_item"/>
|
3128
|
+
</xsl:copy>
|
3129
|
+
</xsl:template><xsl:template match="*[local-name() = 'br']" mode="contents_item">
|
3130
|
+
<xsl:text> </xsl:text>
|
3131
|
+
</xsl:template><xsl:template match="*[local-name()='sourcecode']" name="sourcecode">
|
3132
|
+
<fo:block xsl:use-attribute-sets="sourcecode-style">
|
3133
|
+
<xsl:apply-templates/>
|
3134
|
+
</fo:block>
|
3135
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3136
|
+
</xsl:template><xsl:template match="*[local-name()='sourcecode']/text()">
|
3137
|
+
<xsl:variable name="text">
|
3138
|
+
<xsl:call-template name="add-zero-spaces-equal"/>
|
3139
|
+
</xsl:variable>
|
3140
|
+
<xsl:call-template name="add-zero-spaces">
|
3141
|
+
<xsl:with-param name="text" select="$text"/>
|
3142
|
+
</xsl:call-template>
|
3143
|
+
</xsl:template><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'sourcecode']/*[local-name() = 'name']" mode="presentation">
|
3144
|
+
<xsl:if test="normalize-space() != ''">
|
3145
|
+
<fo:block xsl:use-attribute-sets="sourcecode-name-style">
|
3146
|
+
|
3147
|
+
<xsl:apply-templates/>
|
3148
|
+
</fo:block>
|
3149
|
+
</xsl:if>
|
3150
|
+
</xsl:template><xsl:template match="*[local-name() = 'permission']">
|
3151
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="permission-style">
|
3152
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3153
|
+
<xsl:apply-templates/>
|
3154
|
+
</fo:block>
|
3155
|
+
</xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'name']" mode="presentation">
|
3156
|
+
<xsl:if test="normalize-space() != ''">
|
3157
|
+
<fo:block xsl:use-attribute-sets="permission-name-style">
|
3158
|
+
<xsl:apply-templates/>
|
3159
|
+
|
3160
|
+
</fo:block>
|
3161
|
+
</xsl:if>
|
3162
|
+
</xsl:template><xsl:template match="*[local-name() = 'permission']/*[local-name() = 'label']">
|
3163
|
+
<fo:block xsl:use-attribute-sets="permission-label-style">
|
3164
|
+
<xsl:apply-templates/>
|
3165
|
+
</fo:block>
|
3166
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']">
|
3167
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="requirement-style">
|
3168
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3169
|
+
<xsl:apply-templates select="*[local-name()='label']" mode="presentation"/>
|
3170
|
+
<xsl:apply-templates select="@obligation" mode="presentation"/>
|
3171
|
+
<xsl:apply-templates select="*[local-name()='subject']" mode="presentation"/>
|
3172
|
+
<xsl:apply-templates/>
|
3173
|
+
</fo:block>
|
3174
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'name']" mode="presentation">
|
3175
|
+
<xsl:if test="normalize-space() != ''">
|
3176
|
+
<fo:block xsl:use-attribute-sets="requirement-name-style">
|
3177
|
+
|
3178
|
+
<xsl:apply-templates/>
|
3179
|
+
|
3180
|
+
</fo:block>
|
3181
|
+
</xsl:if>
|
3182
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'label']" mode="presentation">
|
3183
|
+
<fo:block xsl:use-attribute-sets="requirement-label-style">
|
3184
|
+
<xsl:apply-templates/>
|
3185
|
+
</fo:block>
|
3186
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/@obligation" mode="presentation">
|
3187
|
+
<fo:block>
|
3188
|
+
<fo:inline padding-right="3mm">Obligation</fo:inline><xsl:value-of select="."/>
|
3189
|
+
</fo:block>
|
3190
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']"/><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'subject']" mode="presentation">
|
3191
|
+
<fo:block xsl:use-attribute-sets="requirement-subject-style">
|
3192
|
+
<xsl:text>Target Type </xsl:text><xsl:apply-templates/>
|
3193
|
+
</fo:block>
|
3194
|
+
</xsl:template><xsl:template match="*[local-name() = 'requirement']/*[local-name() = 'inherit']">
|
3195
|
+
<fo:block xsl:use-attribute-sets="requirement-inherit-style">
|
3196
|
+
<xsl:text>Dependency </xsl:text><xsl:apply-templates/>
|
3197
|
+
</fo:block>
|
3198
|
+
</xsl:template><xsl:template match="*[local-name() = 'recommendation']">
|
3199
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="recommendation-style">
|
3200
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3201
|
+
<xsl:apply-templates/>
|
3202
|
+
</fo:block>
|
3203
|
+
</xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'name']" mode="presentation">
|
3204
|
+
<xsl:if test="normalize-space() != ''">
|
3205
|
+
<fo:block xsl:use-attribute-sets="recommendation-name-style">
|
3206
|
+
<xsl:apply-templates/>
|
3207
|
+
|
3208
|
+
</fo:block>
|
3209
|
+
</xsl:if>
|
3210
|
+
</xsl:template><xsl:template match="*[local-name() = 'recommendation']/*[local-name() = 'label']">
|
3211
|
+
<fo:block xsl:use-attribute-sets="recommendation-label-style">
|
3212
|
+
<xsl:apply-templates/>
|
3213
|
+
</fo:block>
|
3214
|
+
</xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
|
3215
|
+
<fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
|
3216
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
3217
|
+
<fo:table id="{@id}" table-layout="fixed" width="100%" border="0pt solid black">
|
3218
|
+
<xsl:variable name="simple-table">
|
3219
|
+
<xsl:call-template name="getSimpleTable"/>
|
3220
|
+
</xsl:variable>
|
3221
|
+
<xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
|
3222
|
+
<xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
|
3223
|
+
<fo:table-column column-width="35mm"/>
|
3224
|
+
<fo:table-column column-width="115mm"/>
|
3225
|
+
</xsl:if>
|
3226
|
+
<xsl:apply-templates mode="requirement"/>
|
3227
|
+
</fo:table>
|
3228
|
+
<!-- fn processing -->
|
3229
|
+
<xsl:if test=".//*[local-name() = 'fn']">
|
3230
|
+
<xsl:for-each select="*[local-name() = 'tbody']">
|
3231
|
+
<fo:block font-size="90%" border-bottom="1.pt solid black">
|
3232
|
+
<xsl:call-template name="fn_display"/>
|
3233
|
+
</fo:block>
|
3234
|
+
</xsl:for-each>
|
3235
|
+
</xsl:if>
|
3236
|
+
</fo:block-container>
|
3237
|
+
</fo:block-container>
|
3238
|
+
</xsl:template><xsl:template match="*[local-name()='thead']" mode="requirement">
|
3239
|
+
<fo:table-header>
|
3240
|
+
<xsl:apply-templates mode="requirement"/>
|
3241
|
+
</fo:table-header>
|
3242
|
+
</xsl:template><xsl:template match="*[local-name()='tbody']" mode="requirement">
|
3243
|
+
<fo:table-body>
|
3244
|
+
<xsl:apply-templates mode="requirement"/>
|
3245
|
+
</fo:table-body>
|
3246
|
+
</xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
|
3247
|
+
<fo:table-row>
|
3248
|
+
<xsl:apply-templates mode="requirement"/>
|
3249
|
+
</fo:table-row>
|
3250
|
+
</xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
|
3251
|
+
<fo:table-cell text-align="{@align}">
|
3252
|
+
<xsl:attribute name="text-align">
|
3253
|
+
<xsl:choose>
|
3254
|
+
<xsl:when test="@align">
|
3255
|
+
<xsl:value-of select="@align"/>
|
3256
|
+
</xsl:when>
|
3257
|
+
<xsl:otherwise>center</xsl:otherwise>
|
3258
|
+
</xsl:choose>
|
3259
|
+
</xsl:attribute>
|
3260
|
+
<xsl:if test="@colspan">
|
3261
|
+
<xsl:attribute name="number-columns-spanned">
|
3262
|
+
<xsl:value-of select="@colspan"/>
|
3263
|
+
</xsl:attribute>
|
3264
|
+
</xsl:if>
|
3265
|
+
<xsl:if test="@rowspan">
|
3266
|
+
<xsl:attribute name="number-rows-spanned">
|
3267
|
+
<xsl:value-of select="@rowspan"/>
|
3268
|
+
</xsl:attribute>
|
3269
|
+
</xsl:if>
|
3270
|
+
|
3271
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
3272
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3273
|
+
<xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
|
3274
|
+
</xsl:if>
|
3275
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
|
3276
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3277
|
+
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
3278
|
+
</xsl:if>
|
3279
|
+
|
3280
|
+
<fo:block>
|
3281
|
+
<xsl:apply-templates/>
|
3282
|
+
</fo:block>
|
3283
|
+
</fo:table-cell>
|
3284
|
+
</xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
|
3285
|
+
<fo:table-cell text-align="{@align}">
|
3286
|
+
<xsl:attribute name="text-align">
|
3287
|
+
<xsl:choose>
|
3288
|
+
<xsl:when test="@align">
|
3289
|
+
<xsl:value-of select="@align"/>
|
3290
|
+
</xsl:when>
|
3291
|
+
<xsl:otherwise>left</xsl:otherwise>
|
3292
|
+
</xsl:choose>
|
3293
|
+
</xsl:attribute>
|
3294
|
+
<xsl:if test="@colspan">
|
3295
|
+
<xsl:attribute name="number-columns-spanned">
|
3296
|
+
<xsl:value-of select="@colspan"/>
|
3297
|
+
</xsl:attribute>
|
3298
|
+
</xsl:if>
|
3299
|
+
<xsl:if test="@rowspan">
|
3300
|
+
<xsl:attribute name="number-rows-spanned">
|
3301
|
+
<xsl:value-of select="@rowspan"/>
|
3302
|
+
</xsl:attribute>
|
3303
|
+
</xsl:if>
|
3304
|
+
|
3305
|
+
<xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
|
3306
|
+
<xsl:attribute name="padding-left">0.5mm</xsl:attribute>
|
3307
|
+
<xsl:attribute name="padding-top">0.5mm</xsl:attribute>
|
3308
|
+
<xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])"> <!-- 2nd line and below -->
|
3309
|
+
<xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
|
3310
|
+
</xsl:if>
|
3311
|
+
</xsl:if>
|
3312
|
+
|
3313
|
+
<fo:block>
|
3314
|
+
<xsl:apply-templates/>
|
3315
|
+
</fo:block>
|
3316
|
+
</fo:table-cell>
|
3317
|
+
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
3318
|
+
<fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="4pt">
|
3319
|
+
<xsl:apply-templates/>
|
3320
|
+
</fo:block>
|
3321
|
+
</xsl:template><xsl:template match="*[local-name() = 'p'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
3322
|
+
<fo:block margin-bottom="10pt">
|
3323
|
+
<xsl:apply-templates/>
|
3324
|
+
</fo:block>
|
3325
|
+
</xsl:template><xsl:template match="*[local-name() = 'termexample']">
|
3326
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
|
3327
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3328
|
+
<xsl:apply-templates/>
|
3329
|
+
</fo:block>
|
3330
|
+
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'name']" mode="presentation">
|
3331
|
+
<xsl:if test="normalize-space() != ''">
|
3332
|
+
<fo:inline xsl:use-attribute-sets="termexample-name-style">
|
3333
|
+
<xsl:apply-templates/>
|
3334
|
+
</fo:inline>
|
3335
|
+
</xsl:if>
|
3336
|
+
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
3337
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
3338
|
+
</xsl:template><xsl:template match="*[local-name() = 'example']">
|
3339
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="example-style">
|
3340
|
+
|
3341
|
+
<xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
|
3342
|
+
|
3343
|
+
<xsl:variable name="element">
|
3344
|
+
block
|
3345
|
+
|
3346
|
+
</xsl:variable>
|
3347
|
+
|
3348
|
+
<xsl:choose>
|
3349
|
+
<xsl:when test="normalize-space($element) = 'block'">
|
3350
|
+
<fo:block xsl:use-attribute-sets="example-body-style">
|
3351
|
+
<xsl:apply-templates/>
|
3352
|
+
</fo:block>
|
3353
|
+
</xsl:when>
|
3354
|
+
<xsl:otherwise>
|
3355
|
+
<fo:inline>
|
3356
|
+
<xsl:apply-templates/>
|
3357
|
+
</fo:inline>
|
3358
|
+
</xsl:otherwise>
|
3359
|
+
</xsl:choose>
|
3360
|
+
|
3361
|
+
</fo:block>
|
3362
|
+
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'example']/*[local-name() = 'name']" mode="presentation">
|
3363
|
+
|
3364
|
+
<xsl:variable name="element">
|
3365
|
+
|
3366
|
+
inline
|
3367
|
+
</xsl:variable>
|
3368
|
+
<xsl:choose>
|
3369
|
+
<xsl:when test="ancestor::*[local-name() = 'appendix']">
|
3370
|
+
<fo:inline>
|
3371
|
+
<xsl:apply-templates/>
|
3372
|
+
</fo:inline>
|
3373
|
+
</xsl:when>
|
3374
|
+
<xsl:when test="normalize-space($element) = 'block'">
|
3375
|
+
<fo:block xsl:use-attribute-sets="example-name-style">
|
3376
|
+
<xsl:apply-templates/>
|
3377
|
+
</fo:block>
|
3378
|
+
</xsl:when>
|
3379
|
+
<xsl:otherwise>
|
3380
|
+
<fo:inline xsl:use-attribute-sets="example-name-style">
|
3381
|
+
<xsl:apply-templates/>
|
3382
|
+
</fo:inline>
|
3383
|
+
</xsl:otherwise>
|
3384
|
+
</xsl:choose>
|
3385
|
+
|
3386
|
+
</xsl:template><xsl:template match="*[local-name() = 'example']/*[local-name() = 'p']">
|
3387
|
+
<fo:block xsl:use-attribute-sets="example-p-style">
|
3388
|
+
|
3389
|
+
<xsl:apply-templates/>
|
3390
|
+
</fo:block>
|
3391
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']">
|
3392
|
+
<fo:block xsl:use-attribute-sets="termsource-style">
|
3393
|
+
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
3394
|
+
<xsl:variable name="termsource_text">
|
3395
|
+
<xsl:apply-templates/>
|
3396
|
+
</xsl:variable>
|
3351
3397
|
<xsl:choose>
|
3352
|
-
<xsl:when test="starts-with(normalize-space(
|
3353
|
-
<xsl:
|
3398
|
+
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
3399
|
+
<xsl:apply-templates/>
|
3354
3400
|
</xsl:when>
|
3355
3401
|
<xsl:otherwise>
|
3356
|
-
<xsl:
|
3402
|
+
<xsl:text>[</xsl:text>
|
3403
|
+
<xsl:apply-templates/>
|
3404
|
+
<xsl:text>]</xsl:text>
|
3357
3405
|
</xsl:otherwise>
|
3358
3406
|
</xsl:choose>
|
3407
|
+
</fo:block>
|
3408
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']/text()">
|
3409
|
+
<xsl:if test="normalize-space() != ''">
|
3410
|
+
<xsl:value-of select="."/>
|
3411
|
+
</xsl:if>
|
3412
|
+
</xsl:template><xsl:template match="*[local-name() = 'origin']">
|
3413
|
+
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
3414
|
+
|
3415
|
+
<fo:inline xsl:use-attribute-sets="origin-style">
|
3416
|
+
<xsl:apply-templates/>
|
3417
|
+
</fo:inline>
|
3418
|
+
</fo:basic-link>
|
3419
|
+
</xsl:template><xsl:template match="*[local-name() = 'modification']/*[local-name() = 'p']">
|
3420
|
+
<fo:inline><xsl:apply-templates/></fo:inline>
|
3421
|
+
</xsl:template><xsl:template match="*[local-name() = 'modification']/text()">
|
3422
|
+
<xsl:if test="normalize-space() != ''">
|
3423
|
+
<xsl:value-of select="."/>
|
3424
|
+
</xsl:if>
|
3425
|
+
</xsl:template><xsl:template match="*[local-name() = 'quote']">
|
3426
|
+
|
3427
|
+
<fo:block xsl:use-attribute-sets="quote-style">
|
3428
|
+
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
3429
|
+
</fo:block>
|
3430
|
+
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
3431
|
+
<fo:block xsl:use-attribute-sets="quote-source-style">
|
3432
|
+
<!-- — ISO, ISO 7301:2011, Clause 1 -->
|
3433
|
+
<xsl:apply-templates select="*[local-name() = 'author']"/>
|
3434
|
+
<xsl:apply-templates select="*[local-name() = 'source']"/>
|
3435
|
+
</fo:block>
|
3436
|
+
</xsl:if>
|
3437
|
+
</xsl:template><xsl:template match="*[local-name() = 'source']">
|
3438
|
+
<xsl:if test="../*[local-name() = 'author']">
|
3439
|
+
<xsl:text>, </xsl:text>
|
3440
|
+
</xsl:if>
|
3441
|
+
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
3442
|
+
<xsl:apply-templates/>
|
3443
|
+
</fo:basic-link>
|
3444
|
+
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
3445
|
+
<xsl:text>— </xsl:text>
|
3446
|
+
<xsl:apply-templates/>
|
3447
|
+
</xsl:template><xsl:template match="*[local-name() = 'eref']">
|
3448
|
+
<fo:inline xsl:use-attribute-sets="eref-style">
|
3449
|
+
<xsl:if test="@type = 'footnote'">
|
3450
|
+
|
3451
|
+
|
3452
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
3453
|
+
<xsl:attribute name="font-size">50%</xsl:attribute>
|
3454
|
+
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
3455
|
+
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
3456
|
+
|
3457
|
+
</xsl:if>
|
3458
|
+
|
3459
|
+
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
3460
|
+
|
3461
|
+
<xsl:if test="@type = 'inline'">
|
3462
|
+
|
3463
|
+
|
3464
|
+
</xsl:if>
|
3465
|
+
|
3466
|
+
|
3467
|
+
<xsl:apply-templates/>
|
3468
|
+
</fo:basic-link>
|
3469
|
+
</fo:inline>
|
3470
|
+
</xsl:template><xsl:template match="*[local-name() = 'tab']">
|
3471
|
+
<!-- zero-space char -->
|
3472
|
+
<xsl:variable name="depth">
|
3473
|
+
<xsl:call-template name="getLevel">
|
3474
|
+
<xsl:with-param name="depth" select="../@depth"/>
|
3475
|
+
</xsl:call-template>
|
3359
3476
|
</xsl:variable>
|
3360
|
-
|
3477
|
+
|
3478
|
+
<xsl:variable name="padding">
|
3479
|
+
|
3480
|
+
|
3481
|
+
3
|
3482
|
+
|
3483
|
+
|
3484
|
+
|
3485
|
+
|
3486
|
+
|
3487
|
+
|
3488
|
+
|
3489
|
+
|
3490
|
+
|
3491
|
+
|
3492
|
+
|
3493
|
+
|
3494
|
+
|
3495
|
+
|
3496
|
+
</xsl:variable>
|
3497
|
+
|
3498
|
+
<xsl:variable name="padding-right">
|
3361
3499
|
<xsl:choose>
|
3362
|
-
<xsl:when test="$
|
3363
|
-
<xsl:apply-templates/>
|
3364
|
-
</xsl:when>
|
3500
|
+
<xsl:when test="normalize-space($padding) = ''">0</xsl:when>
|
3365
3501
|
<xsl:otherwise>
|
3366
|
-
<
|
3367
|
-
<xsl:choose>
|
3368
|
-
<xsl:when test="normalize-space(.) = ''">
|
3369
|
-
<xsl:value-of select="$target"/>
|
3370
|
-
</xsl:when>
|
3371
|
-
<xsl:otherwise>
|
3372
|
-
<xsl:apply-templates/>
|
3373
|
-
</xsl:otherwise>
|
3374
|
-
</xsl:choose>
|
3375
|
-
</fo:basic-link>
|
3502
|
+
<xsl:value-of select="normalize-space($padding)"/>
|
3376
3503
|
</xsl:otherwise>
|
3377
3504
|
</xsl:choose>
|
3378
|
-
</
|
3379
|
-
|
3380
|
-
<
|
3381
|
-
|
3382
|
-
|
3383
|
-
|
3384
|
-
|
3385
|
-
|
3386
|
-
|
3387
|
-
|
3505
|
+
</xsl:variable>
|
3506
|
+
|
3507
|
+
<xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
3508
|
+
|
3509
|
+
<xsl:choose>
|
3510
|
+
<xsl:when test="$language = 'zh'">
|
3511
|
+
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
3512
|
+
</xsl:when>
|
3513
|
+
<xsl:when test="../../@inline-header = 'true'">
|
3514
|
+
<fo:inline font-size="90%">
|
3515
|
+
<xsl:call-template name="insertNonBreakSpaces">
|
3516
|
+
<xsl:with-param name="count" select="$padding-right"/>
|
3517
|
+
</xsl:call-template>
|
3518
|
+
</fo:inline>
|
3519
|
+
</xsl:when>
|
3520
|
+
<xsl:otherwise>
|
3521
|
+
<fo:inline padding-right="{$padding-right}mm"></fo:inline>
|
3522
|
+
</xsl:otherwise>
|
3523
|
+
</xsl:choose>
|
3524
|
+
|
3525
|
+
</xsl:template><xsl:template name="insertNonBreakSpaces">
|
3526
|
+
<xsl:param name="count"/>
|
3527
|
+
<xsl:if test="$count > 0">
|
3528
|
+
<xsl:text> </xsl:text>
|
3529
|
+
<xsl:call-template name="insertNonBreakSpaces">
|
3530
|
+
<xsl:with-param name="count" select="$count - 1"/>
|
3531
|
+
</xsl:call-template>
|
3532
|
+
</xsl:if>
|
3533
|
+
</xsl:template><xsl:template match="*[local-name() = 'domain']">
|
3534
|
+
<fo:inline xsl:use-attribute-sets="domain-style"><<xsl:apply-templates/>></fo:inline>
|
3535
|
+
<xsl:text> </xsl:text>
|
3536
|
+
</xsl:template><xsl:template match="*[local-name() = 'admitted']">
|
3537
|
+
<fo:block xsl:use-attribute-sets="admitted-style">
|
3388
3538
|
<xsl:apply-templates/>
|
3389
3539
|
</fo:block>
|
3390
|
-
</xsl:template><xsl:template match="*[local-name()='
|
3391
|
-
<
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3400
|
-
|
3540
|
+
</xsl:template><xsl:template match="*[local-name() = 'deprecates']">
|
3541
|
+
<xsl:variable name="title-deprecated">
|
3542
|
+
<xsl:call-template name="getTitle">
|
3543
|
+
<xsl:with-param name="name" select="'title-deprecated'"/>
|
3544
|
+
</xsl:call-template>
|
3545
|
+
</xsl:variable>
|
3546
|
+
<fo:block xsl:use-attribute-sets="deprecates-style">
|
3547
|
+
<xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
|
3548
|
+
</fo:block>
|
3549
|
+
</xsl:template><xsl:template match="*[local-name() = 'definition']">
|
3550
|
+
<fo:block xsl:use-attribute-sets="definition-style">
|
3551
|
+
<xsl:apply-templates/>
|
3401
3552
|
</fo:block>
|
3553
|
+
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]">
|
3402
3554
|
<xsl:apply-templates/>
|
3403
|
-
</xsl:template><xsl:template match="*[local-name()='
|
3404
|
-
<fo:inline
|
3405
|
-
|
3406
|
-
|
3407
|
-
|
3408
|
-
|
3409
|
-
|
3410
|
-
|
3411
|
-
|
3412
|
-
|
3413
|
-
|
3414
|
-
|
3415
|
-
<xsl:
|
3555
|
+
</xsl:template><xsl:template match="*[local-name() = 'definition'][preceding-sibling::*[local-name() = 'domain']]/*[local-name() = 'p']">
|
3556
|
+
<fo:inline> <xsl:apply-templates/></fo:inline>
|
3557
|
+
<fo:block> </fo:block>
|
3558
|
+
</xsl:template><xsl:template match="/*/*[local-name() = 'sections']/*" priority="2">
|
3559
|
+
|
3560
|
+
<fo:block>
|
3561
|
+
<xsl:call-template name="setId"/>
|
3562
|
+
|
3563
|
+
|
3564
|
+
|
3565
|
+
<xsl:variable name="pos"><xsl:number count="gb:sections/gb:clause | gb:sections/gb:terms"/></xsl:variable>
|
3566
|
+
<xsl:if test="$pos >= 2">
|
3567
|
+
<xsl:attribute name="space-before">18pt</xsl:attribute>
|
3416
3568
|
</xsl:if>
|
3417
|
-
|
3418
|
-
|
3419
|
-
|
3569
|
+
|
3570
|
+
|
3571
|
+
|
3572
|
+
|
3573
|
+
|
3574
|
+
|
3575
|
+
|
3576
|
+
|
3577
|
+
<xsl:apply-templates/>
|
3420
3578
|
</fo:block>
|
3421
|
-
|
3422
|
-
|
3423
|
-
|
3424
|
-
</xsl:template><xsl:template match="
|
3425
|
-
<fo:
|
3426
|
-
|
3427
|
-
|
3428
|
-
<xsl:variable name="callout" select="//*[@target = $annotation-id]/text()"/>
|
3429
|
-
<fo:block id="{$annotation-id}" white-space="nowrap">
|
3430
|
-
<fo:inline>
|
3431
|
-
<xsl:apply-templates>
|
3432
|
-
<xsl:with-param name="callout" select="concat('<', $callout, '> ')"/>
|
3433
|
-
</xsl:apply-templates>
|
3434
|
-
</fo:inline>
|
3435
|
-
</fo:block>
|
3436
|
-
</xsl:template><xsl:template match="*[local-name() = 'annotation']/*[local-name() = 'p']">
|
3437
|
-
<xsl:param name="callout"/>
|
3438
|
-
<fo:inline id="{@id}">
|
3439
|
-
<!-- for first p in annotation, put <x> -->
|
3440
|
-
<xsl:if test="not(preceding-sibling::*[local-name() = 'p'])"><xsl:value-of select="$callout"/></xsl:if>
|
3579
|
+
|
3580
|
+
|
3581
|
+
|
3582
|
+
</xsl:template><xsl:template match="/*/*[local-name() = 'preface']/*" priority="2">
|
3583
|
+
<fo:block break-after="page"/>
|
3584
|
+
<fo:block>
|
3585
|
+
<xsl:call-template name="setId"/>
|
3441
3586
|
<xsl:apply-templates/>
|
3442
|
-
</fo:
|
3443
|
-
</xsl:template><xsl:template match="*[local-name() = '
|
3444
|
-
<
|
3445
|
-
<xsl:call-template name="
|
3446
|
-
|
3447
|
-
|
3448
|
-
|
3449
|
-
<
|
3450
|
-
<xsl:
|
3451
|
-
|
3452
|
-
|
3587
|
+
</fo:block>
|
3588
|
+
</xsl:template><xsl:template match="*[local-name() = 'clause']">
|
3589
|
+
<fo:block>
|
3590
|
+
<xsl:call-template name="setId"/>
|
3591
|
+
<xsl:apply-templates/>
|
3592
|
+
</fo:block>
|
3593
|
+
</xsl:template><xsl:template match="*[local-name() = 'definitions']">
|
3594
|
+
<fo:block id="{@id}">
|
3595
|
+
<xsl:apply-templates/>
|
3596
|
+
</fo:block>
|
3597
|
+
</xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
|
3598
|
+
|
3599
|
+
<fo:block id="{@id}">
|
3600
|
+
<xsl:apply-templates/>
|
3601
|
+
</fo:block>
|
3602
|
+
</xsl:template><xsl:template match="*[local-name() = 'annex']">
|
3603
|
+
<fo:block break-after="page"/>
|
3604
|
+
<fo:block id="{@id}">
|
3605
|
+
|
3606
|
+
</fo:block>
|
3453
3607
|
<xsl:apply-templates/>
|
3608
|
+
</xsl:template><xsl:template match="*[local-name() = 'review']">
|
3609
|
+
<!-- comment 2019-11-29 -->
|
3610
|
+
<!-- <fo:block font-weight="bold">Review:</fo:block>
|
3611
|
+
<xsl:apply-templates /> -->
|
3612
|
+
</xsl:template><xsl:template match="*[local-name() = 'name']/text()">
|
3613
|
+
<!-- 0xA0 to space replacement -->
|
3614
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
3615
|
+
</xsl:template><xsl:template match="*[local-name() = 'errata']">
|
3616
|
+
<!-- <row>
|
3617
|
+
<date>05-07-2013</date>
|
3618
|
+
<type>Editorial</type>
|
3619
|
+
<change>Changed CA-9 Priority Code from P1 to P2 in <xref target="tabled2"/>.</change>
|
3620
|
+
<pages>D-3</pages>
|
3621
|
+
</row>
|
3622
|
+
-->
|
3623
|
+
<fo:table table-layout="fixed" width="100%" font-size="10pt" border="1pt solid black">
|
3624
|
+
<fo:table-column column-width="20mm"/>
|
3625
|
+
<fo:table-column column-width="23mm"/>
|
3626
|
+
<fo:table-column column-width="107mm"/>
|
3627
|
+
<fo:table-column column-width="15mm"/>
|
3628
|
+
<fo:table-body>
|
3629
|
+
<fo:table-row font-family="Arial" text-align="center" font-weight="bold" background-color="black" color="white">
|
3630
|
+
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
3631
|
+
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
3632
|
+
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
3633
|
+
<fo:table-cell border="1pt solid black"><fo:block>Pages</fo:block></fo:table-cell>
|
3634
|
+
</fo:table-row>
|
3635
|
+
<xsl:apply-templates/>
|
3636
|
+
</fo:table-body>
|
3637
|
+
</fo:table>
|
3638
|
+
</xsl:template><xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']">
|
3639
|
+
<fo:table-row>
|
3640
|
+
<xsl:apply-templates/>
|
3641
|
+
</fo:table-row>
|
3642
|
+
</xsl:template><xsl:template match="*[local-name() = 'errata']/*[local-name() = 'row']/*">
|
3643
|
+
<fo:table-cell border="1pt solid black" padding-left="1mm" padding-top="0.5mm">
|
3644
|
+
<fo:block><xsl:apply-templates/></fo:block>
|
3645
|
+
</fo:table-cell>
|
3454
3646
|
</xsl:template><xsl:template name="convertDate">
|
3455
3647
|
<xsl:param name="date"/>
|
3456
3648
|
<xsl:param name="format" select="'short'"/>
|
@@ -3583,27 +3775,49 @@
|
|
3583
3775
|
</xsl:otherwise>
|
3584
3776
|
</xsl:choose>
|
3585
3777
|
</xsl:template><xsl:template name="getLevel">
|
3586
|
-
<xsl:
|
3587
|
-
<xsl:
|
3588
|
-
<xsl:
|
3589
|
-
<xsl:
|
3590
|
-
|
3591
|
-
|
3592
|
-
<xsl:
|
3593
|
-
|
3594
|
-
|
3595
|
-
<xsl:
|
3596
|
-
|
3597
|
-
|
3598
|
-
|
3599
|
-
|
3600
|
-
|
3601
|
-
|
3602
|
-
|
3603
|
-
|
3604
|
-
|
3605
|
-
|
3606
|
-
|
3778
|
+
<xsl:param name="depth"/>
|
3779
|
+
<xsl:choose>
|
3780
|
+
<xsl:when test="normalize-space(@depth) != ''">
|
3781
|
+
<xsl:value-of select="@depth"/>
|
3782
|
+
</xsl:when>
|
3783
|
+
<xsl:when test="normalize-space($depth) != ''">
|
3784
|
+
<xsl:value-of select="$depth"/>
|
3785
|
+
</xsl:when>
|
3786
|
+
<xsl:otherwise>
|
3787
|
+
<xsl:variable name="level_total" select="count(ancestor::*)"/>
|
3788
|
+
<xsl:variable name="level">
|
3789
|
+
<xsl:choose>
|
3790
|
+
<xsl:when test="parent::*[local-name() = 'preface']">
|
3791
|
+
<xsl:value-of select="$level_total - 1"/>
|
3792
|
+
</xsl:when>
|
3793
|
+
<xsl:when test="ancestor::*[local-name() = 'preface']">
|
3794
|
+
<xsl:value-of select="$level_total - 2"/>
|
3795
|
+
</xsl:when>
|
3796
|
+
<!-- <xsl:when test="parent::*[local-name() = 'sections']">
|
3797
|
+
<xsl:value-of select="$level_total - 1"/>
|
3798
|
+
</xsl:when> -->
|
3799
|
+
<xsl:when test="ancestor::*[local-name() = 'sections']">
|
3800
|
+
<xsl:value-of select="$level_total - 1"/>
|
3801
|
+
</xsl:when>
|
3802
|
+
<xsl:when test="ancestor::*[local-name() = 'bibliography']">
|
3803
|
+
<xsl:value-of select="$level_total - 1"/>
|
3804
|
+
</xsl:when>
|
3805
|
+
<xsl:when test="parent::*[local-name() = 'annex']">
|
3806
|
+
<xsl:value-of select="$level_total - 1"/>
|
3807
|
+
</xsl:when>
|
3808
|
+
<xsl:when test="ancestor::*[local-name() = 'annex']">
|
3809
|
+
<xsl:value-of select="$level_total"/>
|
3810
|
+
</xsl:when>
|
3811
|
+
<xsl:when test="local-name() = 'annex'">1</xsl:when>
|
3812
|
+
<xsl:when test="local-name(ancestor::*[1]) = 'annex'">1</xsl:when>
|
3813
|
+
<xsl:otherwise>
|
3814
|
+
<xsl:value-of select="$level_total - 1"/>
|
3815
|
+
</xsl:otherwise>
|
3816
|
+
</xsl:choose>
|
3817
|
+
</xsl:variable>
|
3818
|
+
<xsl:value-of select="$level"/>
|
3819
|
+
</xsl:otherwise>
|
3820
|
+
</xsl:choose>
|
3607
3821
|
</xsl:template><xsl:template name="split">
|
3608
3822
|
<xsl:param name="pText" select="."/>
|
3609
3823
|
<xsl:param name="sep" select="','"/>
|
@@ -3618,4 +3832,47 @@
|
|
3618
3832
|
</xsl:if>
|
3619
3833
|
</xsl:template><xsl:template name="getDocumentId">
|
3620
3834
|
<xsl:call-template name="getLang"/><xsl:value-of select="//*[local-name() = 'p'][1]/@id"/>
|
3835
|
+
</xsl:template><xsl:template name="namespaceCheck">
|
3836
|
+
<xsl:variable name="documentNS" select="namespace-uri(/*)"/>
|
3837
|
+
<xsl:variable name="XSLNS">
|
3838
|
+
|
3839
|
+
|
3840
|
+
|
3841
|
+
|
3842
|
+
|
3843
|
+
|
3844
|
+
|
3845
|
+
|
3846
|
+
|
3847
|
+
|
3848
|
+
|
3849
|
+
|
3850
|
+
<xsl:value-of select="document('')//*/namespace::gb"/>
|
3851
|
+
|
3852
|
+
|
3853
|
+
</xsl:variable>
|
3854
|
+
<xsl:if test="$documentNS != $XSLNS">
|
3855
|
+
<xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
|
3856
|
+
</xsl:if>
|
3857
|
+
</xsl:template><xsl:template name="getLanguage">
|
3858
|
+
<xsl:param name="lang"/>
|
3859
|
+
<xsl:variable name="language" select="java:toLowerCase(java:java.lang.String.new($lang))"/>
|
3860
|
+
<xsl:choose>
|
3861
|
+
<xsl:when test="$language = 'en'">English</xsl:when>
|
3862
|
+
<xsl:when test="$language = 'fr'">French</xsl:when>
|
3863
|
+
<xsl:when test="$language = 'de'">Deutsch</xsl:when>
|
3864
|
+
<xsl:when test="$language = 'cn'">Chinese</xsl:when>
|
3865
|
+
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
3866
|
+
</xsl:choose>
|
3867
|
+
</xsl:template><xsl:template name="setId">
|
3868
|
+
<xsl:attribute name="id">
|
3869
|
+
<xsl:choose>
|
3870
|
+
<xsl:when test="@id">
|
3871
|
+
<xsl:value-of select="@id"/>
|
3872
|
+
</xsl:when>
|
3873
|
+
<xsl:otherwise>
|
3874
|
+
<xsl:value-of select="generate-id()"/>
|
3875
|
+
</xsl:otherwise>
|
3876
|
+
</xsl:choose>
|
3877
|
+
</xsl:attribute>
|
3621
3878
|
</xsl:template></xsl:stylesheet>
|