metanorma-bipm 2.1.2 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/bipm/base_convert.rb +1 -7
- data/lib/isodoc/bipm/bipm.brochure.xsl +387 -131
- data/lib/isodoc/bipm/bipm.guide.xsl +387 -131
- data/lib/isodoc/bipm/bipm.mise-en-pratique.xsl +387 -131
- data/lib/isodoc/bipm/bipm.rapport.xsl +387 -131
- data/lib/isodoc/bipm/html_convert.rb +4 -4
- data/lib/isodoc/bipm/init.rb +6 -0
- data/lib/isodoc/bipm/jcgm.standard.xsl +331 -112
- data/lib/isodoc/bipm/presentation_xml_convert.rb +3 -5
- data/lib/isodoc/bipm/xref.rb +22 -28
- data/lib/metanorma/bipm/biblio.rng +102 -5
- data/lib/metanorma/bipm/isodoc.rng +33 -0
- data/lib/metanorma/bipm/version.rb +1 -1
- metadata +3 -3
@@ -949,7 +949,9 @@
|
|
949
949
|
|
950
950
|
<xsl:call-template name="insertFootnoteSeparator"/>
|
951
951
|
|
952
|
-
<xsl:call-template name="insertHeaderDraftWatermark"
|
952
|
+
<xsl:call-template name="insertHeaderDraftWatermark">
|
953
|
+
<xsl:with-param name="lang" select="$curr_lang"/>
|
954
|
+
</xsl:call-template>
|
953
955
|
|
954
956
|
<fo:flow flow-name="xsl-region-body" font-family="Arial">
|
955
957
|
|
@@ -1154,7 +1156,7 @@
|
|
1154
1156
|
<xsl:apply-templates select="bipm:annex" mode="sections"/>
|
1155
1157
|
|
1156
1158
|
<!-- Bibliography -->
|
1157
|
-
<xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
|
1159
|
+
<xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
|
1158
1160
|
<xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
|
1159
1161
|
</xsl:if>
|
1160
1162
|
|
@@ -1164,6 +1166,7 @@
|
|
1164
1166
|
<!-- Index -->
|
1165
1167
|
<xsl:apply-templates select="xalan:nodeset($indexes)/doc[@id = $docid]//bipm:indexsect" mode="index">
|
1166
1168
|
<xsl:with-param name="isDraft" select="normalize-space(//bipm:bipm-standard/bipm:bibdata/bipm:version/bipm:draft or contains(//bipm:bipm-standard/bipm:bibdata/bipm:status/bipm:stage, 'draft') or contains(//bipm:bipm-standard/bipm:bibdata/bipm:status/bipm:stage, 'projet'))"/>
|
1169
|
+
<xsl:with-param name="lang" select="$curr_lang"/>
|
1167
1170
|
</xsl:apply-templates>
|
1168
1171
|
|
1169
1172
|
<!-- End Document Pages -->
|
@@ -1314,7 +1317,7 @@
|
|
1314
1317
|
|
1315
1318
|
<xsl:apply-templates select="bipm:annex" mode="sections"/>
|
1316
1319
|
|
1317
|
-
<xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
|
1320
|
+
<xsl:if test="bipm:bibliography/bipm:references[not(@normative='true')][not(@hidden='true')]/bipm:bibitem[not(contains(bipm:docidentifier, 'si-brochure-'))]">
|
1318
1321
|
<xsl:apply-templates select="bipm:bibliography/bipm:references[not(@normative='true')]" mode="sections"/>
|
1319
1322
|
</xsl:if>
|
1320
1323
|
|
@@ -1324,6 +1327,7 @@
|
|
1324
1327
|
<!-- Index -->
|
1325
1328
|
<xsl:apply-templates select="xalan:nodeset($indexes)/doc[@id = $docid]//bipm:indexsect" mode="index">
|
1326
1329
|
<xsl:with-param name="isDraft" select="normalize-space(//bipm:bipm-standard/bipm:bibdata/bipm:version/bipm:draft or contains(//bipm:bipm-standard/bipm:bibdata/bipm:status/bipm:stage, 'draft') or contains(//bipm:bipm-standard/bipm:bibdata/bipm:status/bipm:stage, 'projet'))"/>
|
1330
|
+
<xsl:with-param name="lang" select="$curr_lang"/>
|
1327
1331
|
</xsl:apply-templates>
|
1328
1332
|
|
1329
1333
|
</xsl:otherwise>
|
@@ -1640,7 +1644,9 @@
|
|
1640
1644
|
</fo:block>
|
1641
1645
|
</fo:block-container>
|
1642
1646
|
|
1643
|
-
<xsl:call-template name="insertDraftWatermark"
|
1647
|
+
<xsl:call-template name="insertDraftWatermark">
|
1648
|
+
<xsl:with-param name="lang" select="$doc_split_by_language"/>
|
1649
|
+
</xsl:call-template>
|
1644
1650
|
|
1645
1651
|
<!-- BIPM logo -->
|
1646
1652
|
<fo:block-container absolute-position="fixed" left="12.8mm" top="12.2mm">
|
@@ -3273,9 +3279,11 @@
|
|
3273
3279
|
<xsl:param name="header-title"/>
|
3274
3280
|
<xsl:param name="orientation"/>
|
3275
3281
|
<xsl:param name="isDraft"/>
|
3282
|
+
<xsl:param name="lang"/>
|
3276
3283
|
<fo:static-content flow-name="header-odd" role="artifact">
|
3277
3284
|
<xsl:call-template name="insertDraftWatermark">
|
3278
3285
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
3286
|
+
<xsl:with-param name="lang" select="$lang"/>
|
3279
3287
|
</xsl:call-template>
|
3280
3288
|
<fo:block-container font-family="Arial" font-size="8pt" padding-top="12.5mm">
|
3281
3289
|
<fo:block text-align="right">
|
@@ -3296,6 +3304,7 @@
|
|
3296
3304
|
<fo:static-content flow-name="header-even" role="artifact">
|
3297
3305
|
<xsl:call-template name="insertDraftWatermark">
|
3298
3306
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
3307
|
+
<xsl:with-param name="lang" select="$lang"/>
|
3299
3308
|
</xsl:call-template>
|
3300
3309
|
<fo:block-container font-family="Arial" font-size="8pt" padding-top="12.5mm">
|
3301
3310
|
<fo:block>
|
@@ -3313,6 +3322,7 @@
|
|
3313
3322
|
<fo:static-content flow-name="header-blank" role="artifact">
|
3314
3323
|
<xsl:call-template name="insertDraftWatermark">
|
3315
3324
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
3325
|
+
<xsl:with-param name="lang" select="$lang"/>
|
3316
3326
|
</xsl:call-template>
|
3317
3327
|
<fo:block/>
|
3318
3328
|
</fo:static-content>
|
@@ -3320,12 +3330,23 @@
|
|
3320
3330
|
|
3321
3331
|
<xsl:template name="insertDraftWatermark">
|
3322
3332
|
<xsl:param name="isDraft"/>
|
3333
|
+
<xsl:param name="lang"/>
|
3323
3334
|
<xsl:if test="$isDraft = 'true' or normalize-space(//bipm:bipm-standard/bipm:bibdata/bipm:version/bipm:draft or contains(//bipm:bipm-standard/bipm:bibdata/bipm:status/bipm:stage, 'draft') or contains(//bipm:bipm-standard/bipm:bibdata/bipm:status/bipm:stage, 'projet')) = 'true'">
|
3324
3335
|
<!-- DRAFT -->
|
3325
3336
|
<xsl:variable name="draft_label">
|
3326
|
-
<xsl:
|
3327
|
-
<xsl:
|
3328
|
-
|
3337
|
+
<xsl:choose>
|
3338
|
+
<xsl:when test="normalize-space($lang) != ''">
|
3339
|
+
<xsl:call-template name="getLocalizedString">
|
3340
|
+
<xsl:with-param name="key">draft_label</xsl:with-param>
|
3341
|
+
<xsl:with-param name="lang" select="$lang"/>
|
3342
|
+
</xsl:call-template>
|
3343
|
+
</xsl:when>
|
3344
|
+
<xsl:otherwise>
|
3345
|
+
<xsl:call-template name="getLocalizedString">
|
3346
|
+
<xsl:with-param name="key">draft_label</xsl:with-param>
|
3347
|
+
</xsl:call-template>
|
3348
|
+
</xsl:otherwise>
|
3349
|
+
</xsl:choose>
|
3329
3350
|
</xsl:variable>
|
3330
3351
|
<fo:block-container absolute-position="fixed" left="0mm" top="30mm">
|
3331
3352
|
<fo:block line-height="0">
|
@@ -3355,25 +3376,30 @@
|
|
3355
3376
|
|
3356
3377
|
<xsl:template name="insertHeaderDraftWatermark">
|
3357
3378
|
<xsl:variable name="isDraft" select="normalize-space(//bipm:bipm-standard/bipm:bibdata/bipm:version/bipm:draft or contains(//bipm:bipm-standard/bipm:bibdata/bipm:status/bipm:stage, 'draft') or contains(//bipm:bipm-standard/bipm:bibdata/bipm:status/bipm:stage, 'projet'))"/>
|
3379
|
+
<xsl:variable name="curr_lang" select="$doc_split_by_language"/>
|
3358
3380
|
<xsl:if test="$isDraft = 'true'">
|
3359
3381
|
<fo:static-content flow-name="header-blank" role="artifact">
|
3360
3382
|
<xsl:call-template name="insertDraftWatermark">
|
3361
3383
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
3384
|
+
<xsl:with-param name="lang" select="$curr_lang"/>
|
3362
3385
|
</xsl:call-template>
|
3363
3386
|
</fo:static-content>
|
3364
3387
|
<fo:static-content flow-name="header" role="artifact">
|
3365
3388
|
<xsl:call-template name="insertDraftWatermark">
|
3366
3389
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
3390
|
+
<xsl:with-param name="lang" select="$curr_lang"/>
|
3367
3391
|
</xsl:call-template>
|
3368
3392
|
</fo:static-content>
|
3369
3393
|
<fo:static-content flow-name="header-odd" role="artifact">
|
3370
3394
|
<xsl:call-template name="insertDraftWatermark">
|
3371
3395
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
3396
|
+
<xsl:with-param name="lang" select="$curr_lang"/>
|
3372
3397
|
</xsl:call-template>
|
3373
3398
|
</fo:static-content>
|
3374
3399
|
<fo:static-content flow-name="header-even" role="artifact">
|
3375
3400
|
<xsl:call-template name="insertDraftWatermark">
|
3376
3401
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
3402
|
+
<xsl:with-param name="lang" select="$curr_lang"/>
|
3377
3403
|
</xsl:call-template>
|
3378
3404
|
</fo:static-content>
|
3379
3405
|
</xsl:if>
|
@@ -3426,6 +3452,7 @@
|
|
3426
3452
|
<xsl:template match="bipm:indexsect"/>
|
3427
3453
|
<xsl:template match="bipm:indexsect" mode="index">
|
3428
3454
|
<xsl:param name="isDraft"/>
|
3455
|
+
<xsl:param name="lang"/>
|
3429
3456
|
|
3430
3457
|
<fo:page-sequence master-reference="index" force-page-count="no-force">
|
3431
3458
|
<xsl:variable name="header-title">
|
@@ -3441,6 +3468,7 @@
|
|
3441
3468
|
<xsl:call-template name="insertHeaderFooter">
|
3442
3469
|
<xsl:with-param name="header-title" select="$header-title"/>
|
3443
3470
|
<xsl:with-param name="isDraft" select="$isDraft"/>
|
3471
|
+
<xsl:with-param name="lang" select="$lang"/>
|
3444
3472
|
</xsl:call-template>
|
3445
3473
|
|
3446
3474
|
<fo:flow flow-name="xsl-region-body">
|
@@ -3963,9 +3991,10 @@
|
|
3963
3991
|
<xsl:value-of select="$titles/*[local-name() = $name][@lang = 'en']"/>
|
3964
3992
|
</xsl:otherwise>
|
3965
3993
|
</xsl:choose>
|
3966
|
-
</xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:attribute-set name="root-style">
|
3994
|
+
</xsl:template><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="font_noto_sans">Noto Sans, Noto Sans HK, Noto Sans JP, Noto Sans KR, Noto Sans SC, Noto Sans TC</xsl:variable><xsl:variable name="font_noto_sans_mono">Noto Sans Mono, Noto Sans Mono CJK HK, Noto Sans Mono CJK JP, Noto Sans Mono CJK KR, Noto Sans Mono CJK SC, Noto Sans Mono CJK TC</xsl:variable><xsl:variable name="font_noto_serif">Noto Serif, Noto Serif HK, Noto Serif JP, Noto Serif KR, Noto Serif SC, Noto Serif TC</xsl:variable><xsl:attribute-set name="root-style">
|
3967
3995
|
|
3968
|
-
<xsl:attribute name="font-family">Times New Roman, STIX Two Math,
|
3996
|
+
<xsl:attribute name="font-family">Times New Roman, STIX Two Math, <xsl:value-of select="$font_noto_serif"/></xsl:attribute>
|
3997
|
+
<xsl:attribute name="font-family-generic">Serif</xsl:attribute>
|
3969
3998
|
<xsl:attribute name="font-size">10.5pt</xsl:attribute>
|
3970
3999
|
|
3971
4000
|
|
@@ -3983,6 +4012,7 @@
|
|
3983
4012
|
|
3984
4013
|
|
3985
4014
|
|
4015
|
+
|
3986
4016
|
</xsl:attribute-set><xsl:template name="insertRootStyle">
|
3987
4017
|
<xsl:param name="root-style"/>
|
3988
4018
|
<xsl:variable name="root-style_" select="xalan:nodeset($root-style)"/>
|
@@ -3994,17 +4024,60 @@
|
|
3994
4024
|
</xsl:variable>
|
3995
4025
|
<xsl:variable name="additional_fonts" select="normalize-space($additional_fonts_)"/>
|
3996
4026
|
|
4027
|
+
<xsl:variable name="font_family_generic" select="$root-style_/root-style/@font-family-generic"/>
|
4028
|
+
|
3997
4029
|
<xsl:for-each select="$root-style_/root-style/@*">
|
4030
|
+
|
3998
4031
|
<xsl:choose>
|
3999
|
-
<xsl:when test="local-name() = 'font-family'
|
4032
|
+
<xsl:when test="local-name() = 'font-family-generic'"><!-- skip, it's using for determine 'sans' or 'serif' --></xsl:when>
|
4033
|
+
<xsl:when test="local-name() = 'font-family'">
|
4034
|
+
|
4035
|
+
<xsl:variable name="font_regional_prefix">
|
4036
|
+
<xsl:choose>
|
4037
|
+
<xsl:when test="$font_family_generic = 'Sans'">Noto Sans</xsl:when>
|
4038
|
+
<xsl:otherwise>Noto Serif</xsl:otherwise>
|
4039
|
+
</xsl:choose>
|
4040
|
+
</xsl:variable>
|
4041
|
+
|
4000
4042
|
<xsl:attribute name="{local-name()}">
|
4001
|
-
|
4043
|
+
|
4044
|
+
<xsl:variable name="font_extended">
|
4045
|
+
<xsl:choose>
|
4046
|
+
<xsl:when test="$lang = 'zh'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
4047
|
+
<xsl:when test="$lang = 'hk'"><xsl:value-of select="$font_regional_prefix"/> HK</xsl:when>
|
4048
|
+
<xsl:when test="$lang = 'jp'"><xsl:value-of select="$font_regional_prefix"/> JP</xsl:when>
|
4049
|
+
<xsl:when test="$lang = 'kr'"><xsl:value-of select="$font_regional_prefix"/> KR</xsl:when>
|
4050
|
+
<xsl:when test="$lang = 'sc'"><xsl:value-of select="$font_regional_prefix"/> SC</xsl:when>
|
4051
|
+
<xsl:when test="$lang = 'tc'"><xsl:value-of select="$font_regional_prefix"/> TC</xsl:when>
|
4052
|
+
</xsl:choose>
|
4053
|
+
</xsl:variable>
|
4054
|
+
<xsl:if test="normalize-space($font_extended) != ''">
|
4055
|
+
<xsl:value-of select="$font_regional_prefix"/><xsl:text>, </xsl:text>
|
4056
|
+
<xsl:value-of select="$font_extended"/><xsl:text>, </xsl:text>
|
4057
|
+
</xsl:if>
|
4058
|
+
|
4059
|
+
<xsl:value-of select="."/>
|
4060
|
+
|
4061
|
+
<xsl:if test="$additional_fonts != ''">
|
4062
|
+
<xsl:text>, </xsl:text><xsl:value-of select="$additional_fonts"/>
|
4063
|
+
</xsl:if>
|
4002
4064
|
</xsl:attribute>
|
4003
4065
|
</xsl:when>
|
4004
4066
|
<xsl:otherwise>
|
4005
4067
|
<xsl:copy-of select="."/>
|
4006
4068
|
</xsl:otherwise>
|
4007
4069
|
</xsl:choose>
|
4070
|
+
|
4071
|
+
<!-- <xsl:choose>
|
4072
|
+
<xsl:when test="local-name() = 'font-family'">
|
4073
|
+
<xsl:attribute name="{local-name()}">
|
4074
|
+
<xsl:value-of select="."/>, <xsl:value-of select="$additional_fonts"/>
|
4075
|
+
</xsl:attribute>
|
4076
|
+
</xsl:when>
|
4077
|
+
<xsl:otherwise>
|
4078
|
+
<xsl:copy-of select="."/>
|
4079
|
+
</xsl:otherwise>
|
4080
|
+
</xsl:choose> -->
|
4008
4081
|
</xsl:for-each>
|
4009
4082
|
</xsl:template><xsl:attribute-set name="copyright-statement-style">
|
4010
4083
|
|
@@ -4090,6 +4163,7 @@
|
|
4090
4163
|
|
4091
4164
|
|
4092
4165
|
|
4166
|
+
|
4093
4167
|
|
4094
4168
|
|
4095
4169
|
|
@@ -4104,7 +4178,10 @@
|
|
4104
4178
|
|
4105
4179
|
</xsl:attribute-set><xsl:attribute-set name="requirement-style">
|
4106
4180
|
|
4181
|
+
|
4107
4182
|
</xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
|
4183
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4184
|
+
|
4108
4185
|
|
4109
4186
|
</xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
|
4110
4187
|
|
@@ -4130,6 +4207,7 @@
|
|
4130
4207
|
|
4131
4208
|
|
4132
4209
|
|
4210
|
+
|
4133
4211
|
|
4134
4212
|
</xsl:attribute-set><xsl:attribute-set name="example-style">
|
4135
4213
|
|
@@ -4144,6 +4222,7 @@
|
|
4144
4222
|
|
4145
4223
|
|
4146
4224
|
|
4225
|
+
|
4147
4226
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
4148
4227
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
4149
4228
|
|
@@ -4167,6 +4246,7 @@
|
|
4167
4246
|
|
4168
4247
|
|
4169
4248
|
|
4249
|
+
|
4170
4250
|
|
4171
4251
|
|
4172
4252
|
|
@@ -4195,10 +4275,12 @@
|
|
4195
4275
|
|
4196
4276
|
|
4197
4277
|
|
4278
|
+
|
4198
4279
|
|
4199
4280
|
|
4200
4281
|
</xsl:attribute-set><xsl:variable name="table-border_">
|
4201
4282
|
|
4283
|
+
|
4202
4284
|
</xsl:variable><xsl:variable name="table-border" select="normalize-space($table-border_)"/><xsl:attribute-set name="table-container-style">
|
4203
4285
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
4204
4286
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -4223,6 +4305,7 @@
|
|
4223
4305
|
|
4224
4306
|
|
4225
4307
|
|
4308
|
+
|
4226
4309
|
|
4227
4310
|
|
4228
4311
|
|
@@ -4251,6 +4334,7 @@
|
|
4251
4334
|
|
4252
4335
|
|
4253
4336
|
|
4337
|
+
|
4254
4338
|
|
4255
4339
|
|
4256
4340
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
@@ -4259,6 +4343,7 @@
|
|
4259
4343
|
|
4260
4344
|
|
4261
4345
|
|
4346
|
+
|
4262
4347
|
|
4263
4348
|
|
4264
4349
|
|
@@ -4344,6 +4429,7 @@
|
|
4344
4429
|
|
4345
4430
|
|
4346
4431
|
|
4432
|
+
|
4347
4433
|
</xsl:attribute-set><xsl:attribute-set name="table-footer-cell-style">
|
4348
4434
|
<xsl:attribute name="border">solid black 1pt</xsl:attribute>
|
4349
4435
|
<xsl:attribute name="padding-left">1mm</xsl:attribute>
|
@@ -4358,7 +4444,7 @@
|
|
4358
4444
|
|
4359
4445
|
|
4360
4446
|
|
4361
|
-
|
4447
|
+
|
4362
4448
|
|
4363
4449
|
|
4364
4450
|
|
@@ -4376,6 +4462,7 @@
|
|
4376
4462
|
|
4377
4463
|
|
4378
4464
|
|
4465
|
+
|
4379
4466
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-style">
|
4380
4467
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
4381
4468
|
|
@@ -4389,6 +4476,8 @@
|
|
4389
4476
|
|
4390
4477
|
|
4391
4478
|
|
4479
|
+
|
4480
|
+
|
4392
4481
|
</xsl:attribute-set><xsl:attribute-set name="table-fn-number-style">
|
4393
4482
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
4394
4483
|
<xsl:attribute name="padding-right">5mm</xsl:attribute>
|
@@ -4407,6 +4496,7 @@
|
|
4407
4496
|
|
4408
4497
|
|
4409
4498
|
|
4499
|
+
|
4410
4500
|
</xsl:attribute-set><xsl:attribute-set name="fn-container-body-style">
|
4411
4501
|
<xsl:attribute name="text-indent">0</xsl:attribute>
|
4412
4502
|
<xsl:attribute name="start-indent">0</xsl:attribute>
|
@@ -4442,6 +4532,7 @@
|
|
4442
4532
|
|
4443
4533
|
|
4444
4534
|
|
4535
|
+
|
4445
4536
|
</xsl:attribute-set><xsl:attribute-set name="dl-name-style">
|
4446
4537
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4447
4538
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
@@ -4450,6 +4541,7 @@
|
|
4450
4541
|
|
4451
4542
|
|
4452
4543
|
|
4544
|
+
|
4453
4545
|
|
4454
4546
|
|
4455
4547
|
|
@@ -4490,6 +4582,7 @@
|
|
4490
4582
|
|
4491
4583
|
|
4492
4584
|
|
4585
|
+
|
4493
4586
|
|
4494
4587
|
|
4495
4588
|
|
@@ -4529,7 +4622,8 @@
|
|
4529
4622
|
|
4530
4623
|
|
4531
4624
|
|
4532
|
-
|
4625
|
+
|
4626
|
+
|
4533
4627
|
|
4534
4628
|
|
4535
4629
|
|
@@ -4544,6 +4638,7 @@
|
|
4544
4638
|
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
4545
4639
|
|
4546
4640
|
|
4641
|
+
|
4547
4642
|
|
4548
4643
|
|
4549
4644
|
|
@@ -4556,6 +4651,8 @@
|
|
4556
4651
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
4557
4652
|
|
4558
4653
|
|
4654
|
+
</xsl:attribute-set><xsl:attribute-set name="termnote-p-style">
|
4655
|
+
|
4559
4656
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
4560
4657
|
<xsl:attribute name="margin-left">12mm</xsl:attribute>
|
4561
4658
|
<xsl:attribute name="margin-right">12mm</xsl:attribute>
|
@@ -4600,6 +4697,7 @@
|
|
4600
4697
|
<xsl:attribute name="text-align">left</xsl:attribute>
|
4601
4698
|
<xsl:attribute name="margin-left">19mm</xsl:attribute>
|
4602
4699
|
<xsl:attribute name="text-indent">-19mm</xsl:attribute>
|
4700
|
+
|
4603
4701
|
|
4604
4702
|
|
4605
4703
|
|
@@ -4644,6 +4742,7 @@
|
|
4644
4742
|
|
4645
4743
|
|
4646
4744
|
|
4745
|
+
|
4647
4746
|
</xsl:attribute-set><xsl:attribute-set name="formula-stem-number-style">
|
4648
4747
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
4649
4748
|
|
@@ -4662,16 +4761,16 @@
|
|
4662
4761
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
4663
4762
|
|
4664
4763
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
4764
|
+
<xsl:attribute name="width">100%</xsl:attribute>
|
4765
|
+
<xsl:attribute name="content-height">100%</xsl:attribute>
|
4766
|
+
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
4665
4767
|
|
4666
4768
|
|
4667
|
-
<xsl:attribute name="width">100%</xsl:attribute>
|
4668
4769
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
4669
|
-
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
4670
4770
|
|
4671
4771
|
|
4672
4772
|
|
4673
|
-
|
4674
|
-
|
4773
|
+
|
4675
4774
|
</xsl:attribute-set><xsl:attribute-set name="tt-style">
|
4676
4775
|
|
4677
4776
|
|
@@ -4750,6 +4849,7 @@
|
|
4750
4849
|
|
4751
4850
|
|
4752
4851
|
|
4852
|
+
|
4753
4853
|
</xsl:attribute-set><xsl:attribute-set name="list-name-style">
|
4754
4854
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4755
4855
|
|
@@ -4819,6 +4919,7 @@
|
|
4819
4919
|
|
4820
4920
|
|
4821
4921
|
|
4922
|
+
|
4822
4923
|
</xsl:attribute-set><xsl:attribute-set name="fn-body-style">
|
4823
4924
|
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
4824
4925
|
<xsl:attribute name="font-style">normal</xsl:attribute>
|
@@ -4847,6 +4948,7 @@
|
|
4847
4948
|
|
4848
4949
|
|
4849
4950
|
|
4951
|
+
|
4850
4952
|
</xsl:attribute-set><xsl:attribute-set name="fn-body-num-style">
|
4851
4953
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
4852
4954
|
|
@@ -4870,6 +4972,7 @@
|
|
4870
4972
|
|
4871
4973
|
|
4872
4974
|
|
4975
|
+
|
4873
4976
|
</xsl:attribute-set><xsl:attribute-set name="admonition-style">
|
4874
4977
|
|
4875
4978
|
|
@@ -4890,11 +4993,12 @@
|
|
4890
4993
|
|
4891
4994
|
|
4892
4995
|
|
4996
|
+
|
4893
4997
|
</xsl:attribute-set><xsl:attribute-set name="admonition-container-style">
|
4998
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
4999
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
4894
5000
|
|
4895
5001
|
|
4896
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
4897
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
4898
5002
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
4899
5003
|
<xsl:attribute name="padding-top">3mm</xsl:attribute>
|
4900
5004
|
|
@@ -4906,6 +5010,7 @@
|
|
4906
5010
|
|
4907
5011
|
|
4908
5012
|
|
5013
|
+
|
4909
5014
|
</xsl:attribute-set><xsl:attribute-set name="admonition-name-style">
|
4910
5015
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
4911
5016
|
|
@@ -4941,6 +5046,7 @@
|
|
4941
5046
|
|
4942
5047
|
|
4943
5048
|
|
5049
|
+
|
4944
5050
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-style">
|
4945
5051
|
|
4946
5052
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
@@ -4974,6 +5080,10 @@
|
|
4974
5080
|
|
4975
5081
|
|
4976
5082
|
|
5083
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
5084
|
+
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
5085
|
+
<xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
|
5086
|
+
</xsl:if> -->
|
4977
5087
|
|
4978
5088
|
|
4979
5089
|
|
@@ -5002,13 +5112,16 @@
|
|
5002
5112
|
|
5003
5113
|
|
5004
5114
|
|
5115
|
+
|
5005
5116
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-normative-list-body-style">
|
5006
5117
|
|
5007
5118
|
|
5119
|
+
|
5008
5120
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-non-normative-list-body-style">
|
5009
5121
|
|
5010
5122
|
|
5011
5123
|
|
5124
|
+
|
5012
5125
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-style">
|
5013
5126
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
5014
5127
|
<xsl:attribute name="font-size">65%</xsl:attribute>
|
@@ -5030,6 +5143,7 @@
|
|
5030
5143
|
|
5031
5144
|
|
5032
5145
|
|
5146
|
+
|
5033
5147
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-number-style">
|
5034
5148
|
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
5035
5149
|
|
@@ -5051,6 +5165,7 @@
|
|
5051
5165
|
|
5052
5166
|
|
5053
5167
|
|
5168
|
+
|
5054
5169
|
</xsl:attribute-set><xsl:attribute-set name="bibitem-note-fn-body-style">
|
5055
5170
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
5056
5171
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
@@ -5066,6 +5181,7 @@
|
|
5066
5181
|
|
5067
5182
|
|
5068
5183
|
|
5184
|
+
|
5069
5185
|
</xsl:attribute-set><xsl:attribute-set name="references-non-normative-style">
|
5070
5186
|
|
5071
5187
|
<xsl:attribute name="line-height">120%</xsl:attribute>
|
@@ -5523,6 +5639,8 @@
|
|
5523
5639
|
|
5524
5640
|
|
5525
5641
|
|
5642
|
+
|
5643
|
+
|
5526
5644
|
|
5527
5645
|
|
5528
5646
|
|
@@ -5569,6 +5687,8 @@
|
|
5569
5687
|
|
5570
5688
|
|
5571
5689
|
|
5690
|
+
|
5691
|
+
|
5572
5692
|
</xsl:element>
|
5573
5693
|
</xsl:variable>
|
5574
5694
|
|
@@ -5656,6 +5776,14 @@
|
|
5656
5776
|
|
5657
5777
|
|
5658
5778
|
|
5779
|
+
<xsl:if test="*[local-name()='bookmark']"> <!-- special case: table/bookmark -->
|
5780
|
+
<fo:block keep-with-previous="always" line-height="0.1">
|
5781
|
+
<xsl:for-each select="*[local-name()='bookmark']">
|
5782
|
+
<xsl:call-template name="bookmark"/>
|
5783
|
+
</xsl:for-each>
|
5784
|
+
</fo:block>
|
5785
|
+
</xsl:if>
|
5786
|
+
|
5659
5787
|
</fo:block-container>
|
5660
5788
|
</xsl:variable>
|
5661
5789
|
|
@@ -5711,30 +5839,36 @@
|
|
5711
5839
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']">
|
5712
5840
|
<xsl:param name="continued"/>
|
5713
5841
|
<xsl:if test="normalize-space() != ''">
|
5714
|
-
|
5715
|
-
|
5716
|
-
|
5717
|
-
<xsl:if test="not(*[local-name()='tab'])"> <!-- table without number -->
|
5718
|
-
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
5719
|
-
</xsl:if>
|
5720
|
-
<xsl:if test="not(../preceding-sibling::*) and ancestor::node()[@orientation]">
|
5721
|
-
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
5722
|
-
</xsl:if>
|
5723
|
-
|
5724
|
-
|
5725
|
-
|
5842
|
+
|
5843
|
+
|
5726
5844
|
|
5727
|
-
|
5728
|
-
|
5845
|
+
<fo:block xsl:use-attribute-sets="table-name-style">
|
5846
|
+
|
5729
5847
|
|
5730
|
-
|
5731
|
-
|
5732
|
-
|
5733
|
-
|
5734
|
-
|
5735
|
-
|
5848
|
+
<xsl:if test="not(*[local-name()='tab'])"> <!-- table without number -->
|
5849
|
+
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
5850
|
+
</xsl:if>
|
5851
|
+
<xsl:if test="not(../preceding-sibling::*) and ancestor::node()[@orientation]">
|
5852
|
+
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
5853
|
+
</xsl:if>
|
5854
|
+
|
5855
|
+
|
5856
|
+
|
5857
|
+
|
5858
|
+
<xsl:choose>
|
5859
|
+
<xsl:when test="$continued = 'true'">
|
5860
|
+
|
5861
|
+
</xsl:when>
|
5862
|
+
<xsl:otherwise>
|
5863
|
+
<xsl:apply-templates/>
|
5864
|
+
</xsl:otherwise>
|
5865
|
+
</xsl:choose>
|
5866
|
+
|
5867
|
+
|
5868
|
+
</fo:block>
|
5869
|
+
|
5736
5870
|
|
5737
|
-
|
5871
|
+
|
5738
5872
|
</xsl:if>
|
5739
5873
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
5740
5874
|
<xsl:param name="table-row"/>
|
@@ -6132,12 +6266,18 @@
|
|
6132
6266
|
<fo:table-row>
|
6133
6267
|
<fo:table-cell number-columns-spanned="{$cols-count}" border-left="1.5pt solid white" border-right="1.5pt solid white" border-top="1.5pt solid white" border-bottom="1.5pt solid black">
|
6134
6268
|
|
6135
|
-
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
6136
|
-
<xsl:with-param name="continued">true</xsl:with-param>
|
6137
|
-
</xsl:apply-templates>
|
6138
6269
|
|
6139
6270
|
|
6140
6271
|
|
6272
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']">
|
6273
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
6274
|
+
</xsl:apply-templates>
|
6275
|
+
|
6276
|
+
|
6277
|
+
|
6278
|
+
|
6279
|
+
|
6280
|
+
|
6141
6281
|
</fo:table-cell>
|
6142
6282
|
</fo:table-row>
|
6143
6283
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -6177,87 +6317,101 @@
|
|
6177
6317
|
</xsl:choose>
|
6178
6318
|
</xsl:variable>
|
6179
6319
|
|
6180
|
-
|
6181
|
-
|
6182
|
-
|
6320
|
+
|
6321
|
+
<xsl:variable name="tableWithNotesAndFootnotes">
|
6322
|
+
|
6323
|
+
<fo:table keep-with-previous="always">
|
6324
|
+
<xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
|
6325
|
+
<xsl:variable name="name" select="local-name()"/>
|
6326
|
+
<xsl:choose>
|
6327
|
+
<xsl:when test="$name = 'border-top'">
|
6328
|
+
<xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
|
6329
|
+
</xsl:when>
|
6330
|
+
<xsl:when test="$name = 'border'">
|
6331
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
6332
|
+
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
6333
|
+
</xsl:when>
|
6334
|
+
<xsl:otherwise>
|
6335
|
+
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
6336
|
+
</xsl:otherwise>
|
6337
|
+
</xsl:choose>
|
6338
|
+
</xsl:for-each>
|
6339
|
+
|
6340
|
+
|
6341
|
+
|
6183
6342
|
<xsl:choose>
|
6184
|
-
<xsl:when test="$name
|
6185
|
-
<xsl:
|
6186
|
-
|
6187
|
-
|
6188
|
-
<xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
|
6189
|
-
<xsl:attribute name="border-top">0pt solid black</xsl:attribute>
|
6343
|
+
<xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
|
6344
|
+
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
6345
|
+
<fo:table-column column-width="{@width}"/>
|
6346
|
+
</xsl:for-each>
|
6190
6347
|
</xsl:when>
|
6191
6348
|
<xsl:otherwise>
|
6192
|
-
|
6349
|
+
<!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
|
6350
|
+
<xsl:call-template name="insertTableColumnWidth">
|
6351
|
+
<xsl:with-param name="colwidths" select="$colwidths"/>
|
6352
|
+
</xsl:call-template>
|
6193
6353
|
</xsl:otherwise>
|
6194
6354
|
</xsl:choose>
|
6195
|
-
|
6196
|
-
|
6197
|
-
|
6198
|
-
|
6199
|
-
|
6200
|
-
|
6201
|
-
<xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
|
6202
|
-
<fo:table-column column-width="{@width}"/>
|
6203
|
-
</xsl:for-each>
|
6204
|
-
</xsl:when>
|
6205
|
-
<xsl:otherwise>
|
6206
|
-
<!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
|
6207
|
-
<xsl:call-template name="insertTableColumnWidth">
|
6208
|
-
<xsl:with-param name="colwidths" select="$colwidths"/>
|
6209
|
-
</xsl:call-template>
|
6210
|
-
</xsl:otherwise>
|
6211
|
-
</xsl:choose>
|
6212
|
-
|
6213
|
-
<fo:table-body>
|
6214
|
-
<fo:table-row>
|
6215
|
-
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
6216
|
-
|
6217
|
-
|
6355
|
+
|
6356
|
+
<fo:table-body>
|
6357
|
+
<fo:table-row>
|
6358
|
+
<fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
|
6359
|
+
|
6360
|
+
|
6218
6361
|
|
6219
|
-
|
6220
|
-
|
6221
|
-
<!-- fn will be processed inside 'note' processing -->
|
6222
|
-
|
6223
|
-
|
6224
|
-
|
6225
|
-
<xsl:if test="count(ancestor::bipm:table//*[local-name()='note']) > 1">
|
6226
|
-
<fo:block font-weight="bold">
|
6227
|
-
<xsl:variable name="curr_lang" select="ancestor::bipm:bipm-standard/bipm:bibdata/bipm:language"/>
|
6228
|
-
<xsl:choose>
|
6229
|
-
<xsl:when test="$curr_lang = 'fr'">Remarques</xsl:when>
|
6230
|
-
<xsl:otherwise>Notes</xsl:otherwise>
|
6231
|
-
</xsl:choose>
|
6232
|
-
</fo:block>
|
6233
|
-
</xsl:if>
|
6234
|
-
|
6235
|
-
|
6236
|
-
|
6237
|
-
|
6238
|
-
<!-- for BSI (not PAS) display Notes before footnotes -->
|
6239
|
-
|
6240
|
-
|
6241
|
-
<!-- except gb and bsi -->
|
6242
|
-
|
6243
|
-
<xsl:apply-templates select="../*[local-name()='note']"/>
|
6244
6362
|
|
6245
|
-
|
6246
|
-
|
6247
|
-
|
6248
|
-
|
6249
|
-
|
6250
|
-
|
6251
|
-
|
6252
|
-
|
6253
|
-
|
6254
|
-
|
6255
|
-
|
6256
|
-
|
6257
|
-
|
6258
|
-
|
6259
|
-
|
6260
|
-
|
6363
|
+
|
6364
|
+
<!-- fn will be processed inside 'note' processing -->
|
6365
|
+
|
6366
|
+
|
6367
|
+
|
6368
|
+
<xsl:if test="count(ancestor::bipm:table//*[local-name()='note']) > 1">
|
6369
|
+
<fo:block font-weight="bold">
|
6370
|
+
<xsl:variable name="curr_lang" select="ancestor::bipm:bipm-standard/bipm:bibdata/bipm:language"/>
|
6371
|
+
<xsl:choose>
|
6372
|
+
<xsl:when test="$curr_lang = 'fr'">Remarques</xsl:when>
|
6373
|
+
<xsl:otherwise>Notes</xsl:otherwise>
|
6374
|
+
</xsl:choose>
|
6375
|
+
</fo:block>
|
6376
|
+
</xsl:if>
|
6377
|
+
|
6378
|
+
|
6379
|
+
|
6380
|
+
|
6381
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
6382
|
+
|
6383
|
+
|
6384
|
+
<!-- except gb and bsi -->
|
6385
|
+
|
6386
|
+
<xsl:apply-templates select="../*[local-name()='note']"/>
|
6387
|
+
|
6388
|
+
|
6389
|
+
|
6390
|
+
<!-- horizontal row separator -->
|
6391
|
+
|
6392
|
+
|
6393
|
+
<!-- fn processing -->
|
6394
|
+
|
6395
|
+
<xsl:call-template name="table_fn_display"/>
|
6396
|
+
|
6397
|
+
|
6398
|
+
|
6399
|
+
<!-- for PAS display Notes after footnotes -->
|
6400
|
+
|
6401
|
+
|
6402
|
+
</fo:table-cell>
|
6403
|
+
</fo:table-row>
|
6404
|
+
</fo:table-body>
|
6405
|
+
|
6406
|
+
</fo:table>
|
6407
|
+
</xsl:variable>
|
6408
|
+
|
6409
|
+
<xsl:if test="normalize-space($tableWithNotesAndFootnotes) != ''">
|
6410
|
+
<xsl:copy-of select="$tableWithNotesAndFootnotes"/>
|
6411
|
+
</xsl:if>
|
6412
|
+
|
6413
|
+
|
6414
|
+
|
6261
6415
|
</xsl:if>
|
6262
6416
|
</xsl:template><xsl:template match="*[local-name()='tbody']">
|
6263
6417
|
|
@@ -6346,6 +6500,9 @@
|
|
6346
6500
|
|
6347
6501
|
|
6348
6502
|
|
6503
|
+
|
6504
|
+
|
6505
|
+
|
6349
6506
|
|
6350
6507
|
|
6351
6508
|
<xsl:call-template name="setTableRowAttributes"/>
|
@@ -6365,6 +6522,8 @@
|
|
6365
6522
|
|
6366
6523
|
|
6367
6524
|
|
6525
|
+
|
6526
|
+
|
6368
6527
|
<xsl:call-template name="setTableRowAttributes"/>
|
6369
6528
|
<xsl:apply-templates/>
|
6370
6529
|
</fo:table-row>
|
@@ -6475,6 +6634,8 @@
|
|
6475
6634
|
|
6476
6635
|
|
6477
6636
|
|
6637
|
+
|
6638
|
+
|
6478
6639
|
|
6479
6640
|
|
6480
6641
|
|
@@ -6568,7 +6729,11 @@
|
|
6568
6729
|
|
6569
6730
|
<xsl:variable name="gen_id" select="generate-id(.)"/>
|
6570
6731
|
<xsl:variable name="lang" select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibdata']//*[local-name()='language'][@current = 'true']"/>
|
6571
|
-
<xsl:variable name="
|
6732
|
+
<xsl:variable name="reference_">
|
6733
|
+
<xsl:value-of select="@reference"/>
|
6734
|
+
<xsl:if test="normalize-space(@reference) = ''"><xsl:value-of select="$gen_id"/></xsl:if>
|
6735
|
+
</xsl:variable>
|
6736
|
+
<xsl:variable name="reference" select="normalize-space($reference_)"/>
|
6572
6737
|
<!-- fn sequence number in document -->
|
6573
6738
|
<xsl:variable name="current_fn_number">
|
6574
6739
|
<xsl:choose>
|
@@ -6588,6 +6753,7 @@
|
|
6588
6753
|
<xsl:variable name="footnote_inline">
|
6589
6754
|
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
6590
6755
|
|
6756
|
+
|
6591
6757
|
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
|
6592
6758
|
<xsl:value-of select="$current_fn_number_text"/>
|
6593
6759
|
</fo:basic-link>
|
@@ -6609,8 +6775,12 @@
|
|
6609
6775
|
<fo:block xsl:use-attribute-sets="fn-body-style">
|
6610
6776
|
|
6611
6777
|
|
6778
|
+
|
6612
6779
|
<fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
|
6613
6780
|
|
6781
|
+
|
6782
|
+
|
6783
|
+
|
6614
6784
|
<xsl:value-of select="$current_fn_number_text"/>
|
6615
6785
|
</fo:inline>
|
6616
6786
|
<xsl:apply-templates/>
|
@@ -6643,7 +6813,7 @@
|
|
6643
6813
|
<xsl:copy-of select="node()"/>
|
6644
6814
|
</fn>
|
6645
6815
|
</xsl:for-each>
|
6646
|
-
<xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
|
6816
|
+
<xsl:for-each select="ancestor::*[contains(local-name(), '-standard')]/*[local-name()='boilerplate']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='preface']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='sections']/* | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='annex'] | ancestor::*[contains(local-name(), '-standard')]/*[local-name()='bibliography']/*">
|
6647
6817
|
<xsl:sort select="@displayorder" data-type="number"/>
|
6648
6818
|
<xsl:for-each select=".//*[local-name() = 'bibitem'][ancestor::*[local-name() = 'references']]/*[local-name() = 'note'] | .//*[local-name() = 'fn'][not(ancestor::*[(local-name() = 'table' or local-name() = 'figure') and not(ancestor::*[local-name() = 'name'])])][generate-id(.)=generate-id(key('kfn',@reference)[1])]">
|
6649
6819
|
<!-- copy unique fn -->
|
@@ -8328,6 +8498,13 @@
|
|
8328
8498
|
</xsl:variable>
|
8329
8499
|
<fo:inline xsl:use-attribute-sets="link-style">
|
8330
8500
|
|
8501
|
+
<xsl:if test="starts-with(normalize-space(@target), 'mailto:')">
|
8502
|
+
<xsl:attribute name="keep-together.within-line">always</xsl:attribute>
|
8503
|
+
</xsl:if>
|
8504
|
+
|
8505
|
+
|
8506
|
+
|
8507
|
+
|
8331
8508
|
|
8332
8509
|
|
8333
8510
|
|
@@ -8553,6 +8730,7 @@
|
|
8553
8730
|
|
8554
8731
|
|
8555
8732
|
|
8733
|
+
|
8556
8734
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
8557
8735
|
<!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
|
8558
8736
|
<xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
@@ -8574,6 +8752,7 @@
|
|
8574
8752
|
</xsl:when>
|
8575
8753
|
<xsl:otherwise>
|
8576
8754
|
|
8755
|
+
|
8577
8756
|
<xsl:text>:</xsl:text>
|
8578
8757
|
|
8579
8758
|
|
@@ -8593,6 +8772,7 @@
|
|
8593
8772
|
</xsl:when>
|
8594
8773
|
<xsl:otherwise>
|
8595
8774
|
|
8775
|
+
|
8596
8776
|
<xsl:text>:</xsl:text>
|
8597
8777
|
|
8598
8778
|
|
@@ -8604,7 +8784,19 @@
|
|
8604
8784
|
<xsl:value-of select="$suffix"/>
|
8605
8785
|
</xsl:if>
|
8606
8786
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
8607
|
-
<
|
8787
|
+
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
8788
|
+
<xsl:choose>
|
8789
|
+
<xsl:when test="$num = 1"> <!-- first paragraph renders in the same line as titlenote name -->
|
8790
|
+
<fo:inline xsl:use-attribute-sets="termnote-p-style">
|
8791
|
+
<xsl:apply-templates/>
|
8792
|
+
</fo:inline>
|
8793
|
+
</xsl:when>
|
8794
|
+
<xsl:otherwise>
|
8795
|
+
<fo:block xsl:use-attribute-sets="termnote-p-style">
|
8796
|
+
<xsl:apply-templates/>
|
8797
|
+
</fo:block>
|
8798
|
+
</xsl:otherwise>
|
8799
|
+
</xsl:choose>
|
8608
8800
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
8609
8801
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
8610
8802
|
<fo:block id="{@id}">
|
@@ -9377,6 +9569,9 @@
|
|
9377
9569
|
<fo:block xsl:use-attribute-sets="figure-name-style">
|
9378
9570
|
|
9379
9571
|
|
9572
|
+
|
9573
|
+
|
9574
|
+
|
9380
9575
|
<xsl:apply-templates/>
|
9381
9576
|
</fo:block>
|
9382
9577
|
</xsl:if>
|
@@ -9437,9 +9632,9 @@
|
|
9437
9632
|
<xsl:apply-templates/>
|
9438
9633
|
</xsl:otherwise>
|
9439
9634
|
</xsl:choose>
|
9440
|
-
</xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref']" mode="contents">
|
9635
|
+
</xsl:template><xsl:template match="*[local-name() = 'fn']" mode="contents"/><xsl:template match="*[local-name() = 'fn']" mode="bookmarks"/><xsl:template match="*[local-name() = 'fn']" mode="contents_item"/><xsl:template match="*[local-name() = 'xref'] | *[local-name() = 'eref']" mode="contents">
|
9441
9636
|
<xsl:value-of select="."/>
|
9442
|
-
</xsl:template><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
9637
|
+
</xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
|
9443
9638
|
<xsl:text> </xsl:text>
|
9444
9639
|
</xsl:template><xsl:template match="*[local-name() = 'strong']" mode="contents_item">
|
9445
9640
|
<xsl:copy>
|
@@ -9513,6 +9708,9 @@
|
|
9513
9708
|
<!-- 9 -->
|
9514
9709
|
|
9515
9710
|
|
9711
|
+
<!-- <xsl:if test="$namespace = 'ieee'">
|
9712
|
+
<xsl:if test="$current_template = 'standard'">8</xsl:if>
|
9713
|
+
</xsl:if> -->
|
9516
9714
|
|
9517
9715
|
|
9518
9716
|
|
@@ -9957,10 +10155,14 @@
|
|
9957
10155
|
</xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
|
9958
10156
|
<xsl:variable name="element">inline
|
9959
10157
|
|
10158
|
+
|
9960
10159
|
</xsl:variable>
|
9961
10160
|
<xsl:choose>
|
9962
10161
|
<xsl:when test="contains($element, 'block')">
|
9963
10162
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
10163
|
+
|
10164
|
+
|
10165
|
+
|
9964
10166
|
<xsl:apply-templates/>
|
9965
10167
|
</fo:block>
|
9966
10168
|
</xsl:when>
|
@@ -10068,6 +10270,7 @@
|
|
10068
10270
|
</xsl:if>
|
10069
10271
|
<fo:block xsl:use-attribute-sets="example-p-style">
|
10070
10272
|
|
10273
|
+
|
10071
10274
|
<xsl:apply-templates/>
|
10072
10275
|
</fo:block>
|
10073
10276
|
</fo:block-container>
|
@@ -10224,6 +10427,8 @@
|
|
10224
10427
|
|
10225
10428
|
|
10226
10429
|
|
10430
|
+
|
10431
|
+
|
10227
10432
|
<fo:basic-link fox:alt-text="{@citeas}">
|
10228
10433
|
<xsl:if test="normalize-space(@citeas) = ''">
|
10229
10434
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
@@ -10298,6 +10503,7 @@
|
|
10298
10503
|
|
10299
10504
|
|
10300
10505
|
|
10506
|
+
|
10301
10507
|
<xsl:choose>
|
10302
10508
|
<xsl:when test="ancestor::bipm:annex">2</xsl:when>
|
10303
10509
|
<xsl:otherwise>8</xsl:otherwise>
|
@@ -10649,6 +10855,8 @@
|
|
10649
10855
|
|
10650
10856
|
|
10651
10857
|
|
10858
|
+
|
10859
|
+
|
10652
10860
|
<!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
|
10653
10861
|
<xsl:if test="*[1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
|
10654
10862
|
<xsl:call-template name="append_add-style"/>
|
@@ -10833,7 +11041,7 @@
|
|
10833
11041
|
</xsl:template><xsl:template match="*[local-name() = 'indexsect']//*[local-name() = 'li']/text()">
|
10834
11042
|
<!-- to split by '_' and other chars -->
|
10835
11043
|
<xsl:call-template name="add-zero-spaces-java"/>
|
10836
|
-
</xsl:template><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
11044
|
+
</xsl:template><xsl:template match="*[local-name() = 'table']/*[local-name() = 'bookmark']" priority="2"/><xsl:template match="*[local-name() = 'bookmark']" name="bookmark">
|
10837
11045
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
10838
11046
|
<fo:inline id="{@id}" font-size="1pt"><xsl:value-of select="$hair_space"/></fo:inline>
|
10839
11047
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
@@ -10906,7 +11114,7 @@
|
|
10906
11114
|
</fo:block>
|
10907
11115
|
|
10908
11116
|
|
10909
|
-
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
|
11117
|
+
</xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
|
10910
11118
|
|
10911
11119
|
|
10912
11120
|
<!-- start BIPM bibitem processing -->
|
@@ -10922,7 +11130,7 @@
|
|
10922
11130
|
<xsl:value-of select="bipm:docidentifier[@type='metanorma']"/>
|
10923
11131
|
</xsl:when>
|
10924
11132
|
<xsl:otherwise>
|
10925
|
-
<xsl:number format="[1]"/>
|
11133
|
+
<xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
|
10926
11134
|
</xsl:otherwise>
|
10927
11135
|
</xsl:choose>
|
10928
11136
|
</xsl:if>
|
@@ -10947,10 +11155,17 @@
|
|
10947
11155
|
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
|
10948
11156
|
</xsl:if>
|
10949
11157
|
|
10950
|
-
<xsl:variable name="
|
10951
|
-
<xsl:
|
11158
|
+
<xsl:variable name="docidentifier_" select="*[local-name() = 'docidentifier'][not(@type = 'URN' or @type = 'metanorma' or @type = 'metanorma-ordinal' or @type = 'BIPM' or @type = 'ISBN' or @type = 'ISSN')]"/>
|
11159
|
+
<xsl:variable name="docidentifier_main" select="*[local-name() = 'docidentifier'][not(@type)]"/>
|
11160
|
+
<xsl:variable name="docidentifier">
|
11161
|
+
<xsl:choose>
|
11162
|
+
<xsl:when test="$docidentifier_ = $docidentifier_main and @suppress_identifier = 'true'"><!-- suppress indentifier --></xsl:when>
|
11163
|
+
<xsl:otherwise><xsl:value-of select="$docidentifier_"/></xsl:otherwise>
|
11164
|
+
</xsl:choose>
|
11165
|
+
</xsl:variable>
|
11166
|
+
<xsl:value-of select="normalize-space($docidentifier)"/>
|
10952
11167
|
|
10953
|
-
<xsl:if test="$docidentifier != '' and *[local-name() = 'formattedref']">, </xsl:if>
|
11168
|
+
<xsl:if test="normalize-space($docidentifier) != '' and *[local-name() = 'formattedref']">, </xsl:if>
|
10954
11169
|
<xsl:apply-templates select="*[local-name() = 'formattedref']"/>
|
10955
11170
|
<!-- end BIPM bibitem processing-->
|
10956
11171
|
|
@@ -11261,12 +11476,16 @@
|
|
11261
11476
|
<fo:block-container id="{@id}" xsl:use-attribute-sets="admonition-style">
|
11262
11477
|
|
11263
11478
|
|
11479
|
+
|
11480
|
+
|
11264
11481
|
|
11265
11482
|
|
11266
11483
|
|
11267
11484
|
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
11268
11485
|
|
11269
11486
|
|
11487
|
+
|
11488
|
+
|
11270
11489
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
11271
11490
|
<xsl:call-template name="displayAdmonitionName"/>
|
11272
11491
|
</fo:block>
|
@@ -11475,6 +11694,8 @@
|
|
11475
11694
|
</xsl:when>
|
11476
11695
|
<xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise>
|
11477
11696
|
</xsl:choose>
|
11697
|
+
</xsl:template><xsl:template match="*[local-name() = 'lang_none']">
|
11698
|
+
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
11478
11699
|
</xsl:template><xsl:template name="printEdition">
|
11479
11700
|
<xsl:variable name="edition_i18n" select="normalize-space((//*[contains(local-name(), '-standard')])[1]/*[local-name() = 'bibdata']/*[local-name() = 'edition'][normalize-space(@language) != ''])"/>
|
11480
11701
|
<xsl:text> </xsl:text>
|
@@ -11581,8 +11802,30 @@
|
|
11581
11802
|
</xsl:when>
|
11582
11803
|
<xsl:otherwise><xsl:value-of select="$monthStr_"/></xsl:otherwise>
|
11583
11804
|
</xsl:choose>
|
11805
|
+
</xsl:template><xsl:template name="getMonthLocalizedByNum">
|
11806
|
+
<xsl:param name="num"/>
|
11807
|
+
<xsl:variable name="monthStr">
|
11808
|
+
<xsl:choose>
|
11809
|
+
<xsl:when test="$num = '01'">january</xsl:when>
|
11810
|
+
<xsl:when test="$num = '02'">february</xsl:when>
|
11811
|
+
<xsl:when test="$num = '03'">march</xsl:when>
|
11812
|
+
<xsl:when test="$num = '04'">april</xsl:when>
|
11813
|
+
<xsl:when test="$num = '05'">may</xsl:when>
|
11814
|
+
<xsl:when test="$num = '06'">june</xsl:when>
|
11815
|
+
<xsl:when test="$num = '07'">july</xsl:when>
|
11816
|
+
<xsl:when test="$num = '08'">august</xsl:when>
|
11817
|
+
<xsl:when test="$num = '09'">september</xsl:when>
|
11818
|
+
<xsl:when test="$num = '10'">october</xsl:when>
|
11819
|
+
<xsl:when test="$num = '11'">november</xsl:when>
|
11820
|
+
<xsl:when test="$num = '12'">december</xsl:when>
|
11821
|
+
</xsl:choose>
|
11822
|
+
</xsl:variable>
|
11823
|
+
<xsl:call-template name="getLocalizedString">
|
11824
|
+
<xsl:with-param name="key">month_<xsl:value-of select="$monthStr"/></xsl:with-param>
|
11825
|
+
</xsl:call-template>
|
11584
11826
|
</xsl:template><xsl:template name="insertKeywords">
|
11585
11827
|
<xsl:param name="sorting" select="'true'"/>
|
11828
|
+
<xsl:param name="meta" select="'false'"/>
|
11586
11829
|
<xsl:param name="charAtEnd" select="'.'"/>
|
11587
11830
|
<xsl:param name="charDelim" select="', '"/>
|
11588
11831
|
<xsl:choose>
|
@@ -11590,6 +11833,7 @@
|
|
11590
11833
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
|
11591
11834
|
<xsl:sort data-type="text" order="ascending"/>
|
11592
11835
|
<xsl:call-template name="insertKeyword">
|
11836
|
+
<xsl:with-param name="meta" select="$meta"/>
|
11593
11837
|
<xsl:with-param name="charAtEnd" select="$charAtEnd"/>
|
11594
11838
|
<xsl:with-param name="charDelim" select="$charDelim"/>
|
11595
11839
|
</xsl:call-template>
|
@@ -11598,6 +11842,7 @@
|
|
11598
11842
|
<xsl:otherwise>
|
11599
11843
|
<xsl:for-each select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']//*[local-name() = 'keyword']">
|
11600
11844
|
<xsl:call-template name="insertKeyword">
|
11845
|
+
<xsl:with-param name="meta" select="$meta"/>
|
11601
11846
|
<xsl:with-param name="charAtEnd" select="$charAtEnd"/>
|
11602
11847
|
<xsl:with-param name="charDelim" select="$charDelim"/>
|
11603
11848
|
</xsl:call-template>
|
@@ -11607,7 +11852,15 @@
|
|
11607
11852
|
</xsl:template><xsl:template name="insertKeyword">
|
11608
11853
|
<xsl:param name="charAtEnd"/>
|
11609
11854
|
<xsl:param name="charDelim"/>
|
11610
|
-
<xsl:
|
11855
|
+
<xsl:param name="meta"/>
|
11856
|
+
<xsl:choose>
|
11857
|
+
<xsl:when test="$meta = 'true'">
|
11858
|
+
<xsl:value-of select="."/>
|
11859
|
+
</xsl:when>
|
11860
|
+
<xsl:otherwise>
|
11861
|
+
<xsl:apply-templates/>
|
11862
|
+
</xsl:otherwise>
|
11863
|
+
</xsl:choose>
|
11611
11864
|
<xsl:choose>
|
11612
11865
|
<xsl:when test="position() != last()"><xsl:value-of select="$charDelim"/></xsl:when>
|
11613
11866
|
<xsl:otherwise><xsl:value-of select="$charAtEnd"/></xsl:otherwise>
|
@@ -11652,13 +11905,15 @@
|
|
11652
11905
|
<dc:description>
|
11653
11906
|
<xsl:variable name="abstract">
|
11654
11907
|
|
11655
|
-
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
|
11908
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
|
11656
11909
|
|
11657
11910
|
</xsl:variable>
|
11658
11911
|
<xsl:value-of select="normalize-space($abstract)"/>
|
11659
11912
|
</dc:description>
|
11660
11913
|
<pdf:Keywords>
|
11661
|
-
<xsl:call-template name="insertKeywords"
|
11914
|
+
<xsl:call-template name="insertKeywords">
|
11915
|
+
<xsl:with-param name="meta">true</xsl:with-param>
|
11916
|
+
</xsl:call-template>
|
11662
11917
|
</pdf:Keywords>
|
11663
11918
|
</rdf:Description>
|
11664
11919
|
<rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
|
@@ -11780,6 +12035,7 @@
|
|
11780
12035
|
|
11781
12036
|
|
11782
12037
|
|
12038
|
+
|
11783
12039
|
|
11784
12040
|
|
11785
12041
|
|