metanorma-iec 1.2.6 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +62 -0
- data/README.adoc +3 -4
- data/lib/asciidoctor/iec/basicdoc.rng +50 -3
- data/lib/asciidoctor/iec/converter.rb +6 -1
- data/lib/asciidoctor/iec/front.rb +13 -0
- data/lib/asciidoctor/iec/iec.rng +55 -1
- data/lib/asciidoctor/iec/iec_intro_en.xml +82 -53
- data/lib/asciidoctor/iec/iec_intro_fr.xml +44 -20
- data/lib/asciidoctor/iec/isodoc.rng +36 -43
- data/lib/asciidoctor/iec/isostandard.rng +11 -0
- data/lib/isodoc/iec/html/htmlstyle.css +9 -5
- data/lib/isodoc/iec/html/htmlstyle.scss +4 -4
- data/lib/isodoc/iec/html/isodoc.css +79 -79
- data/lib/isodoc/iec/html/isodoc.scss +79 -79
- data/lib/isodoc/iec/html/wordstyle.css +120 -120
- data/lib/isodoc/iec/html/wordstyle.scss +120 -120
- data/lib/isodoc/iec/html_convert.rb +8 -0
- data/lib/isodoc/iec/i18n-en.yaml +17 -0
- data/lib/isodoc/iec/i18n-fr.yaml +18 -0
- data/lib/isodoc/iec/iec.international-standard.xsl +827 -384
- data/lib/isodoc/iec/metadata.rb +33 -0
- data/lib/isodoc/iec/presentation_xml_convert.rb +12 -0
- data/lib/isodoc/iec/word_convert.rb +10 -0
- data/lib/metanorma/iec/processor.rb +11 -8
- data/lib/metanorma/iec/version.rb +1 -1
- data/metanorma-iec.gemspec +1 -2
- data/spec/asciidoctor-iec/base_spec.rb +24 -1
- data/spec/asciidoctor-iec/blocks_spec.rb +1 -1
- data/spec/asciidoctor-iec/cleanup_spec.rb +7 -86
- data/spec/asciidoctor-iec/iev_spec.rb +3 -0
- data/spec/asciidoctor-iec/lists_spec.rb +6 -6
- data/spec/asciidoctor-iec/validate_spec.rb +15 -0
- data/spec/isodoc/i18n_spec.rb +36 -16
- data/spec/isodoc/iev_spec.rb +9 -65
- data/spec/isodoc/iso_spec.rb +2 -2
- data/spec/isodoc/metadata_spec.rb +57 -3
- data/spec/isodoc/ref_spec.rb +4 -7
- data/spec/spec_helper.rb +4 -1
- metadata +5 -21
- data/.github/workflows/macos.yml +0 -38
- data/.github/workflows/ubuntu.yml +0 -56
- data/.github/workflows/windows.yml +0 -40
@@ -16,6 +16,8 @@ module IsoDoc
|
|
16
16
|
bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' : '"Arial",sans-serif'),
|
17
17
|
headerfont: (options[:script] == "Hans" ? '"SimHei",sans-serif' : '"Arial",sans-serif'),
|
18
18
|
monospacefont: ('"Courier New",monospace'),
|
19
|
+
monospacefontsize: "1.0em",
|
20
|
+
footnotefontsize: "0.9em",
|
19
21
|
}
|
20
22
|
end
|
21
23
|
|
@@ -36,6 +38,12 @@ module IsoDoc
|
|
36
38
|
docxml
|
37
39
|
end
|
38
40
|
|
41
|
+
def authority_cleanup(docxml)
|
42
|
+
auth = docxml.at("//div[@id = 'boilerplate-feedback' or @class = 'boilerplate-feedback']")
|
43
|
+
auth&.remove
|
44
|
+
super
|
45
|
+
end
|
46
|
+
|
39
47
|
include BaseConvert
|
40
48
|
include Init
|
41
49
|
end
|
data/lib/isodoc/iec/i18n-en.yaml
CHANGED
@@ -5,6 +5,7 @@ IEC: INTERNATIONAL ELECTROTECHNICAL COMMISSION
|
|
5
5
|
formula: Equation
|
6
6
|
inequality: Inequality
|
7
7
|
section_iev: Section
|
8
|
+
price-code: Price Code
|
8
9
|
term_def_boilerplate: |
|
9
10
|
<p>ISO and IEC maintain terminological databases for use in
|
10
11
|
standardization at the following addresses:</p>
|
@@ -16,3 +17,19 @@ term_def_boilerplate: |
|
|
16
17
|
<li> <p>ISO Online browsing platform: available at
|
17
18
|
<link target="http://www.iso.org/obp"/></p> </li>
|
18
19
|
</ul>
|
20
|
+
doctype_dict:
|
21
|
+
international-standard: International Standard
|
22
|
+
technical-specification: Technical Specification
|
23
|
+
technical-report: Technical Report
|
24
|
+
publicly-available-specification: Publicly Available Specification
|
25
|
+
international-workshop-agreement: International Workshop Agreement
|
26
|
+
guide: Guide
|
27
|
+
interpretation-sheet: Interpretation Sheet
|
28
|
+
function_dict:
|
29
|
+
emc: Basic EMC Publication
|
30
|
+
safety: Basic Safety Publication
|
31
|
+
environment: Basic Environment Publication
|
32
|
+
quality-assurance: Basic Quality Assurance Publication
|
33
|
+
horizontal_dict:
|
34
|
+
"true": Horizontal Standard
|
35
|
+
"false":
|
data/lib/isodoc/iec/i18n-fr.yaml
CHANGED
@@ -5,6 +5,7 @@ formula: Equation
|
|
5
5
|
inequality: Inégalité
|
6
6
|
IEC: COMMISSION ELECTROTECHNIQUE INTERNATIONALE
|
7
7
|
section_iev: Section
|
8
|
+
price-code: Code prix
|
8
9
|
term_def_boilerplate: |
|
9
10
|
<p>L'ISO et l'IEC tiennent à jour des bases de données terminologiques
|
10
11
|
destinées à être utilisées en normalisation, consultables aux adresses
|
@@ -16,3 +17,20 @@ term_def_boilerplate: |
|
|
16
17
|
<li> <p>ISO Online browsing platform: disponible à l'adresse
|
17
18
|
<link target="http://www.iso.org/obp"/></p> </li>
|
18
19
|
</ul>
|
20
|
+
doctype_dict:
|
21
|
+
international-standard: Norme international
|
22
|
+
technical-specification: Spécification technique
|
23
|
+
technical-report: Rapport technique
|
24
|
+
publicly-available-specification: Spécification disponible publiquement
|
25
|
+
international-workshop-agreement: Accord internationale d’atelier
|
26
|
+
guide: Guide
|
27
|
+
interpretation-sheet: Feuille d’interprétation
|
28
|
+
function_dict:
|
29
|
+
emc: Publication fondamentale en CEM
|
30
|
+
safety: Publication fondamentale de sécurité
|
31
|
+
environment: Publication fondamentale sur l’environnement
|
32
|
+
quality-assurance: Publication fondamentale sur l’assurance de la qualité
|
33
|
+
horizontal_dict:
|
34
|
+
"true": Norme horizontale
|
35
|
+
"false":
|
36
|
+
|
@@ -17,31 +17,23 @@
|
|
17
17
|
|
18
18
|
|
19
19
|
|
20
|
-
<xsl:variable name="debug">
|
20
|
+
<xsl:variable name="debug">false</xsl:variable>
|
21
21
|
<xsl:variable name="pageWidth" select="'210mm'"/>
|
22
22
|
<xsl:variable name="pageHeight" select="'297mm'"/>
|
23
23
|
|
24
|
-
<xsl:variable name="copyrightText" select="concat('© ',
|
24
|
+
<xsl:variable name="copyrightText" select="concat('© ', //iec:iec-standard/iec:bibdata/iec:copyright/iec:owner/iec:organization/iec:abbreviation, ':', //iec:iec-standard/iec:bibdata/iec:copyright/iec:from)"/>
|
25
25
|
<!-- <xsl:variable name="lang-1st-letter" select="concat('(', translate(substring(iec:iec-standard/iec:bibdata/iec:language,1,1),$lower, $upper), ')')"/> -->
|
26
26
|
<xsl:variable name="lang-1st-letter" select="''"/>
|
27
|
-
<xsl:variable name="ISOname" select="
|
27
|
+
<xsl:variable name="ISOname" select="//iec:iec-standard/iec:bibdata/iec:docidentifier[@type='iso' or @type='ISO']"/>
|
28
28
|
|
29
|
-
<xsl:variable name="
|
30
|
-
<xsl:variable name="title-intro-fr" select="/iec:iec-standard/iec:bibdata/iec:title[@language = 'fr' and @type = 'title-intro']"/>
|
31
|
-
<xsl:variable name="title-main" select="/iec:iec-standard/iec:bibdata/iec:title[@language = 'en' and @type = 'title-main']"/>
|
32
|
-
<xsl:variable name="title-main-fr" select="/iec:iec-standard/iec:bibdata/iec:title[@language = 'fr' and @type = 'title-main']"/>
|
33
|
-
<xsl:variable name="part" select="/iec:iec-standard/iec:bibdata/iec:ext/iec:structuredidentifier/iec:project-number/@part"/>
|
29
|
+
<xsl:variable name="part" select="//iec:iec-standard/iec:bibdata/iec:ext/iec:structuredidentifier/iec:project-number/@part"/>
|
34
30
|
|
35
|
-
<xsl:variable name="doctype_uppercased" select="java:toUpperCase(java:java.lang.String.new(
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
<xsl:variable name="publisher" select="java:toUpperCase(java:java.lang.String.new(/iec:iec-standard/iec:bibdata/iec:contributor[iec:role/@type = 'publisher']/iec:organization/iec:name))"/>
|
31
|
+
<xsl:variable name="doctype_uppercased" select="java:toUpperCase(java:java.lang.String.new(//iec:iec-standard/iec:bibdata/iec:ext/iec:doctype[@language = $lang]))"/>
|
40
32
|
|
41
|
-
<xsl:variable name="stage" select="number(
|
42
|
-
<xsl:variable name="substage" select="number(
|
43
|
-
<xsl:variable name="stagename" select="normalize-space(
|
44
|
-
<xsl:variable name="abbreviation" select="normalize-space(
|
33
|
+
<xsl:variable name="stage" select="number(//iec:iec-standard/iec:bibdata/iec:status/iec:stage)"/>
|
34
|
+
<xsl:variable name="substage" select="number(//iec:iec-standard/iec:bibdata/iec:status/iec:substage)"/>
|
35
|
+
<xsl:variable name="stagename" select="normalize-space(//iec:iec-standard/iec:bibdata/iec:ext/iec:stagename)"/>
|
36
|
+
<xsl:variable name="abbreviation" select="normalize-space(//iec:iec-standard/iec:bibdata/iec:status/iec:stage/@abbreviation)"/>
|
45
37
|
|
46
38
|
<xsl:variable name="stage-abbreviation">
|
47
39
|
<xsl:choose>
|
@@ -87,7 +79,24 @@
|
|
87
79
|
<item id="term-script" display="false">3.2</item>
|
88
80
|
-->
|
89
81
|
<xsl:variable name="contents">
|
90
|
-
|
82
|
+
|
83
|
+
<xsl:for-each select="//iec:iec-standard">
|
84
|
+
<xsl:variable name="lang" select="*[local-name()='bibdata']/*[local-name()='language'][@current = 'true']"/>
|
85
|
+
<xsl:variable name="current_document">
|
86
|
+
<xsl:copy-of select="."/>
|
87
|
+
</xsl:variable>
|
88
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
89
|
+
<xsl:variable name="docid">
|
90
|
+
<xsl:call-template name="getDocumentId"/>
|
91
|
+
</xsl:variable>
|
92
|
+
<doc id="{$docid}" lang="{$lang}">
|
93
|
+
<xsl:call-template name="generateContents"/>
|
94
|
+
</doc>
|
95
|
+
</xsl:for-each>
|
96
|
+
</xsl:for-each>
|
97
|
+
|
98
|
+
|
99
|
+
<!-- <xsl:variable name="docid">
|
91
100
|
<xsl:call-template name="getDocumentId"/>
|
92
101
|
</xsl:variable>
|
93
102
|
<doc id="{$docid}" lang="{$lang}">
|
@@ -113,7 +122,7 @@
|
|
113
122
|
</doc>
|
114
123
|
</xsl:for-each>
|
115
124
|
</xsl:for-each>
|
116
|
-
</xsl:for-each>
|
125
|
+
</xsl:for-each> -->
|
117
126
|
|
118
127
|
|
119
128
|
</xsl:variable>
|
@@ -122,6 +131,16 @@
|
|
122
131
|
<contents>
|
123
132
|
<xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
|
124
133
|
<xsl:call-template name="processMainSectionsDefault_Contents"/>
|
134
|
+
<xsl:for-each select="//*[local-name() = 'figure'][@id and *[local-name() = 'name']]">
|
135
|
+
<figure id="{@id}">
|
136
|
+
<title><xsl:value-of select="*[local-name() = 'name']/text()"/></title>
|
137
|
+
</figure>
|
138
|
+
</xsl:for-each>
|
139
|
+
<xsl:for-each select="//*[local-name() = 'table'][@id and *[local-name() = 'name']]">
|
140
|
+
<table id="{@id}">
|
141
|
+
<title><xsl:value-of select="*[local-name() = 'name']/text()"/></title>
|
142
|
+
</table>
|
143
|
+
</xsl:for-each>
|
125
144
|
</contents>
|
126
145
|
</xsl:template>
|
127
146
|
|
@@ -136,7 +155,7 @@
|
|
136
155
|
<xsl:call-template name="namespaceCheck"/>
|
137
156
|
<!-- https://stackoverflow.com/questions/25261949/xsl-fo-letter-spacing-with-text-align -->
|
138
157
|
<!-- https://xmlgraphics.apache.org/fop/knownissues.html -->
|
139
|
-
<fo:root font-family="Arial, Times New Roman, STIX Two Math,
|
158
|
+
<fo:root font-family="Arial, Times New Roman, STIX Two Math, Source Han Sans" font-size="10pt" xml:lang="{$lang}">
|
140
159
|
<fo:layout-master-set>
|
141
160
|
<!-- cover pages -->
|
142
161
|
<fo:simple-page-master master-name="cover" page-width="{$pageWidth}" page-height="{$pageHeight}">
|
@@ -146,6 +165,13 @@
|
|
146
165
|
<fo:region-start region-name="left-region" extent="18mm"/>
|
147
166
|
<fo:region-end region-name="right-region" extent="20.5mm"/>
|
148
167
|
</fo:simple-page-master>
|
168
|
+
<fo:simple-page-master master-name="cover_2nd" page-width="{$pageWidth}" page-height="{$pageHeight}">
|
169
|
+
<fo:region-body margin-top="17.5mm" margin-bottom="12.5mm" margin-left="25mm" margin-right="25mm" column-count="2" column-gap="5mm"/>
|
170
|
+
<fo:region-before region-name="header" extent="17.5mm"/>
|
171
|
+
<fo:region-after region-name="footer" extent="12.5mm" precedence="true"/>
|
172
|
+
<fo:region-start region-name="left-region" extent="25mm"/>
|
173
|
+
<fo:region-end region-name="right-region" extent="25mm"/>
|
174
|
+
</fo:simple-page-master>
|
149
175
|
|
150
176
|
<fo:simple-page-master master-name="cover-FDIS" page-width="{$pageWidth}" page-height="{$pageHeight}">
|
151
177
|
<fo:region-body margin-top="17.5mm" margin-bottom="29mm" margin-left="18mm" margin-right="19mm"/>
|
@@ -203,7 +229,7 @@
|
|
203
229
|
<fo:static-content flow-name="left-region">
|
204
230
|
<fo:block-container reference-orientation="90">
|
205
231
|
<fo:block font-size="7pt" margin-left="0.5mm" margin-top="5mm">
|
206
|
-
<xsl:value-of select="
|
232
|
+
<xsl:value-of select="(//iec:iec-standard)[1]/iec:bibdata/iec:docidentifier[@type = 'iso-with-lang']"/>
|
207
233
|
</fo:block>
|
208
234
|
</fo:block-container>
|
209
235
|
</fo:static-content>
|
@@ -218,226 +244,240 @@
|
|
218
244
|
</fo:page-sequence>
|
219
245
|
|
220
246
|
<!-- 2nd Cover Page -->
|
221
|
-
<fo:page-sequence master-reference="
|
247
|
+
<fo:page-sequence master-reference="cover_2nd" force-page-count="no-force" font-size="8pt">
|
222
248
|
<fo:flow flow-name="xsl-region-body">
|
223
|
-
<fo:block
|
224
|
-
<fo:block-container
|
225
|
-
<fo:block-container margin-left="
|
226
|
-
<fo:
|
227
|
-
<fo:table-column column-width="20mm"/>
|
228
|
-
<fo:table-column column-width="130mm"/>
|
229
|
-
<fo:table-body>
|
230
|
-
<fo:table-row>
|
231
|
-
<fo:table-cell>
|
232
|
-
<fo:block>
|
233
|
-
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Attention))}" width="17.8mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
234
|
-
</fo:block>
|
235
|
-
</fo:table-cell>
|
236
|
-
<fo:table-cell font-size="10pt" font-weight="bold" display-align="after">
|
237
|
-
<fo:block margin-bottom="3pt">THIS PUBLICATION IS COPYRIGHT PROTECTED</fo:block>
|
238
|
-
<fo:block margin-bottom="10pt">
|
239
|
-
<!-- Example: Copyright © 2014 IEC, Geneva, Switzerland -->
|
240
|
-
<xsl:apply-templates select="/iec:iec-standard/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[@id = 'boilerplate-year']"/>
|
241
|
-
</fo:block>
|
242
|
-
</fo:table-cell>
|
243
|
-
</fo:table-row>
|
244
|
-
</fo:table-body>
|
245
|
-
</fo:table>
|
246
|
-
<fo:block font-size="8pt">
|
247
|
-
<fo:block margin-bottom="8pt" text-align="justify">
|
248
|
-
<!-- Example: All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
|
249
|
-
or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
|
250
|
-
either IEC or IEC's member National Committee in the country of the requester. If you have any questions about IEC
|
251
|
-
copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or
|
252
|
-
your local IEC member National Committee for further information. -->
|
253
|
-
<xsl:apply-templates select="/iec:iec-standard/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[@id = 'boilerplate-message']"/>
|
254
|
-
</fo:block>
|
255
|
-
<fo:block margin-bottom="8pt" text-align="justify">Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite
|
256
|
-
ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie
|
257
|
-
et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
|
258
|
-
questions sur le copyright de l'IEC ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez
|
259
|
-
les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence.</fo:block>
|
260
|
-
|
261
|
-
<xsl:variable name="telpos" select="count(/iec:iec-standard/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[@id = 'boilerplate-address']/text()[contains(., 'Tel.')]/preceding-sibling::node())"/>
|
249
|
+
<fo:block span="all">
|
250
|
+
<fo:block-container border="0.5pt solid black" margin-top="7mm">
|
251
|
+
<fo:block-container margin-left="2.5mm" margin-right="2.5mm" margin-top="1mm" margin-bottom="1mm">
|
252
|
+
<fo:block-container margin-left="0mm" margin-right="0mm">
|
262
253
|
<fo:table table-layout="fixed" width="100%">
|
263
|
-
<fo:table-column column-width="
|
264
|
-
<fo:table-column column-width="
|
254
|
+
<fo:table-column column-width="20mm"/>
|
255
|
+
<fo:table-column column-width="130mm"/>
|
265
256
|
<fo:table-body>
|
266
257
|
<fo:table-row>
|
267
258
|
<fo:table-cell>
|
268
259
|
<fo:block>
|
269
|
-
|
270
|
-
3, rue de Varembé
|
271
|
-
CH-1211 Geneva 20
|
272
|
-
Switzerland -->
|
273
|
-
<xsl:apply-templates select="/iec:iec-standard/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[@id = 'boilerplate-name']" mode="coverpage"/>
|
274
|
-
<xsl:choose>
|
275
|
-
<xsl:when test="$telpos != 0">
|
276
|
-
<xsl:apply-templates select="/iec:iec-standard/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[@id = 'boilerplate-address']/node()[position() < $telpos]" mode="coverpage"/>
|
277
|
-
</xsl:when>
|
278
|
-
<xsl:otherwise>
|
279
|
-
<xsl:apply-templates select="/iec:iec-standard/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[@id = 'boilerplate-address']" mode="coverpage"/>
|
280
|
-
</xsl:otherwise>
|
281
|
-
</xsl:choose>
|
260
|
+
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Attention))}" width="17.8mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
282
261
|
</fo:block>
|
283
262
|
</fo:table-cell>
|
284
|
-
<fo:table-cell>
|
285
|
-
<fo:block>
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
www.iec.ch -->
|
290
|
-
<xsl:choose>
|
291
|
-
<xsl:when test="$telpos != 0">
|
292
|
-
<xsl:apply-templates select="/iec:iec-standard/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[@id = 'boilerplate-address']/node()[position() > $telpos]" mode="coverpage"/>
|
293
|
-
</xsl:when>
|
294
|
-
<xsl:otherwise> </xsl:otherwise>
|
295
|
-
</xsl:choose>
|
263
|
+
<fo:table-cell font-size="10pt" font-weight="bold" display-align="after">
|
264
|
+
<fo:block margin-bottom="3pt">THIS PUBLICATION IS COPYRIGHT PROTECTED</fo:block>
|
265
|
+
<fo:block margin-bottom="10pt">
|
266
|
+
<!-- Example: Copyright © 2014 IEC, Geneva, Switzerland -->
|
267
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-year')]"/>
|
296
268
|
</fo:block>
|
297
269
|
</fo:table-cell>
|
298
270
|
</fo:table-row>
|
299
271
|
</fo:table-body>
|
300
272
|
</fo:table>
|
301
|
-
|
302
|
-
|
273
|
+
<fo:block>
|
274
|
+
<fo:block margin-bottom="8pt" text-align="justify">
|
275
|
+
<!-- Example: All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form
|
276
|
+
or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from
|
277
|
+
either IEC or IEC's member National Committee in the country of the requester. If you have any questions about IEC
|
278
|
+
copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or
|
279
|
+
your local IEC member National Committee for further information. -->
|
280
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-message')]"/>
|
281
|
+
</fo:block>
|
282
|
+
<!-- Droits de reproduction réservés. Sauf indication contraire, aucune partie de cette publication ne peut être reproduite
|
283
|
+
ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie
|
284
|
+
et les microfilms, sans l'accord écrit de l'IEC ou du Comité national de l'IEC du pays du demandeur. Si vous avez des
|
285
|
+
questions sur le copyright de l'IEC ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez
|
286
|
+
les coordonnées ci-après ou contactez le Comité national de l'IEC de votre pays de résidence. -->
|
287
|
+
<fo:block margin-bottom="8pt" text-align="justify">
|
288
|
+
<xsl:apply-templates select="(//iec:iec-standard)[2]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-message')]"/>
|
289
|
+
</fo:block>
|
290
|
+
|
291
|
+
<xsl:variable name="telpos" select="count((//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-address')]/text()[contains(., 'Tel.')]/preceding-sibling::node())"/>
|
292
|
+
<fo:table table-layout="fixed" width="100%">
|
293
|
+
<fo:table-column column-width="59mm"/>
|
294
|
+
<fo:table-column column-width="90mm"/>
|
295
|
+
<fo:table-body>
|
296
|
+
<fo:table-row>
|
297
|
+
<fo:table-cell>
|
298
|
+
<fo:block>
|
299
|
+
<!-- Example: IEC Central Office
|
300
|
+
3, rue de Varembé
|
301
|
+
CH-1211 Geneva 20
|
302
|
+
Switzerland -->
|
303
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-name')]" mode="coverpage"/>
|
304
|
+
<xsl:choose>
|
305
|
+
<xsl:when test="$telpos != 0">
|
306
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-address')]/node()[position() < $telpos]" mode="coverpage"/>
|
307
|
+
</xsl:when>
|
308
|
+
<xsl:otherwise>
|
309
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-address')]" mode="coverpage"/>
|
310
|
+
</xsl:otherwise>
|
311
|
+
</xsl:choose>
|
312
|
+
</fo:block>
|
313
|
+
</fo:table-cell>
|
314
|
+
<fo:table-cell>
|
315
|
+
<fo:block>
|
316
|
+
<!-- Example: Tel.: +41 22 919 02 11
|
317
|
+
Fax: +41 22 919 0
|
318
|
+
info@iec.ch
|
319
|
+
www.iec.ch -->
|
320
|
+
<xsl:choose>
|
321
|
+
<xsl:when test="$telpos != 0">
|
322
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-address')]/node()[position() > $telpos]" mode="coverpage"/>
|
323
|
+
</xsl:when>
|
324
|
+
<xsl:otherwise> </xsl:otherwise>
|
325
|
+
</xsl:choose>
|
326
|
+
</fo:block>
|
327
|
+
</fo:table-cell>
|
328
|
+
</fo:table-row>
|
329
|
+
</fo:table-body>
|
330
|
+
</fo:table>
|
331
|
+
|
332
|
+
</fo:block>
|
333
|
+
</fo:block-container>
|
303
334
|
</fo:block-container>
|
304
335
|
</fo:block-container>
|
305
|
-
</fo:block
|
336
|
+
</fo:block>
|
306
337
|
|
307
|
-
<
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
<fo:block
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
<fo:table-column column-width="78mm"/>
|
321
|
-
<fo:table-body>
|
322
|
-
<fo:table-row border-bottom="0.5pt solid black">
|
323
|
-
<fo:table-cell padding-right="5mm">
|
324
|
-
<fo:block font-weight="bold">IEC Catalogue - <fo:inline color="blue">webstore.iec.ch/catalogue</fo:inline></fo:block>
|
325
|
-
<fo:block margin-bottom="6pt">
|
326
|
-
<xsl:text>The stand-alone application for consulting the entire
|
327
|
-
bibliographical information on IEC International Standards,
|
328
|
-
Technical Specifications, Technical Reports and other
|
329
|
-
documents. Available for PC, Mac OS, Android Tablets and
|
330
|
-
iPad.</xsl:text>
|
331
|
-
</fo:block>
|
332
|
-
<fo:block font-weight="bold">IEC publications search - <fo:inline color="blue">www.iec.ch/searchpub</fo:inline></fo:block>
|
333
|
-
<fo:block margin-bottom="6pt">
|
334
|
-
<xsl:text>The advanced search enables to find IEC publications by a
|
335
|
-
variety of criteria (reference number, text, technical
|
336
|
-
committee,…). It also gives information on projects, replaced
|
337
|
-
and withdrawn publications.</xsl:text>
|
338
|
-
</fo:block>
|
339
|
-
<fo:block font-weight="bold">IEC Just Published - <fo:inline color="blue">webstore.iec.ch/justpublished</fo:inline></fo:block>
|
340
|
-
<fo:block margin-bottom="6pt">
|
341
|
-
<xsl:text>Stay up to date on all new IEC publications. Just Published
|
342
|
-
details all new publications released. Available online and
|
343
|
-
also once a month by email.</xsl:text>
|
344
|
-
</fo:block>
|
345
|
-
</fo:table-cell>
|
346
|
-
<fo:table-cell>
|
347
|
-
<fo:block font-weight="bold">Electropedia - <fo:inline color="blue">www.electropedia.org</fo:inline></fo:block>
|
348
|
-
<fo:block margin-bottom="6pt">
|
349
|
-
<xsl:text>The world's leading online dictionary of electronic and
|
350
|
-
electrical terms containing more than 30 000 terms and
|
351
|
-
definitions in English and French, with equivalent terms in 14
|
352
|
-
additional languages. Also known as the International
|
353
|
-
Electrotechnical Vocabulary (IEV) online.</xsl:text>
|
354
|
-
</fo:block>
|
355
|
-
<fo:block font-weight="bold">IEC Glossary - <fo:inline color="blue">std.iec.ch/glossary</fo:inline></fo:block>
|
356
|
-
<fo:block margin-bottom="6pt">
|
357
|
-
<xsl:text>More than 55 000 electrotechnical terminology entries in
|
358
|
-
English and French extracted from the Terms and Definitions
|
359
|
-
clause of IEC publications issued since 2002. Some entries
|
360
|
-
have been collected from earlier publications of IEC TC 37,
|
361
|
-
77, 86 and CISPR.</xsl:text>
|
362
|
-
</fo:block>
|
363
|
-
<fo:block font-weight="bold">IEC Customer Service Centre - <fo:inline color="blue">webstore.iec.ch/csc</fo:inline></fo:block>
|
364
|
-
<fo:block margin-bottom="6pt">
|
365
|
-
<xsl:text>If you wish to give us your feedback on this publication or
|
366
|
-
need further assistance, please contact the Customer Service
|
367
|
-
Centre: </xsl:text><fo:inline color="blue">csc@iec.ch</fo:inline>.
|
368
|
-
</fo:block>
|
369
|
-
</fo:table-cell>
|
370
|
-
</fo:table-row>
|
371
|
-
</fo:table-body>
|
372
|
-
</fo:table>
|
373
|
-
<fo:block font-weight="bold">A propos de l'IEC</fo:block>
|
374
|
-
<fo:block margin-bottom="6pt">La Commission Electrotechnique Internationale (IEC) est la première organisation mondiale qui élabore et publie des
|
375
|
-
Normes internationales pour tout ce qui a trait à l'électricité, à l'électronique et aux technologies apparentées.</fo:block>
|
338
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:feedback-statement"/>
|
339
|
+
<fo:block span="all" border-bottom="0.5pt solid black"/>
|
340
|
+
<xsl:if test="(//iec:iec-standard)[2]/iec:boilerplate/iec:feedback-statement">
|
341
|
+
<xsl:apply-templates select="(//iec:iec-standard)[2]/iec:boilerplate/iec:feedback-statement"/>
|
342
|
+
<fo:block span="all"/>
|
343
|
+
</xsl:if>
|
344
|
+
<!-- <fo:block span="all">
|
345
|
+
<fo:block-container margin-top="6pt">
|
346
|
+
<fo:block-container text-align="justify" margin-left="0mm" margin-right="0mm">
|
347
|
+
|
348
|
+
<fo:block font-weight="bold">About the IEC</fo:block>
|
349
|
+
<fo:block margin-bottom="6pt">The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes
|
350
|
+
International Standards for all electrical, electronic and related technologies.</fo:block>
|
376
351
|
|
377
|
-
<fo:block font-weight="bold">
|
378
|
-
<fo:block margin-bottom="6pt">
|
379
|
-
|
352
|
+
<fo:block font-weight="bold">About IEC publications</fo:block>
|
353
|
+
<fo:block margin-bottom="6pt">The technical content of IEC publications is kept under constant review by the IEC. Please make sure that you have the
|
354
|
+
latest edition, a corrigenda or an amendment might have been published.</fo:block>
|
355
|
+
|
356
|
+
<fo:table table-layout="fixed" width="100%" margin-bottom="12pt">
|
357
|
+
<fo:table-column column-width="82mm"/>
|
358
|
+
<fo:table-column column-width="78mm"/>
|
359
|
+
<fo:table-body>
|
360
|
+
<fo:table-row border-bottom="0.5pt solid black">
|
361
|
+
<fo:table-cell padding-right="5mm">
|
362
|
+
<fo:block font-weight="bold">IEC Catalogue - <fo:inline color="blue">webstore.iec.ch/catalogue</fo:inline></fo:block>
|
363
|
+
<fo:block margin-bottom="6pt">
|
364
|
+
<xsl:text>The stand-alone application for consulting the entire
|
365
|
+
bibliographical information on IEC International Standards,
|
366
|
+
Technical Specifications, Technical Reports and other
|
367
|
+
documents. Available for PC, Mac OS, Android Tablets and
|
368
|
+
iPad.</xsl:text>
|
369
|
+
</fo:block>
|
370
|
+
<fo:block font-weight="bold">IEC publications search - <fo:inline color="blue">www.iec.ch/searchpub</fo:inline></fo:block>
|
371
|
+
<fo:block margin-bottom="6pt">
|
372
|
+
<xsl:text>The advanced search enables to find IEC publications by a
|
373
|
+
variety of criteria (reference number, text, technical
|
374
|
+
committee,…). It also gives information on projects, replaced
|
375
|
+
and withdrawn publications.</xsl:text>
|
376
|
+
</fo:block>
|
377
|
+
<fo:block font-weight="bold">IEC Just Published - <fo:inline color="blue">webstore.iec.ch/justpublished</fo:inline></fo:block>
|
378
|
+
<fo:block margin-bottom="6pt">
|
379
|
+
<xsl:text>Stay up to date on all new IEC publications. Just Published
|
380
|
+
details all new publications released. Available online and
|
381
|
+
also once a month by email.</xsl:text>
|
382
|
+
</fo:block>
|
383
|
+
</fo:table-cell>
|
384
|
+
<fo:table-cell>
|
385
|
+
<fo:block font-weight="bold">Electropedia - <fo:inline color="blue">www.electropedia.org</fo:inline></fo:block>
|
386
|
+
<fo:block margin-bottom="6pt">
|
387
|
+
<xsl:text>The world's leading online dictionary of electronic and
|
388
|
+
electrical terms containing more than 30 000 terms and
|
389
|
+
definitions in English and French, with equivalent terms in 14
|
390
|
+
additional languages. Also known as the International
|
391
|
+
Electrotechnical Vocabulary (IEV) online.</xsl:text>
|
392
|
+
</fo:block>
|
393
|
+
<fo:block font-weight="bold">IEC Glossary - <fo:inline color="blue">std.iec.ch/glossary</fo:inline></fo:block>
|
394
|
+
<fo:block margin-bottom="6pt">
|
395
|
+
<xsl:text>More than 55 000 electrotechnical terminology entries in
|
396
|
+
English and French extracted from the Terms and Definitions
|
397
|
+
clause of IEC publications issued since 2002. Some entries
|
398
|
+
have been collected from earlier publications of IEC TC 37,
|
399
|
+
77, 86 and CISPR.</xsl:text>
|
400
|
+
</fo:block>
|
401
|
+
<fo:block font-weight="bold">IEC Customer Service Centre - <fo:inline color="blue">webstore.iec.ch/csc</fo:inline></fo:block>
|
402
|
+
<fo:block margin-bottom="6pt">
|
403
|
+
<xsl:text>If you wish to give us your feedback on this publication or
|
404
|
+
need further assistance, please contact the Customer Service
|
405
|
+
Centre: </xsl:text><fo:inline color="blue">csc@iec.ch</fo:inline>.
|
406
|
+
</fo:block>
|
407
|
+
</fo:table-cell>
|
408
|
+
</fo:table-row>
|
409
|
+
</fo:table-body>
|
410
|
+
</fo:table>
|
411
|
+
|
412
|
+
<fo:block font-weight="bold">A propos de l'IEC</fo:block>
|
413
|
+
<fo:block margin-bottom="6pt">La Commission Electrotechnique Internationale (IEC) est la première organisation mondiale qui élabore et publie des
|
414
|
+
Normes internationales pour tout ce qui a trait à l'électricité, à l'électronique et aux technologies apparentées.</fo:block>
|
415
|
+
|
416
|
+
<fo:block font-weight="bold">A propos des publications IEC</fo:block>
|
417
|
+
<fo:block margin-bottom="6pt">Le contenu technique des publications IEC est constamment revu. Veuillez vous assurer que vous possédez l’édition la
|
418
|
+
plus récente, un corrigendum ou amendement peut avoir été publié.</fo:block>
|
380
419
|
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
420
|
+
<fo:table table-layout="fixed" width="100%">
|
421
|
+
<fo:table-column column-width="82mm"/>
|
422
|
+
<fo:table-column column-width="78mm"/>
|
423
|
+
<fo:table-body>
|
424
|
+
<fo:table-row>
|
425
|
+
<fo:table-cell padding-right="5mm">
|
426
|
+
<fo:block font-weight="bold">Catalogue IEC - <fo:inline color="blue">webstore.iec.ch/catalogue</fo:inline></fo:block>
|
427
|
+
<fo:block margin-bottom="6pt">
|
428
|
+
<xsl:text>Application autonome pour consulter tous les renseignements
|
429
|
+
bibliographiques sur les Normes internationales,
|
430
|
+
Spécifications techniques, Rapports techniques et autres
|
431
|
+
documents de l'IEC. Disponible pour PC, Mac OS, tablettes
|
432
|
+
Android et iPad.</xsl:text>
|
433
|
+
</fo:block>
|
434
|
+
<fo:block font-weight="bold">Recherche de publications IEC - <fo:inline color="blue">www.iec.ch/searchpub</fo:inline></fo:block>
|
435
|
+
<fo:block margin-bottom="6pt">
|
436
|
+
<xsl:text>La recherche avancée permet de trouver des publications IEC
|
437
|
+
en utilisant différents critères (numéro de référence, texte,
|
438
|
+
comité d’études,…). Elle donne aussi des informations sur les
|
439
|
+
projets et les publications remplacées ou retirées.</xsl:text>
|
440
|
+
</fo:block>
|
441
|
+
<fo:block font-weight="bold">IEC Just Published - <fo:inline color="blue">webstore.iec.ch/justpublished</fo:inline></fo:block>
|
442
|
+
<fo:block margin-bottom="6pt">
|
443
|
+
<xsl:text>Restez informé sur les nouvelles publications IEC. Just
|
444
|
+
Published détaille les nouvelles publications parues.
|
445
|
+
Disponible en ligne et aussi une fois par mois par email.</xsl:text>
|
446
|
+
</fo:block>
|
447
|
+
</fo:table-cell>
|
448
|
+
<fo:table-cell>
|
449
|
+
<fo:block font-weight="bold">Electropedia - <fo:inline color="blue">www.electropedia.org</fo:inline></fo:block>
|
450
|
+
<fo:block margin-bottom="6pt">
|
451
|
+
<xsl:text>Le premier dictionnaire en ligne de termes électroniques et
|
452
|
+
électriques. Il contient plus de 30 000 termes et définitions en
|
453
|
+
anglais et en français, ainsi que les termes équivalents dans
|
454
|
+
14 langues additionnelles. Egalement appelé Vocabulaire
|
455
|
+
Electrotechnique International (IEV) en ligne.</xsl:text>
|
456
|
+
</fo:block>
|
457
|
+
<fo:block font-weight="bold">Glossaire IEC - <fo:inline color="blue">std.iec.ch/glossary</fo:inline></fo:block>
|
458
|
+
<fo:block margin-bottom="6pt">
|
459
|
+
<xsl:text>Plus de 55 000 entrées terminologiques électrotechniques, en
|
460
|
+
anglais et en français, extraites des articles Termes et
|
461
|
+
Définitions des publications IEC parues depuis 2002. Plus
|
462
|
+
certaines entrées antérieures extraites des publications des
|
463
|
+
CE 37, 77, 86 et CISPR de l'IEC.</xsl:text>
|
464
|
+
</fo:block>
|
465
|
+
<fo:block font-weight="bold">Service Clients - <fo:inline color="blue">webstore.iec.ch/csc</fo:inline></fo:block>
|
466
|
+
<fo:block margin-bottom="6pt">
|
467
|
+
<xsl:text>Si vous désirez nous donner des commentaires sur cette
|
468
|
+
publication ou si vous avez des questions contactez-nous: </xsl:text><fo:inline color="blue">csc@iec.ch</fo:inline>.
|
469
|
+
</fo:block>
|
470
|
+
</fo:table-cell>
|
471
|
+
</fo:table-row>
|
472
|
+
</fo:table-body>
|
473
|
+
</fo:table>
|
474
|
+
</fo:block-container>
|
435
475
|
</fo:block-container>
|
436
|
-
</fo:block
|
476
|
+
</fo:block> -->
|
437
477
|
</fo:flow>
|
438
478
|
</fo:page-sequence>
|
439
479
|
</xsl:if>
|
440
|
-
|
480
|
+
<xsl:variable name="lang_second" select="(//iec:iec-standard)[2]/iec:bibdata/iec:language[@current = 'true']"/>
|
441
481
|
<!-- For 'Published' documents insert 3rd Cover Page
|
442
482
|
OR insert first Covert Page for FDIS -->
|
443
483
|
<xsl:if test="$stage >= 60 or $stage-abbreviation = 'FDIS'">
|
@@ -449,15 +489,18 @@
|
|
449
489
|
<fo:block font-size="9pt" color="{$color_blue}" line-height="150%">
|
450
490
|
<fo:block-container width="40mm">
|
451
491
|
<fo:block>
|
452
|
-
<xsl:
|
492
|
+
<!-- <xsl:variable name="publisher" select="java:toUpperCase(java:java.lang.String.new(/iec:iec-standard/iec:bibdata/iec:contributor[iec:role/@type = 'publisher']/iec:organization/iec:name))"/> -->
|
493
|
+
<!-- <xsl:value-of select="$publisher"/> -->
|
494
|
+
<xsl:value-of select="(//iec:iec-standard)[1]/iec:localized-strings/iec:localized-string[@key='IEC' and @language=$lang]"/>
|
453
495
|
</fo:block>
|
454
496
|
</fo:block-container>
|
455
497
|
</fo:block>
|
456
|
-
<xsl:if test="
|
498
|
+
<xsl:if test="(//iec:iec-standard)[2]/iec:localized-strings/iec:localized-string[@key='IEC' and @language=$lang_second]">
|
457
499
|
<fo:block font-size="9pt" line-height="150%" margin-top="8pt">
|
458
500
|
<fo:block-container width="40mm">
|
459
501
|
<fo:block>
|
460
|
-
<xsl:value-of select="'COMMISSION ELECTROTECHNIQUE INTERNATIONALE'"/>
|
502
|
+
<!-- <xsl:value-of select="'COMMISSION ELECTROTECHNIQUE INTERNATIONALE'"/> -->
|
503
|
+
<xsl:value-of select="(//iec:iec-standard)[2]/iec:localized-strings/iec:localized-string[@key='IEC' and @language=$lang_second]"/>
|
461
504
|
</fo:block>
|
462
505
|
</fo:block-container>
|
463
506
|
</fo:block>
|
@@ -471,18 +514,35 @@
|
|
471
514
|
<fo:table-row border-bottom="0.5pt solid {$color_gray}" height="16mm">
|
472
515
|
<fo:table-cell font-size="8pt" text-align="right" display-align="center">
|
473
516
|
<fo:block>
|
474
|
-
<fo:block color="{$color_blue}" margin-bottom="3pt">
|
475
|
-
|
517
|
+
<fo:block color="{$color_blue}" margin-bottom="3pt">
|
518
|
+
<!-- PRICE CODE -->
|
519
|
+
<xsl:variable name="price_code">
|
520
|
+
<!-- <xsl:call-template name="getLocalizedString">
|
521
|
+
<xsl:with-param name="key">price-code</xsl:with-param>
|
522
|
+
</xsl:call-template> -->
|
523
|
+
<xsl:value-of select="(//iec:iec-standard)[1]/iec:localized-strings/iec:localized-string[@key='price-code' and @language=$lang]"/>
|
524
|
+
</xsl:variable>
|
525
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code))"/>
|
526
|
+
</fo:block>
|
527
|
+
<!-- <xsl:if test="$lang != 'fr'">
|
528
|
+
<fo:block>CODE PRIX</fo:block>
|
529
|
+
</xsl:if> -->
|
530
|
+
<fo:block>
|
531
|
+
<xsl:variable name="price_code">
|
532
|
+
<xsl:value-of select="(//iec:iec-standard)[2]/iec:localized-strings/iec:localized-string[@key='price-code' and @language=$lang_second]"/>
|
533
|
+
</xsl:variable>
|
534
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new($price_code))"/>
|
535
|
+
</fo:block>
|
476
536
|
</fo:block>
|
477
537
|
</fo:table-cell>
|
478
538
|
<fo:table-cell font-size="25pt" font-weight="bold" color="{$color_gray}" text-align="right" display-align="center">
|
479
|
-
<fo:block padding-top="1mm"
|
539
|
+
<fo:block padding-top="1mm"><xsl:value-of select="//iec:iec-standard/iec:bibdata/iec:ext/iec:price-code"/></fo:block>
|
480
540
|
</fo:table-cell>
|
481
541
|
</fo:table-row>
|
482
542
|
</fo:table-body>
|
483
543
|
</fo:table>
|
484
544
|
<fo:block font-size="8pt" text-align-last="justify">
|
485
|
-
<xsl:for-each select="
|
545
|
+
<xsl:for-each select="//iec:iec-standard/iec:bibdata/iec:ext/iec:ics">
|
486
546
|
<xsl:if test="position() = 1">ICS </xsl:if>
|
487
547
|
<xsl:value-of select="iec:code"/>
|
488
548
|
<xsl:if test="position() != last()"><xsl:text> </xsl:text></xsl:if>
|
@@ -490,15 +550,17 @@
|
|
490
550
|
<xsl:text> </xsl:text>
|
491
551
|
<fo:inline keep-together.within-line="always"><fo:leader leader-pattern="space"/>
|
492
552
|
<xsl:text> </xsl:text>
|
493
|
-
|
494
|
-
|
553
|
+
<xsl:if test="//iec:iec-standard/iec:bibdata/iec:docidentifier[@type='ISBN']">
|
554
|
+
<!-- <xsl:text>Example: ISBN 978-2-8322-1532-6</xsl:text> -->
|
555
|
+
<xsl:value-of select="//iec:iec-standard/iec:bibdata/iec:docidentifier[@type='ISBN']"/>
|
556
|
+
</xsl:if>
|
495
557
|
</fo:inline>
|
496
558
|
</fo:block>
|
497
559
|
<fo:block-container margin-left="1.5mm">
|
498
560
|
<fo:block-container margin-left="0mm">
|
499
561
|
<fo:block-container border="0.5pt solid black" font-size="10pt" margin-top="8mm" font-weight="bold" padding-left="1.5mm" padding-top="0.5mm" width="102%" height="11mm" display-align="center">
|
500
562
|
<fo:block>Warning! Make sure that you obtained this publication from an authorized distributor.</fo:block>
|
501
|
-
<xsl:if test="
|
563
|
+
<xsl:if test="//iec:iec-standard/iec:bibdata/iec:title[@language = 'fr']">
|
502
564
|
<fo:block margin-top="3pt">Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé.</fo:block>
|
503
565
|
</xsl:if>
|
504
566
|
</fo:block-container>
|
@@ -506,7 +568,7 @@
|
|
506
568
|
</fo:block-container>
|
507
569
|
<fo:block font-size="6pt" margin-top="6mm" margin-left="1mm">
|
508
570
|
<fo:block>® Registered trademark of the International Electrotechnical Commission</fo:block>
|
509
|
-
<xsl:if test="
|
571
|
+
<xsl:if test="//iec:iec-standard/iec:bibdata/iec:title[@language = 'fr']">
|
510
572
|
<fo:block margin-left="2mm">Marque déposée de la Commission Electrotechnique Internationale</fo:block>
|
511
573
|
</xsl:if>
|
512
574
|
</fo:block>
|
@@ -525,7 +587,9 @@
|
|
525
587
|
<fo:inline font-weight="bold">
|
526
588
|
<xsl:call-template name="addLetterSpacing">
|
527
589
|
<xsl:with-param name="text">
|
528
|
-
<xsl:
|
590
|
+
<xsl:for-each select="(//iec:iec-standard)[1]/iec:bibdata/iec:copyright">
|
591
|
+
<xsl:text>Copyright © </xsl:text><xsl:value-of select="iec:from"/><xsl:text> </xsl:text><xsl:value-of select="iec:owner/iec:organization/iec:name"/><xsl:text>, </xsl:text><xsl:value-of select="iec:owner/iec:organization/iec:abbreviation"/>
|
592
|
+
</xsl:for-each>
|
529
593
|
</xsl:with-param>
|
530
594
|
</xsl:call-template>
|
531
595
|
</fo:inline>
|
@@ -582,7 +646,7 @@
|
|
582
646
|
</fo:block>
|
583
647
|
<fo:block font-size="9pt" font-weight="bold">
|
584
648
|
<xsl:call-template name="addLetterSpacing">
|
585
|
-
<xsl:with-param name="text"><xsl:value-of select="
|
649
|
+
<xsl:with-param name="text"><xsl:value-of select="//iec:iec-standard/iec:bibdata/iec:ext/iec:structuredidentifier/iec:project-number"/></xsl:with-param>
|
586
650
|
</xsl:call-template>
|
587
651
|
</fo:block>
|
588
652
|
</fo:table-cell>
|
@@ -596,7 +660,7 @@
|
|
596
660
|
</fo:block>
|
597
661
|
<fo:block font-size="9pt" font-weight="bold">
|
598
662
|
<xsl:call-template name="addLetterSpacing">
|
599
|
-
<xsl:with-param name="text"><xsl:value-of select="
|
663
|
+
<xsl:with-param name="text"><xsl:value-of select="//iec:iec-standard/iec:bibdata/iec:date[@type ='circulated']/iec:on"/></xsl:with-param>
|
600
664
|
</xsl:call-template>
|
601
665
|
</fo:block>
|
602
666
|
</fo:table-cell>
|
@@ -622,7 +686,7 @@
|
|
622
686
|
</fo:block>
|
623
687
|
<fo:block font-size="9pt" font-weight="bold">
|
624
688
|
<xsl:variable name="supersedes_documents">
|
625
|
-
<xsl:for-each select="
|
689
|
+
<xsl:for-each select="//iec:iec-standard/iec:bibdata/iec:relation[@type='supersedes']/iec:bibitem/iec:docnumber">
|
626
690
|
<xsl:value-of select="."/>
|
627
691
|
<xsl:if test="position() != last()">,</xsl:if>
|
628
692
|
</xsl:for-each>
|
@@ -648,19 +712,19 @@
|
|
648
712
|
<fo:table-row height="4mm">
|
649
713
|
<fo:table-cell number-columns-spanned="2" border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
650
714
|
<fo:block>
|
651
|
-
<xsl:if test="
|
715
|
+
<xsl:if test="//iec:iec-standard/iec:bibdata/iec:ext/iec:editorialgroup/iec:subcommittee">
|
652
716
|
<fo:block font-size="6.5pt">
|
653
|
-
<fo:inline font-size="8pt">IEC SC <xsl:value-of select="
|
717
|
+
<fo:inline font-size="8pt">IEC SC <xsl:value-of select="//iec:iec-standard/iec:bibdata/iec:ext/iec:editorialgroup/iec:subcommittee/@number"/> : </fo:inline>
|
654
718
|
<xsl:call-template name="addLetterSpacingSmallCaps">
|
655
|
-
<xsl:with-param name="text" select="
|
719
|
+
<xsl:with-param name="text" select="//iec:iec-standard/iec:bibdata/iec:ext/iec:editorialgroup/iec:subcommittee"/>
|
656
720
|
</xsl:call-template>
|
657
721
|
</fo:block>
|
658
722
|
</xsl:if>
|
659
|
-
<xsl:if test="
|
723
|
+
<xsl:if test="//iec:iec-standard/iec:bibdata/iec:ext/iec:editorialgroup/iec:technical-committee">
|
660
724
|
<fo:block font-size="6.5pt">
|
661
|
-
<fo:inline font-size="8pt">IEC TC <xsl:value-of select="
|
725
|
+
<fo:inline font-size="8pt">IEC TC <xsl:value-of select="//iec:iec-standard/iec:bibdata/iec:ext/iec:editorialgroup/iec:technical-committee/@number"/> : </fo:inline>
|
662
726
|
<xsl:call-template name="addLetterSpacingSmallCaps">
|
663
|
-
<xsl:with-param name="text" select="
|
727
|
+
<xsl:with-param name="text" select="//iec:iec-standard/iec:bibdata/iec:ext/iec:editorialgroup/iec:technical-committee"/>
|
664
728
|
</xsl:call-template>
|
665
729
|
</fo:block>
|
666
730
|
</xsl:if>
|
@@ -676,7 +740,7 @@
|
|
676
740
|
</fo:block>
|
677
741
|
<fo:block font-size="9pt">
|
678
742
|
<xsl:call-template name="addLetterSpacing">
|
679
|
-
<xsl:with-param name="text" select="
|
743
|
+
<xsl:with-param name="text" select="//iec:iec-standard/iec:bibdata/iec:ext/iec:editorialgroup/iec:secretariat"/>
|
680
744
|
</xsl:call-template>
|
681
745
|
</fo:block>
|
682
746
|
</fo:table-cell>
|
@@ -746,13 +810,28 @@
|
|
746
810
|
<xsl:with-param name="text" select="'Functions concerned:'"/>
|
747
811
|
</xsl:call-template>
|
748
812
|
</fo:block>
|
813
|
+
<!-- function: { emc | safety | environment | quality-assurance } -->
|
749
814
|
<fo:block font-size="6.5pt">
|
750
|
-
<xsl:
|
815
|
+
<xsl:choose>
|
816
|
+
<xsl:when test="//iec:iec-standard/iec:bibdata/iec:ext/iec:function = 'emc'">
|
817
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
818
|
+
</xsl:when>
|
819
|
+
<xsl:otherwise>
|
820
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
821
|
+
</xsl:otherwise>
|
822
|
+
</xsl:choose>
|
751
823
|
<xsl:call-template name="addLetterSpacingSmallCaps">
|
752
824
|
<xsl:with-param name="text" select="'EMC'"/>
|
753
825
|
</xsl:call-template>
|
754
826
|
<fo:inline padding-right="33mm"> </fo:inline>
|
755
|
-
<xsl:
|
827
|
+
<xsl:choose>
|
828
|
+
<xsl:when test="//iec:iec-standard/iec:bibdata/iec:ext/iec:function = 'environment'">
|
829
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
830
|
+
</xsl:when>
|
831
|
+
<xsl:otherwise>
|
832
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
833
|
+
</xsl:otherwise>
|
834
|
+
</xsl:choose>
|
756
835
|
<xsl:call-template name="addLetterSpacingSmallCaps">
|
757
836
|
<xsl:with-param name="text" select="'Environment'"/>
|
758
837
|
</xsl:call-template>
|
@@ -761,12 +840,26 @@
|
|
761
840
|
<fo:table-cell padding="1.5mm" padding-bottom="0mm">
|
762
841
|
<fo:block font-size="6.5pt" margin-bottom="6pt"> </fo:block>
|
763
842
|
<fo:block font-size="6.5pt">
|
764
|
-
<xsl:
|
843
|
+
<xsl:choose>
|
844
|
+
<xsl:when test="//iec:iec-standard/iec:bibdata/iec:ext/iec:function = 'quality-assurance'">
|
845
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
846
|
+
</xsl:when>
|
847
|
+
<xsl:otherwise>
|
848
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
849
|
+
</xsl:otherwise>
|
850
|
+
</xsl:choose>
|
765
851
|
<xsl:call-template name="addLetterSpacingSmallCaps">
|
766
852
|
<xsl:with-param name="text" select="'Quality assurance'"/>
|
767
853
|
</xsl:call-template>
|
768
854
|
<fo:inline padding-right="13mm"> </fo:inline>
|
769
|
-
<xsl:
|
855
|
+
<xsl:choose>
|
856
|
+
<xsl:when test="//iec:iec-standard/iec:bibdata/iec:ext/iec:function = 'safety'">
|
857
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
858
|
+
</xsl:when>
|
859
|
+
<xsl:otherwise>
|
860
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
861
|
+
</xsl:otherwise>
|
862
|
+
</xsl:choose>
|
770
863
|
<xsl:call-template name="addLetterSpacingSmallCaps">
|
771
864
|
<xsl:with-param name="text" select="'Safety'"/>
|
772
865
|
</xsl:call-template>
|
@@ -780,7 +873,14 @@
|
|
780
873
|
<fo:table-row>
|
781
874
|
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
782
875
|
<fo:block font-size="6.5pt" margin-bottom="12pt">
|
783
|
-
<xsl:
|
876
|
+
<xsl:choose>
|
877
|
+
<xsl:when test="/iec:iec-standard/iec:bibdata/iec:ext/iec:cen-processing = 'true'">
|
878
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
879
|
+
</xsl:when>
|
880
|
+
<xsl:otherwise>
|
881
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
882
|
+
</xsl:otherwise>
|
883
|
+
</xsl:choose>
|
784
884
|
<xsl:call-template name="addLetterSpacingSmallCaps">
|
785
885
|
<xsl:with-param name="text" select="'Submitted for CENELEC parallel voting'"/>
|
786
886
|
</xsl:call-template>
|
@@ -811,7 +911,14 @@
|
|
811
911
|
</fo:table-cell>
|
812
912
|
<fo:table-cell border="1.5pt solid {$border-color}" padding="1.5mm" padding-bottom="0mm">
|
813
913
|
<fo:block font-size="6.5pt" margin-bottom="6pt">
|
814
|
-
<xsl:
|
914
|
+
<xsl:choose>
|
915
|
+
<xsl:when test="/iec:iec-standard/iec:bibdata/iec:ext/iec:cen-processing = 'true'">
|
916
|
+
<xsl:call-template name="insertCheckBoxOff"/>
|
917
|
+
</xsl:when>
|
918
|
+
<xsl:otherwise>
|
919
|
+
<xsl:call-template name="insertCheckBoxOn"/>
|
920
|
+
</xsl:otherwise>
|
921
|
+
</xsl:choose>
|
815
922
|
<xsl:call-template name="addLetterSpacingSmallCaps">
|
816
923
|
<xsl:with-param name="text" select="'Not submitted for CENELEC parallel voting'"/>
|
817
924
|
</xsl:call-template>
|
@@ -864,7 +971,7 @@
|
|
864
971
|
</fo:block>
|
865
972
|
<fo:block font-size="9pt" font-weight="bold">
|
866
973
|
<xsl:call-template name="addLetterSpacing">
|
867
|
-
<xsl:with-param name="text"><xsl:value-of select="
|
974
|
+
<xsl:with-param name="text"><xsl:value-of select="(//iec:iec-standard)[1]/iec:bibdata/iec:title[@language = $lang and @type = 'main']"/></xsl:with-param>
|
868
975
|
</xsl:call-template>
|
869
976
|
</fo:block>
|
870
977
|
</fo:block-container>
|
@@ -916,8 +1023,56 @@
|
|
916
1023
|
</fo:page-sequence>
|
917
1024
|
</xsl:if>
|
918
1025
|
|
1026
|
+
<xsl:if test="$debug = 'true'">
|
1027
|
+
<xsl:text disable-output-escaping="yes"><!--</xsl:text>
|
1028
|
+
DEBUG
|
1029
|
+
contents=<xsl:copy-of select="xalan:nodeset($contents)"/>
|
1030
|
+
<xsl:text disable-output-escaping="yes">--></xsl:text>
|
1031
|
+
</xsl:if>
|
1032
|
+
|
1033
|
+
<xsl:for-each select="//iec:iec-standard">
|
1034
|
+
<xsl:variable name="lang" select="*[local-name()='bibdata']/*[local-name()='language'][@current = 'true']"/>
|
1035
|
+
<xsl:variable name="current_document">
|
1036
|
+
<xsl:copy-of select="."/>
|
1037
|
+
</xsl:variable>
|
1038
|
+
<xsl:for-each select="xalan:nodeset($current_document)">
|
1039
|
+
|
1040
|
+
<xsl:variable name="docid">
|
1041
|
+
<xsl:call-template name="getDocumentId"/>
|
1042
|
+
</xsl:variable>
|
1043
|
+
|
1044
|
+
|
1045
|
+
<fo:page-sequence master-reference="document" format="1" force-page-count="no-force"> <!-- initial-page-number="2" -->
|
1046
|
+
<xsl:variable name="num"><xsl:number count="iec:iec-standard" level="any"/></xsl:variable>
|
1047
|
+
<xsl:if test="$num = '1'">
|
1048
|
+
<xsl:attribute name="initial-page-number">2</xsl:attribute>
|
1049
|
+
</xsl:if>
|
1050
|
+
|
1051
|
+
<xsl:call-template name="insertHeaderFooter"/>
|
1052
|
+
<fo:flow flow-name="xsl-region-body">
|
1053
|
+
|
1054
|
+
<xsl:call-template name="insertTOCpages">
|
1055
|
+
<xsl:with-param name="contents" select="xalan:nodeset($contents)/doc[@id = $docid]"/>
|
1056
|
+
</xsl:call-template>
|
1057
|
+
|
1058
|
+
<xsl:call-template name="insertPrefacepages">
|
1059
|
+
<xsl:with-param name="lang" select="$lang"/>
|
1060
|
+
</xsl:call-template>
|
1061
|
+
|
1062
|
+
|
1063
|
+
</fo:flow>
|
1064
|
+
</fo:page-sequence>
|
1065
|
+
|
1066
|
+
<xsl:call-template name="insertBodypages">
|
1067
|
+
<xsl:with-param name="lang" select="$lang"/>
|
1068
|
+
</xsl:call-template>
|
1069
|
+
|
1070
|
+
</xsl:for-each>
|
1071
|
+
</xsl:for-each>
|
1072
|
+
|
1073
|
+
|
919
1074
|
|
920
|
-
<fo:page-sequence master-reference="document" format="1" initial-page-number="2" force-page-count="no-force">
|
1075
|
+
<!-- <fo:page-sequence master-reference="document" format="1" initial-page-number="2" force-page-count="no-force">
|
921
1076
|
<xsl:call-template name="insertHeaderFooter"/>
|
922
1077
|
<fo:flow flow-name="xsl-region-body">
|
923
1078
|
|
@@ -925,13 +1080,7 @@
|
|
925
1080
|
<xsl:call-template name="getDocumentId"/>
|
926
1081
|
</xsl:variable>
|
927
1082
|
|
928
|
-
|
929
|
-
<xsl:text disable-output-escaping="yes"><!--</xsl:text>
|
930
|
-
DEBUG
|
931
|
-
contents=<xsl:copy-of select="xalan:nodeset($contents)"/>
|
932
|
-
<xsl:text disable-output-escaping="yes">--></xsl:text>
|
933
|
-
</xsl:if>
|
934
|
-
|
1083
|
+
|
935
1084
|
<xsl:call-template name="insertTOCpages">
|
936
1085
|
<xsl:with-param name="contents" select="xalan:nodeset($contents)/doc[@id = $docid]"/>
|
937
1086
|
</xsl:call-template>
|
@@ -943,11 +1092,11 @@
|
|
943
1092
|
|
944
1093
|
|
945
1094
|
<xsl:call-template name="insertBodypages"/>
|
946
|
-
|
1095
|
+
-->
|
947
1096
|
|
948
1097
|
|
949
1098
|
<!-- Test=<xsl:copy-of select="$additionalDocs"/> Test -->
|
950
|
-
<xsl:for-each select="xalan:nodeset($additionalXMLsArray)/*">
|
1099
|
+
<!-- <xsl:for-each select="xalan:nodeset($additionalXMLsArray)/*">
|
951
1100
|
|
952
1101
|
<xsl:for-each select="document(.)">
|
953
1102
|
<xsl:variable name="lang">
|
@@ -988,7 +1137,7 @@
|
|
988
1137
|
|
989
1138
|
</xsl:for-each>
|
990
1139
|
</xsl:for-each>
|
991
|
-
</xsl:for-each>
|
1140
|
+
</xsl:for-each> -->
|
992
1141
|
|
993
1142
|
|
994
1143
|
|
@@ -1007,6 +1156,7 @@
|
|
1007
1156
|
<fo:block font-size="11pt" color="{$color_blue}" margin-bottom="12pt" line-height="150%">
|
1008
1157
|
<fo:block-container width="42mm">
|
1009
1158
|
<fo:block>
|
1159
|
+
<xsl:variable name="publisher" select="java:toUpperCase(java:java.lang.String.new(//iec:iec-standard/iec:bibdata/iec:contributor[iec:role/@type = 'publisher']/iec:organization/iec:name))"/>
|
1010
1160
|
<xsl:value-of select="$publisher"/>
|
1011
1161
|
</fo:block>
|
1012
1162
|
</fo:block-container>
|
@@ -1022,14 +1172,14 @@
|
|
1022
1172
|
Fax: + 41 22 919 03 00
|
1023
1173
|
info@iec.ch
|
1024
1174
|
www.iec.ch -->
|
1025
|
-
<xsl:variable name="telpos" select="count(
|
1175
|
+
<xsl:variable name="telpos" select="count((//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-address')]/text()[contains(., 'Tel.')]/preceding-sibling::node())"/>
|
1026
1176
|
<xsl:choose>
|
1027
1177
|
<xsl:when test="$telpos != 0">
|
1028
|
-
<xsl:apply-templates select="
|
1029
|
-
<xsl:apply-templates select="
|
1178
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-address')]/node()[position() <= $telpos]" mode="coverpage"/>
|
1179
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-address')]/node()[position() >= $telpos]" mode="coverpage"/>
|
1030
1180
|
</xsl:when>
|
1031
1181
|
<xsl:otherwise>
|
1032
|
-
<xsl:apply-templates select="
|
1182
|
+
<xsl:apply-templates select="(//iec:iec-standard)[1]/iec:boilerplate/iec:copyright-statement/iec:clause/iec:p[contains(@id, 'boilerplate-address')]" mode="coverpage"/>
|
1033
1183
|
</xsl:otherwise>
|
1034
1184
|
</xsl:choose>
|
1035
1185
|
</fo:block>
|
@@ -1042,10 +1192,20 @@
|
|
1042
1192
|
</xsl:template>
|
1043
1193
|
|
1044
1194
|
<xsl:template name="insertCoverPart1">
|
1195
|
+
<xsl:variable name="lang_second">
|
1196
|
+
<xsl:choose>
|
1197
|
+
<xsl:when test="(//iec:iec-standard)[2]/iec:bibdata/iec:language[@current = 'true']">
|
1198
|
+
<xsl:value-of select="(//iec:iec-standard)[2]/iec:bibdata/iec:language[@current = 'true']"/>
|
1199
|
+
</xsl:when>
|
1200
|
+
<xsl:otherwise>
|
1201
|
+
<xsl:value-of select="/iec:iec-standard/iec:bibdata/iec:title[@language and @language != $lang]/@language"/>
|
1202
|
+
</xsl:otherwise>
|
1203
|
+
</xsl:choose>
|
1204
|
+
</xsl:variable>
|
1045
1205
|
<fo:block text-align-last="justify">
|
1046
1206
|
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Logo-IEC))}" width="18mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo IEC"/>
|
1047
1207
|
<fo:inline font-size="8pt" padding-left="0.5mm" color="rgb(88, 88, 90)">®</fo:inline>
|
1048
|
-
<fo:inline keep-together.within-line="always" font-size="25pt" font-weight="bold" color="{$color_gray}" border-bottom="0.5pt solid {$color_gray}" padding-bottom="3.5mm" baseline-shift="5.5mm"><fo:leader leader-pattern="space"/><xsl:value-of select="
|
1208
|
+
<fo:inline keep-together.within-line="always" font-size="25pt" font-weight="bold" color="{$color_gray}" border-bottom="0.5pt solid {$color_gray}" padding-bottom="3.5mm" baseline-shift="5.5mm"><fo:leader leader-pattern="space"/><xsl:value-of select="//iec:iec-standard/iec:bibdata/iec:docidentifier[@type = 'iso' or @type = 'ISO']"/></fo:inline>
|
1049
1209
|
</fo:block>
|
1050
1210
|
<fo:block font-size="10.5pt" text-align="right" margin-top="0.5mm">
|
1051
1211
|
<xsl:variable name="title-edition">
|
@@ -1055,12 +1215,13 @@
|
|
1055
1215
|
</xsl:variable>
|
1056
1216
|
<xsl:value-of select="$title-edition"/>
|
1057
1217
|
<fo:inline>
|
1058
|
-
<xsl:
|
1059
|
-
<xsl:
|
1218
|
+
<xsl:variable name="edition" select="//iec:iec-standard/iec:bibdata/iec:edition"/>
|
1219
|
+
<xsl:value-of select="$edition"/>
|
1220
|
+
<xsl:if test="not(contains($edition, '.'))">.0</xsl:if>
|
1060
1221
|
</fo:inline>
|
1061
1222
|
<fo:inline padding-left="4mm">
|
1062
1223
|
<!-- Example 2014-05 -->
|
1063
|
-
<xsl:value-of select="substring(
|
1224
|
+
<xsl:value-of select="substring(//iec:iec-standard/iec:bibdata/iec:version/iec:revision-date, 1, 7)"/>
|
1064
1225
|
</fo:inline>
|
1065
1226
|
<fo:block> </fo:block>
|
1066
1227
|
</fo:block>
|
@@ -1076,6 +1237,7 @@
|
|
1076
1237
|
<xsl:text>PRE-RELEASE VERSION (FDIS)</xsl:text>
|
1077
1238
|
</xsl:when>
|
1078
1239
|
<xsl:when test="$stage >= 60">
|
1240
|
+
<xsl:variable name="doctype_uppercased" select="java:toUpperCase(java:java.lang.String.new((//iec:iec-standard)[1]/iec:bibdata/iec:ext/iec:doctype[@language = $lang]))"/>
|
1079
1241
|
<xsl:value-of select="$doctype_uppercased"/>
|
1080
1242
|
</xsl:when>
|
1081
1243
|
<xsl:otherwise>
|
@@ -1083,17 +1245,18 @@
|
|
1083
1245
|
<xsl:text> (</xsl:text><xsl:value-of select="$stage-abbreviation"/><xsl:text>)</xsl:text>
|
1084
1246
|
</xsl:otherwise>
|
1085
1247
|
</xsl:choose>
|
1086
|
-
|
1087
1248
|
</fo:block>
|
1088
1249
|
</fo:block-container>
|
1089
|
-
|
1250
|
+
|
1251
|
+
<xsl:if test="//iec:iec-standard/iec:bibdata/iec:title[@language = $lang_second]">
|
1090
1252
|
<fo:block-container height="26mm" margin-top="10pt" display-align="after">
|
1091
1253
|
<xsl:if test="$stage >= 60">
|
1092
1254
|
<xsl:attribute name="width">100mm</xsl:attribute>
|
1093
1255
|
</xsl:if>
|
1094
1256
|
<fo:block color="{$color_gray}">
|
1095
1257
|
<xsl:if test="$stage >= 60">
|
1096
|
-
<xsl:text>NORME INTERNATIONALE</xsl:text>
|
1258
|
+
<!-- <xsl:text>NORME INTERNATIONALE</xsl:text> -->
|
1259
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(//iec:iec-standard/iec:bibdata/iec:ext/iec:doctype[@language = $lang_second]))"/>
|
1097
1260
|
</xsl:if>
|
1098
1261
|
</fo:block>
|
1099
1262
|
</fo:block-container>
|
@@ -1104,21 +1267,39 @@
|
|
1104
1267
|
<fo:block-container margin-left="0mm">
|
1105
1268
|
<fo:block-container height="6mm">
|
1106
1269
|
<fo:block text-align="right" margin-top="-4.5mm" margin-right="-1mm">
|
1107
|
-
<
|
1270
|
+
<xsl:if test="//iec:iec-standard/iec:bibdata/iec:ext/iec:accessibility-color-inside = 'true'">
|
1271
|
+
<fo:external-graphic src="{concat('data:image/png;base64,', normalize-space($Image-Colour-Inside))}" width="19mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Logo IEC"/>
|
1272
|
+
</xsl:if>
|
1108
1273
|
</fo:block>
|
1109
1274
|
</fo:block-container>
|
1110
1275
|
<fo:block-container border-bottom="0.5pt solid {$color_gray}" margin-top="4mm" margin-bottom="16pt" height="14mm" display-align="center">
|
1111
1276
|
<fo:block font-size="10pt" color="{$color_blue}" margin-bottom="4pt">
|
1112
|
-
|
1277
|
+
<xsl:choose>
|
1278
|
+
<xsl:when test="//iec:iec-standard/iec:bibdata/iec:ext/iec:horizontal = 'true'">
|
1279
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(//iec:iec-standard/iec:bibdata/iec:ext/iec:horizontal[@language = $lang]))"/>
|
1280
|
+
</xsl:when>
|
1281
|
+
<xsl:otherwise><!-- horizontal is false -->
|
1282
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(//iec:iec-standard/iec:bibdata/iec:ext/iec:function[@language = $lang]))"/>
|
1283
|
+
</xsl:otherwise>
|
1284
|
+
</xsl:choose>
|
1285
|
+
<!-- Example: BASIC EMC PUBLICATION -->
|
1113
1286
|
<!-- HORIZONTAL STANDARD -->
|
1114
1287
|
<!-- Basic EMC Publication
|
1115
1288
|
Basic Safety Publication
|
1116
1289
|
Basic Environment Publication
|
1117
1290
|
Basic Quality Assurance Publication -->
|
1118
1291
|
</fo:block>
|
1119
|
-
<xsl:if test="
|
1292
|
+
<xsl:if test="//iec:iec-standard/iec:bibdata/iec:title[@language = $lang_second]">
|
1120
1293
|
<fo:block font-size="10pt" margin-bottom="10pt">
|
1121
|
-
|
1294
|
+
<xsl:choose>
|
1295
|
+
<xsl:when test="//iec:iec-standard/iec:bibdata/iec:ext/iec:horizontal = 'true'">
|
1296
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(//iec:iec-standard/iec:bibdata/iec:ext/iec:horizontal[@language = $lang_second]))"/>
|
1297
|
+
</xsl:when>
|
1298
|
+
<xsl:otherwise><!-- horizontal is false -->
|
1299
|
+
<xsl:value-of select="java:toUpperCase(java:java.lang.String.new(//iec:iec-standard/iec:bibdata/iec:ext/iec:function[@language = $lang_second]))"/>
|
1300
|
+
</xsl:otherwise>
|
1301
|
+
</xsl:choose>
|
1302
|
+
<!-- Example: PUBLICATION FONDAMENTALE EN CEM -->
|
1122
1303
|
<!-- NORME HORIZONTALE -->
|
1123
1304
|
</fo:block>
|
1124
1305
|
</xsl:if>
|
@@ -1132,42 +1313,62 @@
|
|
1132
1313
|
Electromagnetic compatibility (EMC) –
|
1133
1314
|
Part 4-5: Testing and measurement techniques – Surge immunity test
|
1134
1315
|
-->
|
1316
|
+
<xsl:variable name="title-intro" select="//iec:iec-standard/iec:bibdata/iec:title[@language = $lang and @type = 'title-intro']"/>
|
1135
1317
|
<xsl:value-of select="$title-intro"/>
|
1318
|
+
<xsl:variable name="title-main" select="//iec:iec-standard/iec:bibdata/iec:title[@language = $lang and @type = 'title-main']"/>
|
1136
1319
|
<xsl:if test="$title-main != ''">
|
1137
1320
|
<xsl:text> — </xsl:text>
|
1138
1321
|
<xsl:value-of select="$title-main"/>
|
1139
1322
|
</xsl:if>
|
1140
|
-
<xsl:variable name="part
|
1141
|
-
<xsl:if test="$part
|
1323
|
+
<xsl:variable name="title-part" select="//iec:iec-standard/iec:bibdata/iec:title[@language = $lang and @type = 'title-part']"/>
|
1324
|
+
<xsl:if test="$title-part != ''">
|
1142
1325
|
<xsl:text> — </xsl:text>
|
1143
1326
|
<xsl:value-of select="$linebreak"/>
|
1144
1327
|
<xsl:if test="$part != ''">
|
1145
|
-
<xsl:
|
1328
|
+
<xsl:variable name="localized_part" select="(//iec:iec-standard)[1]/iec:localized-strings/iec:localized-string[@key='locality.part' and @language=$lang]"/>
|
1329
|
+
<!-- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($localized_part),'#',$part)"/> -->
|
1330
|
+
<xsl:value-of select="concat($localized_part ,' ',$part, ': ')"/>
|
1146
1331
|
<!-- <xsl:text>Part </xsl:text><xsl:value-of select="$part"/>
|
1147
1332
|
<xsl:text>: </xsl:text> -->
|
1148
1333
|
</xsl:if>
|
1149
|
-
<xsl:value-of select="$part
|
1334
|
+
<xsl:value-of select="$title-part"/>
|
1150
1335
|
</xsl:if>
|
1151
1336
|
</fo:block>
|
1152
1337
|
<fo:block font-size="12pt" font-weight="bold">
|
1153
1338
|
<!-- Example: Compatibilité électromagnétique (CEM) –
|
1154
1339
|
Partie 4-5: Techniques d'essai et de mesure – Essai d'immunité aux ondes de
|
1155
1340
|
choc -->
|
1156
|
-
<xsl:
|
1157
|
-
<xsl:
|
1341
|
+
<xsl:variable name="title-intro-second" select="//iec:iec-standard/iec:bibdata/iec:title[@language = $lang_second and @type = 'title-intro']"/>
|
1342
|
+
<xsl:value-of select="$title-intro-second"/>
|
1343
|
+
<xsl:variable name="title-main-second" select="//iec:iec-standard/iec:bibdata/iec:title[@language = $lang_second and @type = 'title-main']"/>
|
1344
|
+
<xsl:if test="$title-main-second != ''">
|
1158
1345
|
<xsl:text> — </xsl:text>
|
1159
|
-
<xsl:value-of select="$title-main-
|
1346
|
+
<xsl:value-of select="$title-main-second"/>
|
1160
1347
|
</xsl:if>
|
1161
|
-
<xsl:variable name="part-
|
1162
|
-
<xsl:if test="$part-
|
1348
|
+
<xsl:variable name="part-second" select="//iec:iec-standard/iec:bibdata/iec:title[@language = $lang_second and @type = 'title-part']"/>
|
1349
|
+
<xsl:if test="$part-second != ''">
|
1163
1350
|
<xsl:text> — </xsl:text>
|
1164
1351
|
<xsl:value-of select="$linebreak"/>
|
1165
1352
|
<xsl:if test="$part != ''">
|
1166
|
-
|
1353
|
+
|
1354
|
+
<xsl:choose>
|
1355
|
+
<xsl:when test="(//iec:iec-standard)[2]/iec:localized-strings/iec:localized-string[@key='locality.part' and @language=$lang_second]">
|
1356
|
+
<xsl:variable name="localized_part">
|
1357
|
+
<xsl:value-of select="(//iec:iec-standard)[2]/iec:localized-strings/iec:localized-string[@key='locality.part' and @language=$lang_second]"/>
|
1358
|
+
</xsl:variable>
|
1359
|
+
<xsl:value-of select="concat($localized_part ,' ',$part, ': ')"/>
|
1360
|
+
</xsl:when>
|
1361
|
+
<xsl:otherwise>
|
1362
|
+
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($titles/title-part[@lang = $lang_second]),'#',$part)"/>
|
1363
|
+
</xsl:otherwise>
|
1364
|
+
</xsl:choose>
|
1365
|
+
|
1366
|
+
<!-- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($localized_part),'#',$part)"/> -->
|
1367
|
+
|
1167
1368
|
<!-- <xsl:text>Part </xsl:text><xsl:value-of select="$part"/>
|
1168
1369
|
<xsl:text>: </xsl:text> -->
|
1169
1370
|
</xsl:if>
|
1170
|
-
<xsl:value-of select="$part-
|
1371
|
+
<xsl:value-of select="$part-second"/>
|
1171
1372
|
</xsl:if>
|
1172
1373
|
</fo:block>
|
1173
1374
|
</fo:block-container>
|
@@ -1289,7 +1490,8 @@
|
|
1289
1490
|
<xsl:param name="lang" select="$lang"/>
|
1290
1491
|
<fo:block break-after="page"/>
|
1291
1492
|
<fo:block-container font-size="12pt" text-align="center" margin-bottom="18pt">
|
1292
|
-
<fo:block><xsl:value-of select="java:toUpperCase(java:java.lang.String.new(/iec:iec-standard/iec:bibdata/iec:contributor/iec:organization/iec:name))"/></fo:block>
|
1493
|
+
<!-- <fo:block><xsl:value-of select="java:toUpperCase(java:java.lang.String.new(/iec:iec-standard/iec:bibdata/iec:contributor/iec:organization/iec:name))"/></fo:block> -->
|
1494
|
+
<fo:block><xsl:value-of select="/iec:iec-standard/iec:localized-strings/iec:localized-string[@key='IEC' and @language=$lang]"/></fo:block>
|
1293
1495
|
<fo:block>___________</fo:block>
|
1294
1496
|
<fo:block> </fo:block>
|
1295
1497
|
<fo:block font-weight="bold">
|
@@ -1304,7 +1506,9 @@
|
|
1304
1506
|
<fo:block>
|
1305
1507
|
<xsl:if test="$part != ''">
|
1306
1508
|
<!-- Example: Part 1: Riz -->
|
1307
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($titles/title-part[@lang = $lang]),'#',$part)"/>
|
1509
|
+
<!-- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($titles/title-part[@lang = $lang]),'#',$part)"/> -->
|
1510
|
+
<xsl:variable name="localized_part" select="//iec:iec-standard/iec:localized-strings/iec:localized-string[@key='locality.part' and @language = $lang]"/>
|
1511
|
+
<xsl:value-of select="concat($localized_part ,' ',$part, ': ')"/>
|
1308
1512
|
</xsl:if>
|
1309
1513
|
<xsl:value-of select="$title-part"/>
|
1310
1514
|
</fo:block>
|
@@ -1344,7 +1548,9 @@
|
|
1344
1548
|
<fo:block>
|
1345
1549
|
<xsl:if test="$part != ''">
|
1346
1550
|
<!-- Example: Part 1: Rice -->
|
1347
|
-
<xsl:value-of select="java:replaceAll(java:java.lang.String.new($titles/title-part[@lang = $lang]),'#',$part)"/>
|
1551
|
+
<!-- <xsl:value-of select="java:replaceAll(java:java.lang.String.new($titles/title-part[@lang = $lang]),'#',$part)"/> -->
|
1552
|
+
<xsl:variable name="localized_part" select="//iec:iec-standard/iec:localized-strings/iec:localized-string[@key='locality.part' and @language = $lang]"/>
|
1553
|
+
<xsl:value-of select="concat($localized_part ,' ',$part, ': ')"/>
|
1348
1554
|
</xsl:if>
|
1349
1555
|
<xsl:value-of select="$title-part"/>
|
1350
1556
|
</fo:block>
|
@@ -1367,6 +1573,35 @@
|
|
1367
1573
|
<xsl:apply-templates/>
|
1368
1574
|
</xsl:template>
|
1369
1575
|
|
1576
|
+
|
1577
|
+
<xsl:template match="iec:feedback-statement//iec:clause/iec:title" priority="2">
|
1578
|
+
<fo:block font-weight="bold" keep-with-next="always"><xsl:apply-templates/></fo:block>
|
1579
|
+
</xsl:template>
|
1580
|
+
|
1581
|
+
<xsl:template match="iec:feedback-statement//iec:clause/iec:p" priority="2">
|
1582
|
+
<fo:block margin-bottom="6pt"><xsl:apply-templates/></fo:block>
|
1583
|
+
</xsl:template>
|
1584
|
+
|
1585
|
+
<xsl:template match="iec:feedback-statement/iec:clause[not(iec:clause)]" priority="2">
|
1586
|
+
<fo:block span="all" text-align="justify">
|
1587
|
+
<xsl:if test="not(preceding-sibling::iec:clause)">
|
1588
|
+
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
1589
|
+
</xsl:if>
|
1590
|
+
<xsl:apply-templates/>
|
1591
|
+
</fo:block>
|
1592
|
+
</xsl:template>
|
1593
|
+
|
1594
|
+
<xsl:template match="iec:feedback-statement/iec:clause[iec:clause]" priority="2">
|
1595
|
+
<fo:block text-align="justify">
|
1596
|
+
<xsl:apply-templates/>
|
1597
|
+
</fo:block>
|
1598
|
+
</xsl:template>
|
1599
|
+
<xsl:template match="iec:feedback-statement/iec:clause/iec:clause" priority="3">
|
1600
|
+
<fo:block text-align="justify">
|
1601
|
+
<xsl:apply-templates/>
|
1602
|
+
</fo:block>
|
1603
|
+
</xsl:template>
|
1604
|
+
|
1370
1605
|
<!-- ============================= -->
|
1371
1606
|
<!-- CONTENTS -->
|
1372
1607
|
<!-- ============================= -->
|
@@ -1721,9 +1956,9 @@
|
|
1721
1956
|
<fo:inline id="{$lang}_footnote_{@reference}" keep-with-next.within-line="always" baseline-shift="15%" padding-right="3mm"> <!-- padding-right="3mm" font-size="60%" alignment-baseline="hanging" -->
|
1722
1957
|
<xsl:value-of select="$number + count(//iec:bibitem/iec:note)"/><!-- <xsl:text>)</xsl:text> -->
|
1723
1958
|
</fo:inline>
|
1724
|
-
<xsl:for-each select="iec:p">
|
1725
|
-
|
1726
|
-
</xsl:for-each>
|
1959
|
+
<!-- <xsl:for-each select="iec:p"> -->
|
1960
|
+
<xsl:apply-templates/>
|
1961
|
+
<!-- </xsl:for-each> -->
|
1727
1962
|
</fo:block>
|
1728
1963
|
</fo:footnote-body>
|
1729
1964
|
</fo:footnote>
|
@@ -1819,10 +2054,10 @@
|
|
1819
2054
|
<xsl:otherwise> <!-- for ordered lists -->
|
1820
2055
|
<xsl:choose>
|
1821
2056
|
<xsl:when test="../@type = 'arabic'">
|
1822
|
-
<xsl:number format="a)"/>
|
2057
|
+
<xsl:number format="a)" lang="en"/>
|
1823
2058
|
</xsl:when>
|
1824
2059
|
<xsl:when test="../@type = 'alphabet'">
|
1825
|
-
<xsl:number format="a)"/>
|
2060
|
+
<xsl:number format="a)" lang="en"/>
|
1826
2061
|
</xsl:when>
|
1827
2062
|
<xsl:otherwise>
|
1828
2063
|
<xsl:number format="1)"/>
|
@@ -2190,15 +2425,24 @@
|
|
2190
2425
|
|
2191
2426
|
<xsl:text>Part #: </xsl:text>
|
2192
2427
|
|
2428
|
+
|
2193
2429
|
</title-part>
|
2194
2430
|
<title-part lang="fr">
|
2195
2431
|
|
2196
2432
|
|
2197
2433
|
<xsl:text>Partie #: </xsl:text>
|
2198
2434
|
|
2435
|
+
|
2199
2436
|
</title-part>
|
2200
2437
|
<title-part lang="zh">第 # 部分:</title-part>
|
2201
2438
|
|
2439
|
+
<title-subpart lang="en">
|
2440
|
+
|
2441
|
+
</title-subpart>
|
2442
|
+
<title-subpart lang="fr">
|
2443
|
+
|
2444
|
+
</title-subpart>
|
2445
|
+
|
2202
2446
|
<title-modified lang="en">modified</title-modified>
|
2203
2447
|
<title-modified lang="fr">modifiée</title-modified>
|
2204
2448
|
|
@@ -2455,6 +2699,7 @@
|
|
2455
2699
|
|
2456
2700
|
|
2457
2701
|
|
2702
|
+
|
2458
2703
|
</xsl:attribute-set><xsl:variable name="note-body-indent">10mm</xsl:variable><xsl:variable name="note-body-indent-table">5mm</xsl:variable><xsl:attribute-set name="note-name-style">
|
2459
2704
|
|
2460
2705
|
|
@@ -2498,6 +2743,7 @@
|
|
2498
2743
|
|
2499
2744
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
2500
2745
|
|
2746
|
+
|
2501
2747
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
2502
2748
|
|
2503
2749
|
|
@@ -2535,6 +2781,7 @@
|
|
2535
2781
|
</xsl:attribute-set><xsl:attribute-set name="term-style">
|
2536
2782
|
|
2537
2783
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
2784
|
+
|
2538
2785
|
|
2539
2786
|
|
2540
2787
|
|
@@ -2661,7 +2908,9 @@
|
|
2661
2908
|
|
2662
2909
|
|
2663
2910
|
|
2664
|
-
|
2911
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
2912
|
+
<fo:block> </fo:block>
|
2913
|
+
</xsl:if> -->
|
2665
2914
|
|
2666
2915
|
<!-- $namespace = 'iso' or -->
|
2667
2916
|
|
@@ -2695,10 +2944,12 @@
|
|
2695
2944
|
|
2696
2945
|
|
2697
2946
|
<xsl:variable name="colwidths">
|
2698
|
-
<xsl:
|
2699
|
-
<xsl:
|
2700
|
-
|
2701
|
-
|
2947
|
+
<xsl:if test="not(*[local-name()='colgroup']/*[local-name()='col'])">
|
2948
|
+
<xsl:call-template name="calculate-column-widths">
|
2949
|
+
<xsl:with-param name="cols-count" select="$cols-count"/>
|
2950
|
+
<xsl:with-param name="table" select="$simple-table"/>
|
2951
|
+
</xsl:call-template>
|
2952
|
+
</xsl:if>
|
2702
2953
|
</xsl:variable>
|
2703
2954
|
<!-- colwidths=<xsl:copy-of select="$colwidths"/> -->
|
2704
2955
|
|
@@ -2774,16 +3025,25 @@
|
|
2774
3025
|
<xsl:attribute name="border-bottom">0pt solid black</xsl:attribute> <!-- set 0pt border, because there is a separete table below for footer -->
|
2775
3026
|
</xsl:if>
|
2776
3027
|
|
2777
|
-
<xsl:
|
2778
|
-
<xsl:
|
2779
|
-
<xsl:
|
2780
|
-
<fo:table-column column-width="
|
2781
|
-
</xsl:
|
2782
|
-
|
2783
|
-
|
2784
|
-
|
2785
|
-
|
2786
|
-
|
3028
|
+
<xsl:choose>
|
3029
|
+
<xsl:when test="*[local-name()='colgroup']/*[local-name()='col']">
|
3030
|
+
<xsl:for-each select="*[local-name()='colgroup']/*[local-name()='col']">
|
3031
|
+
<fo:table-column column-width="{@width}"/>
|
3032
|
+
</xsl:for-each>
|
3033
|
+
</xsl:when>
|
3034
|
+
<xsl:otherwise>
|
3035
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
3036
|
+
<xsl:choose>
|
3037
|
+
<xsl:when test=". = 1 or . = 0">
|
3038
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
3039
|
+
</xsl:when>
|
3040
|
+
<xsl:otherwise>
|
3041
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
3042
|
+
</xsl:otherwise>
|
3043
|
+
</xsl:choose>
|
3044
|
+
</xsl:for-each>
|
3045
|
+
</xsl:otherwise>
|
3046
|
+
</xsl:choose>
|
2787
3047
|
|
2788
3048
|
<xsl:choose>
|
2789
3049
|
<xsl:when test="not(*[local-name()='tbody']) and *[local-name()='thead']">
|
@@ -2796,10 +3056,12 @@
|
|
2796
3056
|
|
2797
3057
|
</fo:table>
|
2798
3058
|
|
3059
|
+
<xsl:variable name="colgroup" select="*[local-name()='colgroup']"/>
|
2799
3060
|
<xsl:for-each select="*[local-name()='tbody']"><!-- select context to tbody -->
|
2800
3061
|
<xsl:call-template name="insertTableFooterInSeparateTable">
|
2801
3062
|
<xsl:with-param name="table_attributes" select="$table_attributes"/>
|
2802
3063
|
<xsl:with-param name="colwidths" select="$colwidths"/>
|
3064
|
+
<xsl:with-param name="colgroup" select="$colgroup"/>
|
2803
3065
|
</xsl:call-template>
|
2804
3066
|
</xsl:for-each>
|
2805
3067
|
|
@@ -2832,6 +3094,7 @@
|
|
2832
3094
|
<xsl:if test="normalize-space() != ''">
|
2833
3095
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
2834
3096
|
|
3097
|
+
|
2835
3098
|
<xsl:apply-templates/>
|
2836
3099
|
</fo:block>
|
2837
3100
|
</xsl:if>
|
@@ -3020,13 +3283,27 @@
|
|
3020
3283
|
|
3021
3284
|
|
3022
3285
|
|
3023
|
-
<!-- except gb and bipm -->
|
3024
3286
|
|
3025
|
-
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3026
3287
|
|
3027
3288
|
|
3289
|
+
<!-- except gb -->
|
3290
|
+
|
3291
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3028
3292
|
|
3029
3293
|
|
3294
|
+
<!-- show Note under table in preface (ex. abstract) sections -->
|
3295
|
+
<!-- empty, because notes show at page side in main sections -->
|
3296
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
3297
|
+
<xsl:choose>
|
3298
|
+
<xsl:when test="ancestor::*[local-name()='preface']">
|
3299
|
+
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3300
|
+
</xsl:when>
|
3301
|
+
<xsl:otherwise>
|
3302
|
+
<fo:block/>
|
3303
|
+
</xsl:otherwise>
|
3304
|
+
</xsl:choose>
|
3305
|
+
</xsl:if> -->
|
3306
|
+
|
3030
3307
|
|
3031
3308
|
<!-- horizontal row separator -->
|
3032
3309
|
|
@@ -3050,12 +3327,22 @@
|
|
3050
3327
|
</xsl:template><xsl:template name="insertTableFooterInSeparateTable">
|
3051
3328
|
<xsl:param name="table_attributes"/>
|
3052
3329
|
<xsl:param name="colwidths"/>
|
3330
|
+
<xsl:param name="colgroup"/>
|
3053
3331
|
|
3054
3332
|
<xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
3055
3333
|
|
3056
3334
|
<xsl:if test="$isNoteOrFnExist = 'true'">
|
3057
3335
|
|
3058
|
-
<xsl:variable name="cols-count"
|
3336
|
+
<xsl:variable name="cols-count">
|
3337
|
+
<xsl:choose>
|
3338
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
3339
|
+
<xsl:value-of select="count(xalan:nodeset($colgroup)//*[local-name()='col'])"/>
|
3340
|
+
</xsl:when>
|
3341
|
+
<xsl:otherwise>
|
3342
|
+
<xsl:value-of select="count(xalan:nodeset($colwidths)//column)"/>
|
3343
|
+
</xsl:otherwise>
|
3344
|
+
</xsl:choose>
|
3345
|
+
</xsl:variable>
|
3059
3346
|
|
3060
3347
|
<fo:table keep-with-previous="always">
|
3061
3348
|
<xsl:for-each select="xalan:nodeset($table_attributes)/attribute">
|
@@ -3073,16 +3360,25 @@
|
|
3073
3360
|
</xsl:choose>
|
3074
3361
|
</xsl:for-each>
|
3075
3362
|
|
3076
|
-
<xsl:
|
3077
|
-
<xsl:
|
3078
|
-
<xsl:
|
3079
|
-
<fo:table-column column-width="
|
3080
|
-
</xsl:
|
3081
|
-
|
3082
|
-
|
3083
|
-
|
3084
|
-
|
3085
|
-
|
3363
|
+
<xsl:choose>
|
3364
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
3365
|
+
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
3366
|
+
<fo:table-column column-width="{@width}"/>
|
3367
|
+
</xsl:for-each>
|
3368
|
+
</xsl:when>
|
3369
|
+
<xsl:otherwise>
|
3370
|
+
<xsl:for-each select="xalan:nodeset($colwidths)//column">
|
3371
|
+
<xsl:choose>
|
3372
|
+
<xsl:when test=". = 1 or . = 0">
|
3373
|
+
<fo:table-column column-width="proportional-column-width(2)"/>
|
3374
|
+
</xsl:when>
|
3375
|
+
<xsl:otherwise>
|
3376
|
+
<fo:table-column column-width="proportional-column-width({.})"/>
|
3377
|
+
</xsl:otherwise>
|
3378
|
+
</xsl:choose>
|
3379
|
+
</xsl:for-each>
|
3380
|
+
</xsl:otherwise>
|
3381
|
+
</xsl:choose>
|
3086
3382
|
|
3087
3383
|
<fo:table-body>
|
3088
3384
|
<fo:table-row>
|
@@ -3100,7 +3396,11 @@
|
|
3100
3396
|
|
3101
3397
|
|
3102
3398
|
|
3103
|
-
|
3399
|
+
|
3400
|
+
|
3401
|
+
|
3402
|
+
|
3403
|
+
<!-- except gb -->
|
3104
3404
|
|
3105
3405
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
3106
3406
|
|
@@ -3198,6 +3498,10 @@
|
|
3198
3498
|
|
3199
3499
|
|
3200
3500
|
|
3501
|
+
<!-- <xsl:if test="$namespace = 'bipm'">
|
3502
|
+
<xsl:attribute name="height">8mm</xsl:attribute>
|
3503
|
+
</xsl:if> -->
|
3504
|
+
|
3201
3505
|
<xsl:apply-templates/>
|
3202
3506
|
</fo:table-row>
|
3203
3507
|
</xsl:template><xsl:template match="*[local-name()='th']">
|
@@ -3298,7 +3602,8 @@
|
|
3298
3602
|
</xsl:attribute>
|
3299
3603
|
</xsl:if>
|
3300
3604
|
<xsl:call-template name="display-align"/>
|
3301
|
-
<fo:block>
|
3605
|
+
<fo:block>
|
3606
|
+
|
3302
3607
|
<xsl:apply-templates/>
|
3303
3608
|
</fo:block>
|
3304
3609
|
</fo:table-cell>
|
@@ -3534,7 +3839,13 @@
|
|
3534
3839
|
<xsl:apply-templates/>
|
3535
3840
|
</fo:inline>
|
3536
3841
|
</xsl:template><xsl:template match="*[local-name()='dl']">
|
3537
|
-
<fo:block-container
|
3842
|
+
<fo:block-container>
|
3843
|
+
|
3844
|
+
<xsl:if test="not(ancestor::*[local-name() = 'quote'])">
|
3845
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3846
|
+
</xsl:if>
|
3847
|
+
|
3848
|
+
|
3538
3849
|
<xsl:if test="parent::*[local-name() = 'note']">
|
3539
3850
|
<xsl:attribute name="margin-left">
|
3540
3851
|
<xsl:choose>
|
@@ -3544,8 +3855,12 @@
|
|
3544
3855
|
</xsl:attribute>
|
3545
3856
|
|
3546
3857
|
</xsl:if>
|
3547
|
-
<fo:block-container
|
3548
|
-
|
3858
|
+
<fo:block-container>
|
3859
|
+
|
3860
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
3861
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
3862
|
+
|
3863
|
+
|
3549
3864
|
<xsl:variable name="parent" select="local-name(..)"/>
|
3550
3865
|
|
3551
3866
|
<xsl:variable name="key_iso">
|
@@ -3563,9 +3878,12 @@
|
|
3563
3878
|
|
3564
3879
|
|
3565
3880
|
<xsl:variable name="title-where">
|
3566
|
-
|
3567
|
-
|
3568
|
-
|
3881
|
+
|
3882
|
+
|
3883
|
+
<xsl:call-template name="getTitle">
|
3884
|
+
<xsl:with-param name="name" select="'title-where'"/>
|
3885
|
+
</xsl:call-template>
|
3886
|
+
|
3569
3887
|
</xsl:variable>
|
3570
3888
|
<xsl:value-of select="$title-where"/>
|
3571
3889
|
</fo:block>
|
@@ -3588,9 +3906,12 @@
|
|
3588
3906
|
|
3589
3907
|
|
3590
3908
|
<xsl:variable name="title-where">
|
3591
|
-
|
3592
|
-
|
3593
|
-
|
3909
|
+
|
3910
|
+
|
3911
|
+
<xsl:call-template name="getTitle">
|
3912
|
+
<xsl:with-param name="name" select="'title-where'"/>
|
3913
|
+
</xsl:call-template>
|
3914
|
+
|
3594
3915
|
</xsl:variable>
|
3595
3916
|
<xsl:value-of select="$title-where"/>
|
3596
3917
|
</fo:block>
|
@@ -3604,9 +3925,12 @@
|
|
3604
3925
|
|
3605
3926
|
|
3606
3927
|
<xsl:variable name="title-key">
|
3607
|
-
|
3608
|
-
|
3609
|
-
|
3928
|
+
|
3929
|
+
|
3930
|
+
<xsl:call-template name="getTitle">
|
3931
|
+
<xsl:with-param name="name" select="'title-key'"/>
|
3932
|
+
</xsl:call-template>
|
3933
|
+
|
3610
3934
|
</xsl:variable>
|
3611
3935
|
<xsl:value-of select="$title-key"/>
|
3612
3936
|
</fo:block>
|
@@ -3734,12 +4058,32 @@
|
|
3734
4058
|
</xsl:otherwise>
|
3735
4059
|
</xsl:choose>
|
3736
4060
|
</xsl:template><xsl:template name="getMaxLength_dt">
|
3737
|
-
<xsl:
|
3738
|
-
<xsl:
|
3739
|
-
|
3740
|
-
<xsl:
|
3741
|
-
|
3742
|
-
|
4061
|
+
<xsl:variable name="lengths">
|
4062
|
+
<xsl:for-each select="*[local-name()='dt']">
|
4063
|
+
<xsl:variable name="maintext_length" select="string-length(normalize-space(.))"/>
|
4064
|
+
<xsl:variable name="attributes">
|
4065
|
+
<xsl:for-each select=".//@open"><xsl:value-of select="."/></xsl:for-each>
|
4066
|
+
<xsl:for-each select=".//@close"><xsl:value-of select="."/></xsl:for-each>
|
4067
|
+
</xsl:variable>
|
4068
|
+
<length><xsl:value-of select="string-length(normalize-space(.)) + string-length($attributes)"/></length>
|
4069
|
+
</xsl:for-each>
|
4070
|
+
</xsl:variable>
|
4071
|
+
<xsl:variable name="maxLength">
|
4072
|
+
<!-- <xsl:for-each select="*[local-name()='dt']">
|
4073
|
+
<xsl:sort select="string-length(normalize-space(.))" data-type="number" order="descending"/>
|
4074
|
+
<xsl:if test="position() = 1">
|
4075
|
+
<xsl:value-of select="string-length(normalize-space(.))"/>
|
4076
|
+
</xsl:if>
|
4077
|
+
</xsl:for-each> -->
|
4078
|
+
<xsl:for-each select="xalan:nodeset($lengths)/length">
|
4079
|
+
<xsl:sort select="." data-type="number" order="descending"/>
|
4080
|
+
<xsl:if test="position() = 1">
|
4081
|
+
<xsl:value-of select="."/>
|
4082
|
+
</xsl:if>
|
4083
|
+
</xsl:for-each>
|
4084
|
+
</xsl:variable>
|
4085
|
+
<!-- <xsl:message>DEBUG:<xsl:value-of select="$maxLength"/></xsl:message> -->
|
4086
|
+
<xsl:value-of select="$maxLength"/>
|
3743
4087
|
</xsl:template><xsl:template match="*[local-name()='dl']/*[local-name()='note']" priority="2">
|
3744
4088
|
<xsl:param name="key_iso"/>
|
3745
4089
|
|
@@ -3855,6 +4199,7 @@
|
|
3855
4199
|
</fo:inline>
|
3856
4200
|
</xsl:template><xsl:template match="*[local-name()='strong'] | *[local-name()='b']">
|
3857
4201
|
<fo:inline font-weight="bold">
|
4202
|
+
|
3858
4203
|
<xsl:apply-templates/>
|
3859
4204
|
</fo:inline>
|
3860
4205
|
</xsl:template><xsl:template match="*[local-name()='sup']">
|
@@ -4183,7 +4528,18 @@
|
|
4183
4528
|
<xsl:with-param name="previousRow" select="$newRow"/>
|
4184
4529
|
</xsl:apply-templates>
|
4185
4530
|
</xsl:template><xsl:template name="getLang">
|
4186
|
-
<xsl:variable name="
|
4531
|
+
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
4532
|
+
<xsl:variable name="language">
|
4533
|
+
<xsl:choose>
|
4534
|
+
<xsl:when test="$language_current != ''">
|
4535
|
+
<xsl:value-of select="$language_current"/>
|
4536
|
+
</xsl:when>
|
4537
|
+
<xsl:otherwise>
|
4538
|
+
<xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
4539
|
+
</xsl:otherwise>
|
4540
|
+
</xsl:choose>
|
4541
|
+
</xsl:variable>
|
4542
|
+
|
4187
4543
|
<xsl:choose>
|
4188
4544
|
<xsl:when test="$language = 'English'">en</xsl:when>
|
4189
4545
|
<xsl:otherwise><xsl:value-of select="$language"/></xsl:otherwise>
|
@@ -4218,6 +4574,7 @@
|
|
4218
4574
|
<xsl:value-of select="substring($str, 2)"/>
|
4219
4575
|
</xsl:template><xsl:template match="mathml:math">
|
4220
4576
|
<fo:inline font-family="STIX Two Math"> <!-- -->
|
4577
|
+
|
4221
4578
|
<xsl:variable name="mathml">
|
4222
4579
|
<xsl:apply-templates select="." mode="mathml"/>
|
4223
4580
|
</xsl:variable>
|
@@ -4247,6 +4604,11 @@
|
|
4247
4604
|
</xsl:choose>
|
4248
4605
|
</xsl:variable>
|
4249
4606
|
<fo:inline xsl:use-attribute-sets="link-style">
|
4607
|
+
|
4608
|
+
<xsl:if test="ancestor::*[local-name()='feedback-statement']">
|
4609
|
+
<xsl:attribute name="color">blue</xsl:attribute>
|
4610
|
+
</xsl:if>
|
4611
|
+
|
4250
4612
|
<xsl:choose>
|
4251
4613
|
<xsl:when test="$target = ''">
|
4252
4614
|
<xsl:apply-templates/>
|
@@ -4300,10 +4662,14 @@
|
|
4300
4662
|
</fo:inline>
|
4301
4663
|
</xsl:template><xsl:template match="*[local-name() = 'modification']">
|
4302
4664
|
<xsl:variable name="title-modified">
|
4303
|
-
|
4304
|
-
|
4305
|
-
|
4665
|
+
|
4666
|
+
|
4667
|
+
<xsl:call-template name="getTitle">
|
4668
|
+
<xsl:with-param name="name" select="'title-modified'"/>
|
4669
|
+
</xsl:call-template>
|
4670
|
+
|
4306
4671
|
</xsl:variable>
|
4672
|
+
|
4307
4673
|
<xsl:choose>
|
4308
4674
|
<xsl:when test="$lang = 'zh'"><xsl:text>、</xsl:text><xsl:value-of select="$title-modified"/><xsl:text>—</xsl:text></xsl:when>
|
4309
4675
|
<xsl:otherwise><xsl:text>, </xsl:text><xsl:value-of select="$title-modified"/><xsl:text> — </xsl:text></xsl:otherwise>
|
@@ -4364,6 +4730,8 @@
|
|
4364
4730
|
|
4365
4731
|
|
4366
4732
|
|
4733
|
+
|
4734
|
+
|
4367
4735
|
<fo:inline xsl:use-attribute-sets="note-name-style">
|
4368
4736
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
4369
4737
|
</fo:inline>
|
@@ -4454,7 +4822,8 @@
|
|
4454
4822
|
</fo:inline>
|
4455
4823
|
</xsl:if>
|
4456
4824
|
</xsl:template><xsl:template match="*[local-name() = 'figure']">
|
4457
|
-
<fo:block-container id="{@id}">
|
4825
|
+
<fo:block-container id="{@id}">
|
4826
|
+
|
4458
4827
|
<fo:block>
|
4459
4828
|
<xsl:apply-templates/>
|
4460
4829
|
</fo:block>
|
@@ -4505,7 +4874,7 @@
|
|
4505
4874
|
<xsl:apply-templates mode="bookmarks"/>
|
4506
4875
|
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
|
4507
4876
|
<xsl:apply-templates select="."/>
|
4508
|
-
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
4877
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
4509
4878
|
<xsl:apply-templates mode="bookmarks"/>
|
4510
4879
|
</xsl:template><xsl:template name="addBookmarks">
|
4511
4880
|
<xsl:param name="contents"/>
|
@@ -4521,6 +4890,8 @@
|
|
4521
4890
|
<xsl:variable name="bookmark-title_">
|
4522
4891
|
<xsl:call-template name="getLangVersion">
|
4523
4892
|
<xsl:with-param name="lang" select="@lang"/>
|
4893
|
+
<xsl:with-param name="doctype" select="@doctype"/>
|
4894
|
+
<xsl:with-param name="title" select="@title-part"/>
|
4524
4895
|
</xsl:call-template>
|
4525
4896
|
</xsl:variable>
|
4526
4897
|
<xsl:choose>
|
@@ -4538,13 +4909,34 @@
|
|
4538
4909
|
</xsl:choose>
|
4539
4910
|
</fo:bookmark-title>
|
4540
4911
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4912
|
+
|
4913
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4914
|
+
<xsl:with-param name="contents" select="contents"/>
|
4915
|
+
</xsl:call-template>
|
4916
|
+
|
4917
|
+
<xsl:call-template name="insertTableBookmarks">
|
4918
|
+
<xsl:with-param name="contents" select="contents"/>
|
4919
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4920
|
+
</xsl:call-template>
|
4921
|
+
|
4541
4922
|
</fo:bookmark>
|
4542
4923
|
|
4543
4924
|
</xsl:for-each>
|
4544
4925
|
</xsl:when>
|
4545
4926
|
<xsl:otherwise>
|
4546
4927
|
<xsl:for-each select="xalan:nodeset($contents)/doc">
|
4928
|
+
|
4547
4929
|
<xsl:apply-templates select="contents/item" mode="bookmark"/>
|
4930
|
+
|
4931
|
+
<xsl:call-template name="insertFigureBookmarks">
|
4932
|
+
<xsl:with-param name="contents" select="contents"/>
|
4933
|
+
</xsl:call-template>
|
4934
|
+
|
4935
|
+
<xsl:call-template name="insertTableBookmarks">
|
4936
|
+
<xsl:with-param name="contents" select="contents"/>
|
4937
|
+
<xsl:with-param name="lang" select="@lang"/>
|
4938
|
+
</xsl:call-template>
|
4939
|
+
|
4548
4940
|
</xsl:for-each>
|
4549
4941
|
</xsl:otherwise>
|
4550
4942
|
</xsl:choose>
|
@@ -4556,42 +4948,51 @@
|
|
4556
4948
|
|
4557
4949
|
|
4558
4950
|
|
4559
|
-
<xsl:if test="//*[local-name() = 'figure'][@id and *[local-name() = 'name']]">
|
4560
|
-
<fo:bookmark internal-destination="{//*[local-name() = 'figure'][@id and *[local-name() = 'name']][1]/@id}" starting-state="hide">
|
4561
|
-
<fo:bookmark-title>Figures</fo:bookmark-title>
|
4562
|
-
<xsl:for-each select="//*[local-name() = 'figure'][@id and *[local-name() = 'name']]">
|
4563
|
-
<fo:bookmark internal-destination="{@id}">
|
4564
|
-
<fo:bookmark-title><xsl:apply-templates select="*[local-name() = 'name']/text()" mode="bookmarks"/></fo:bookmark-title>
|
4565
|
-
</fo:bookmark>
|
4566
|
-
</xsl:for-each>
|
4567
|
-
</fo:bookmark>
|
4568
|
-
</xsl:if>
|
4569
4951
|
|
4570
4952
|
|
4571
|
-
|
4572
|
-
<xsl:if test="//*[local-name() = 'table'][@id and *[local-name() = 'name']]">
|
4573
|
-
<fo:bookmark internal-destination="{//*[local-name() = 'table'][@id and *[local-name() = 'name']][1]/@id}" starting-state="hide">
|
4574
|
-
<fo:bookmark-title>
|
4575
|
-
<xsl:choose>
|
4576
|
-
<xsl:when test="@lang = 'fr'">Tableaux</xsl:when>
|
4577
|
-
<xsl:otherwise>Tables</xsl:otherwise>
|
4578
|
-
</xsl:choose>
|
4579
|
-
</fo:bookmark-title>
|
4580
|
-
<xsl:for-each select="//*[local-name() = 'table'][@id and *[local-name() = 'name']]">
|
4581
|
-
<fo:bookmark internal-destination="{@id}">
|
4582
|
-
<fo:bookmark-title><xsl:apply-templates select="*[local-name() = 'name']//text()" mode="bookmarks"/></fo:bookmark-title>
|
4583
|
-
</fo:bookmark>
|
4584
|
-
</xsl:for-each>
|
4585
|
-
</fo:bookmark>
|
4586
|
-
</xsl:if>
|
4587
|
-
|
4588
4953
|
|
4589
4954
|
|
4590
4955
|
|
4591
4956
|
</fo:bookmark-tree>
|
4592
4957
|
</xsl:if>
|
4958
|
+
</xsl:template><xsl:template name="insertFigureBookmarks">
|
4959
|
+
<xsl:param name="contents"/>
|
4960
|
+
<xsl:if test="xalan:nodeset($contents)/figure">
|
4961
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/figure[1]/@id}" starting-state="hide">
|
4962
|
+
<fo:bookmark-title>Figures</fo:bookmark-title>
|
4963
|
+
<xsl:for-each select="xalan:nodeset($contents)/figure">
|
4964
|
+
<fo:bookmark internal-destination="{@id}">
|
4965
|
+
<fo:bookmark-title>
|
4966
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4967
|
+
</fo:bookmark-title>
|
4968
|
+
</fo:bookmark>
|
4969
|
+
</xsl:for-each>
|
4970
|
+
</fo:bookmark>
|
4971
|
+
</xsl:if>
|
4972
|
+
</xsl:template><xsl:template name="insertTableBookmarks">
|
4973
|
+
<xsl:param name="contents"/>
|
4974
|
+
<xsl:param name="lang"/>
|
4975
|
+
<xsl:if test="xalan:nodeset($contents)/table">
|
4976
|
+
<fo:bookmark internal-destination="{xalan:nodeset($contents)/table[1]/@id}" starting-state="hide">
|
4977
|
+
<fo:bookmark-title>
|
4978
|
+
<xsl:choose>
|
4979
|
+
<xsl:when test="$lang = 'fr'">Tableaux</xsl:when>
|
4980
|
+
<xsl:otherwise>Tables</xsl:otherwise>
|
4981
|
+
</xsl:choose>
|
4982
|
+
</fo:bookmark-title>
|
4983
|
+
<xsl:for-each select="xalan:nodeset($contents)/table">
|
4984
|
+
<fo:bookmark internal-destination="{@id}">
|
4985
|
+
<fo:bookmark-title>
|
4986
|
+
<xsl:value-of select="normalize-space(title)"/>
|
4987
|
+
</fo:bookmark-title>
|
4988
|
+
</fo:bookmark>
|
4989
|
+
</xsl:for-each>
|
4990
|
+
</fo:bookmark>
|
4991
|
+
</xsl:if>
|
4593
4992
|
</xsl:template><xsl:template name="getLangVersion">
|
4594
4993
|
<xsl:param name="lang"/>
|
4994
|
+
<xsl:param name="doctype" select="''"/>
|
4995
|
+
<xsl:param name="title" select="''"/>
|
4595
4996
|
<xsl:choose>
|
4596
4997
|
<xsl:when test="$lang = 'en'">
|
4597
4998
|
English
|
@@ -5055,9 +5456,14 @@
|
|
5055
5456
|
|
5056
5457
|
<fo:inline>
|
5057
5458
|
|
5058
|
-
|
5059
|
-
|
5060
|
-
|
5459
|
+
|
5460
|
+
|
5461
|
+
|
5462
|
+
<xsl:call-template name="getTitle">
|
5463
|
+
<xsl:with-param name="name" select="'title-source'"/>
|
5464
|
+
</xsl:call-template>
|
5465
|
+
|
5466
|
+
|
5061
5467
|
<xsl:text>: </xsl:text>
|
5062
5468
|
</fo:inline>
|
5063
5469
|
|
@@ -5082,7 +5488,8 @@
|
|
5082
5488
|
<fo:block-container margin-left="0mm">
|
5083
5489
|
|
5084
5490
|
<fo:block xsl:use-attribute-sets="quote-style">
|
5085
|
-
<xsl:apply-templates select=".//*[local-name() = 'p']"/>
|
5491
|
+
<!-- <xsl:apply-templates select=".//*[local-name() = 'p']"/> -->
|
5492
|
+
<xsl:apply-templates select="./*[not(local-name() = 'author') and not(local-name() = 'source')]"/> <!-- process all nested nodes, except author and source -->
|
5086
5493
|
</fo:block>
|
5087
5494
|
<xsl:if test="*[local-name() = 'author'] or *[local-name() = 'source']">
|
5088
5495
|
<fo:block xsl:use-attribute-sets="quote-source-style">
|
@@ -5208,9 +5615,12 @@
|
|
5208
5615
|
</fo:block>
|
5209
5616
|
</xsl:template><xsl:template match="*[local-name() = 'deprecates']">
|
5210
5617
|
<xsl:variable name="title-deprecated">
|
5211
|
-
|
5212
|
-
|
5213
|
-
|
5618
|
+
|
5619
|
+
|
5620
|
+
<xsl:call-template name="getTitle">
|
5621
|
+
<xsl:with-param name="name" select="'title-deprecated'"/>
|
5622
|
+
</xsl:call-template>
|
5623
|
+
|
5214
5624
|
</xsl:variable>
|
5215
5625
|
<fo:block xsl:use-attribute-sets="deprecates-style">
|
5216
5626
|
<xsl:value-of select="$title-deprecated"/>: <xsl:apply-templates/>
|
@@ -5259,7 +5669,7 @@
|
|
5259
5669
|
<fo:block id="{@id}">
|
5260
5670
|
<xsl:apply-templates/>
|
5261
5671
|
</fo:block>
|
5262
|
-
</xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
|
5672
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" priority="3"/><xsl:template match="*[local-name() = 'bibitem'][@hidden='true']" priority="3"/><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
|
5263
5673
|
|
5264
5674
|
<fo:block id="{@id}">
|
5265
5675
|
<xsl:apply-templates/>
|
@@ -5316,7 +5726,8 @@
|
|
5316
5726
|
<fo:table-column column-width="107mm"/>
|
5317
5727
|
<fo:table-column column-width="15mm"/>
|
5318
5728
|
<fo:table-body>
|
5319
|
-
<fo:table-row
|
5729
|
+
<fo:table-row text-align="center" font-weight="bold" background-color="black" color="white">
|
5730
|
+
|
5320
5731
|
<fo:table-cell border="1pt solid black"><fo:block>Date</fo:block></fo:table-cell>
|
5321
5732
|
<fo:table-cell border="1pt solid black"><fo:block>Type</fo:block></fo:table-cell>
|
5322
5733
|
<fo:table-cell border="1pt solid black"><fo:block>Change</fo:block></fo:table-cell>
|
@@ -5334,6 +5745,10 @@
|
|
5334
5745
|
<fo:block><xsl:apply-templates/></fo:block>
|
5335
5746
|
</fo:table-cell>
|
5336
5747
|
</xsl:template><xsl:template name="processBibitem">
|
5748
|
+
|
5749
|
+
|
5750
|
+
<!-- end BIPM bibitem processing-->
|
5751
|
+
|
5337
5752
|
|
5338
5753
|
|
5339
5754
|
|
@@ -5571,13 +5986,22 @@
|
|
5571
5986
|
</xsl:template><xsl:template name="split">
|
5572
5987
|
<xsl:param name="pText" select="."/>
|
5573
5988
|
<xsl:param name="sep" select="','"/>
|
5989
|
+
<xsl:param name="normalize-space" select="'true'"/>
|
5574
5990
|
<xsl:if test="string-length($pText) >0">
|
5575
5991
|
<item>
|
5576
|
-
<xsl:
|
5992
|
+
<xsl:choose>
|
5993
|
+
<xsl:when test="$normalize-space = 'true'">
|
5994
|
+
<xsl:value-of select="normalize-space(substring-before(concat($pText, $sep), $sep))"/>
|
5995
|
+
</xsl:when>
|
5996
|
+
<xsl:otherwise>
|
5997
|
+
<xsl:value-of select="substring-before(concat($pText, $sep), $sep)"/>
|
5998
|
+
</xsl:otherwise>
|
5999
|
+
</xsl:choose>
|
5577
6000
|
</item>
|
5578
6001
|
<xsl:call-template name="split">
|
5579
6002
|
<xsl:with-param name="pText" select="substring-after($pText, $sep)"/>
|
5580
6003
|
<xsl:with-param name="sep" select="$sep"/>
|
6004
|
+
<xsl:with-param name="normalize-space" select="$normalize-space"/>
|
5581
6005
|
</xsl:call-template>
|
5582
6006
|
</xsl:if>
|
5583
6007
|
</xsl:template><xsl:template name="getDocumentId">
|
@@ -5643,4 +6067,23 @@
|
|
5643
6067
|
<xsl:with-param name="letter-spacing" select="$letter-spacing"/>
|
5644
6068
|
</xsl:call-template>
|
5645
6069
|
</xsl:if>
|
6070
|
+
</xsl:template><xsl:template name="repeat">
|
6071
|
+
<xsl:param name="char" select="'*'"/>
|
6072
|
+
<xsl:param name="count"/>
|
6073
|
+
<xsl:if test="$count > 0">
|
6074
|
+
<xsl:value-of select="$char"/>
|
6075
|
+
<xsl:call-template name="repeat">
|
6076
|
+
<xsl:with-param name="char" select="$char"/>
|
6077
|
+
<xsl:with-param name="count" select="$count - 1"/>
|
6078
|
+
</xsl:call-template>
|
6079
|
+
</xsl:if>
|
6080
|
+
</xsl:template><xsl:template name="getLocalizedString">
|
6081
|
+
<xsl:param name="key"/>
|
6082
|
+
|
6083
|
+
<xsl:variable name="curr_lang">
|
6084
|
+
<xsl:call-template name="getLang"/>
|
6085
|
+
</xsl:variable>
|
6086
|
+
|
6087
|
+
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
6088
|
+
|
5646
6089
|
</xsl:template></xsl:stylesheet>
|