metanorma-iec 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 535b9e23e62c05288443e4dafa15aee49770f661c97dd64d426cf6c10099ddf1
4
- data.tar.gz: 958f1ca736bb2a30fdda5c5068d46ac58ec11a659a4cd7745faebeebac23ffa9
3
+ metadata.gz: 599c9a96878a891abaa61fb9c36cba55e18b0f41e8072dbc0fa2deaf4383b94a
4
+ data.tar.gz: b7bc0733a73662fddca09fb1b3f7ea9d15cc14785259d4d5a3ae329d68753fbc
5
5
  SHA512:
6
- metadata.gz: a826de8a5df40dc0ed6a1ff7d962dc18bcdc7db0128882231b48b4294fba4d75416e413ac219f8de09182ce0674bbe73c1fc84f1c0d106ec0a92416010e6ed02
7
- data.tar.gz: c7720c6a1bf26b6134060b7a629e9b445bccbde1a03e4265858c4fc3fffbbcb985b6601660c621e0f85b38f8d69e6c91aa3603feed07871b7c79d518219c1e0a
6
+ metadata.gz: d9c462ade3a3d99d12e96ec0912070821eb4d4aa9cc9d5a01b1a71eb69c11d287e6220e291b41cf800eb1a194cb3d248da76887613c72b53235478e86945b8c0
7
+ data.tar.gz: 4cf9f66fcb45a8604c0cafbc95a8093e5e1409f0b439f895a30f43fdb0839091561f5a5e50c3ad64200d7da2d29aa7b1d23ad9b241f221a042bbeac87c4c483e
@@ -2267,7 +2267,10 @@
2267
2267
 
2268
2268
  </xsl:attribute-set><xsl:attribute-set name="requirement-style">
2269
2269
 
2270
+
2270
2271
  </xsl:attribute-set><xsl:attribute-set name="requirement-name-style">
2272
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
2273
+
2271
2274
 
2272
2275
  </xsl:attribute-set><xsl:attribute-set name="requirement-label-style">
2273
2276
 
@@ -2371,6 +2374,7 @@
2371
2374
 
2372
2375
 
2373
2376
 
2377
+
2374
2378
 
2375
2379
 
2376
2380
  </xsl:attribute-set><xsl:variable name="table-border_">
@@ -2733,9 +2737,10 @@
2733
2737
 
2734
2738
 
2735
2739
 
2736
-
2740
+
2737
2741
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
2738
-
2742
+
2743
+
2739
2744
 
2740
2745
 
2741
2746
 
@@ -2748,6 +2753,7 @@
2748
2753
  </xsl:attribute-set><xsl:attribute-set name="termnote-style">
2749
2754
 
2750
2755
 
2756
+
2751
2757
 
2752
2758
  <xsl:attribute name="font-size">8pt</xsl:attribute>
2753
2759
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
@@ -3202,7 +3208,10 @@
3202
3208
  <xsl:attribute name="margin-top">5pt</xsl:attribute>
3203
3209
  <xsl:attribute name="margin-bottom">14pt</xsl:attribute>
3204
3210
 
3205
-
3211
+ <!-- <xsl:if test="$namespace = 'ieee'">
3212
+ <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
3213
+ <xsl:attribute name="provisional-distance-between-starts">9.5mm</xsl:attribute>
3214
+ </xsl:if> -->
3206
3215
 
3207
3216
 
3208
3217
 
@@ -4409,90 +4418,98 @@
4409
4418
  </xsl:choose>
4410
4419
  </xsl:variable>
4411
4420
 
4412
- <fo:table keep-with-previous="always">
4413
- <xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
4414
- <xsl:variable name="name" select="local-name()"/>
4421
+
4422
+ <xsl:variable name="tableWithNotesAndFootnotes">
4423
+
4424
+ <fo:table keep-with-previous="always">
4425
+ <xsl:for-each select="xalan:nodeset($table_attributes)/table_attributes/@*">
4426
+ <xsl:variable name="name" select="local-name()"/>
4427
+ <xsl:choose>
4428
+ <xsl:when test="$name = 'border-top'">
4429
+ <xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
4430
+ </xsl:when>
4431
+ <xsl:when test="$name = 'border'">
4432
+ <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
4433
+ <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
4434
+ </xsl:when>
4435
+ <xsl:otherwise>
4436
+ <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
4437
+ </xsl:otherwise>
4438
+ </xsl:choose>
4439
+ </xsl:for-each>
4440
+
4441
+
4442
+
4415
4443
  <xsl:choose>
4416
- <xsl:when test="$name = 'border-top'">
4417
- <xsl:attribute name="{$name}">0pt solid black</xsl:attribute>
4418
- </xsl:when>
4419
- <xsl:when test="$name = 'border'">
4420
- <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
4421
- <xsl:attribute name="border-top">0pt solid black</xsl:attribute>
4444
+ <xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
4445
+ <xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
4446
+ <fo:table-column column-width="{@width}"/>
4447
+ </xsl:for-each>
4422
4448
  </xsl:when>
4423
4449
  <xsl:otherwise>
4424
- <xsl:attribute name="{$name}"><xsl:value-of select="."/></xsl:attribute>
4450
+ <!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
4451
+ <xsl:call-template name="insertTableColumnWidth">
4452
+ <xsl:with-param name="colwidths" select="$colwidths"/>
4453
+ </xsl:call-template>
4425
4454
  </xsl:otherwise>
4426
4455
  </xsl:choose>
4427
- </xsl:for-each>
4428
-
4429
-
4430
-
4431
- <xsl:choose>
4432
- <xsl:when test="xalan:nodeset($colgroup)//*[local-name()='col']">
4433
- <xsl:for-each select="xalan:nodeset($colgroup)//*[local-name()='col']">
4434
- <fo:table-column column-width="{@width}"/>
4435
- </xsl:for-each>
4436
- </xsl:when>
4437
- <xsl:otherwise>
4438
- <!-- $colwidths=<xsl:copy-of select="$colwidths"/> -->
4439
- <xsl:call-template name="insertTableColumnWidth">
4440
- <xsl:with-param name="colwidths" select="$colwidths"/>
4441
- </xsl:call-template>
4442
- </xsl:otherwise>
4443
- </xsl:choose>
4444
-
4445
- <fo:table-body>
4446
- <fo:table-row>
4447
- <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
4448
-
4449
-
4456
+
4457
+ <fo:table-body>
4458
+ <fo:table-row>
4459
+ <fo:table-cell xsl:use-attribute-sets="table-footer-cell-style" number-columns-spanned="{$cols-count}">
4460
+
4461
+
4450
4462
 
4451
-
4452
-
4453
- <!-- fn will be processed inside 'note' processing -->
4454
-
4455
- <xsl:if test="../*[local-name()='note']">
4456
- <fo:block margin-bottom="6pt"> </fo:block>
4457
- </xsl:if>
4458
-
4459
-
4460
-
4461
-
4462
-
4463
-
4464
- <!-- for BSI (not PAS) display Notes before footnotes -->
4465
-
4466
-
4467
- <!-- except gb and bsi -->
4468
-
4469
- <xsl:apply-templates select="../*[local-name()='note']"/>
4470
4463
 
4471
-
4472
-
4473
- <!-- horizontal row separator -->
4474
-
4475
- <xsl:if test="../*[local-name()='note']">
4476
- <fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
4477
- <fo:block font-size="1pt"> </fo:block>
4478
- </fo:block-container>
4479
- </xsl:if>
4480
-
4481
-
4482
- <!-- fn processing -->
4483
-
4484
- <xsl:call-template name="table_fn_display"/>
4485
4464
 
4486
-
4487
-
4488
- <!-- for PAS display Notes after footnotes -->
4489
-
4490
-
4491
- </fo:table-cell>
4492
- </fo:table-row>
4493
- </fo:table-body>
4494
-
4495
- </fo:table>
4465
+ <!-- fn will be processed inside 'note' processing -->
4466
+
4467
+ <xsl:if test="../*[local-name()='note']">
4468
+ <fo:block margin-bottom="6pt"> </fo:block>
4469
+ </xsl:if>
4470
+
4471
+
4472
+
4473
+
4474
+
4475
+
4476
+ <!-- for BSI (not PAS) display Notes before footnotes -->
4477
+
4478
+
4479
+ <!-- except gb and bsi -->
4480
+
4481
+ <xsl:apply-templates select="../*[local-name()='note']"/>
4482
+
4483
+
4484
+
4485
+ <!-- horizontal row separator -->
4486
+
4487
+ <xsl:if test="../*[local-name()='note']">
4488
+ <fo:block-container border-top="0.5pt solid black" padding-left="1mm" padding-right="1mm">
4489
+ <fo:block font-size="1pt"> </fo:block>
4490
+ </fo:block-container>
4491
+ </xsl:if>
4492
+
4493
+
4494
+ <!-- fn processing -->
4495
+
4496
+ <xsl:call-template name="table_fn_display"/>
4497
+
4498
+
4499
+
4500
+ <!-- for PAS display Notes after footnotes -->
4501
+
4502
+
4503
+ </fo:table-cell>
4504
+ </fo:table-row>
4505
+ </fo:table-body>
4506
+
4507
+ </fo:table>
4508
+ </xsl:variable>
4509
+
4510
+ <xsl:if test="normalize-space($tableWithNotesAndFootnotes) != ''">
4511
+ <xsl:copy-of select="$tableWithNotesAndFootnotes"/>
4512
+ </xsl:if>
4496
4513
 
4497
4514
 
4498
4515
 
@@ -4795,6 +4812,7 @@
4795
4812
  <xsl:variable name="footnote_inline">
4796
4813
  <fo:inline xsl:use-attribute-sets="fn-num-style">
4797
4814
 
4815
+
4798
4816
  <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
4799
4817
  <xsl:value-of select="$current_fn_number_text"/>
4800
4818
  </fo:basic-link>
@@ -4816,8 +4834,12 @@
4816
4834
  <fo:block xsl:use-attribute-sets="fn-body-style">
4817
4835
 
4818
4836
 
4837
+
4819
4838
  <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style">
4820
4839
 
4840
+
4841
+
4842
+
4821
4843
  <xsl:value-of select="$current_fn_number_text"/>
4822
4844
  </fo:inline>
4823
4845
  <xsl:apply-templates/>
@@ -6519,6 +6541,8 @@
6519
6541
 
6520
6542
 
6521
6543
 
6544
+
6545
+
6522
6546
  <xsl:if test="ancestor::*[local-name()='feedback-statement']">
6523
6547
  <xsl:attribute name="color">blue</xsl:attribute>
6524
6548
  </xsl:if>
@@ -6734,6 +6758,7 @@
6734
6758
 
6735
6759
 
6736
6760
 
6761
+
6737
6762
  <!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
6738
6763
  <!-- <xsl:if test="*[not(local-name()='name')][1][node()[normalize-space() != ''][1][local-name() = 'add'] and node()[normalize-space() != ''][last()][local-name() = 'add']]"> -->
6739
6764
  <xsl:if test="*[not(local-name()='name')][1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
@@ -6756,6 +6781,7 @@
6756
6781
  <xsl:otherwise>
6757
6782
 
6758
6783
 
6784
+
6759
6785
  </xsl:otherwise>
6760
6786
  </xsl:choose>
6761
6787
  </xsl:variable>
@@ -6772,6 +6798,7 @@
6772
6798
  </xsl:when>
6773
6799
  <xsl:otherwise>
6774
6800
 
6801
+
6775
6802
  <xsl:text>:</xsl:text>
6776
6803
 
6777
6804
 
@@ -7559,6 +7586,9 @@
7559
7586
  <fo:block xsl:use-attribute-sets="figure-name-style">
7560
7587
 
7561
7588
 
7589
+
7590
+
7591
+
7562
7592
  <xsl:apply-templates/>
7563
7593
  </fo:block>
7564
7594
  </xsl:if>
@@ -7619,7 +7649,7 @@
7619
7649
  <xsl:apply-templates/>
7620
7650
  </xsl:otherwise>
7621
7651
  </xsl:choose>
7622
- </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">
7652
+ </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">
7623
7653
  <xsl:value-of select="."/>
7624
7654
  </xsl:template><xsl:template match="*[local-name() = 'review']" mode="contents_item"/><xsl:template match="*[local-name() = 'tab']" mode="contents_item">
7625
7655
  <xsl:text> </xsl:text>
@@ -7695,6 +7725,9 @@
7695
7725
  <!-- 9 -->
7696
7726
 
7697
7727
 
7728
+ <!-- <xsl:if test="$namespace = 'ieee'">
7729
+ <xsl:if test="$doctype = 'standard' and $stage = 'published'">8</xsl:if>
7730
+ </xsl:if> -->
7698
7731
 
7699
7732
 
7700
7733
 
@@ -8139,10 +8172,14 @@
8139
8172
  </xsl:template><xsl:template match="*[local-name() = 'termexample']/*[local-name() = 'p']">
8140
8173
  <xsl:variable name="element">inline
8141
8174
 
8175
+
8142
8176
  </xsl:variable>
8143
8177
  <xsl:choose>
8144
8178
  <xsl:when test="contains($element, 'block')">
8145
8179
  <fo:block xsl:use-attribute-sets="example-p-style">
8180
+
8181
+
8182
+
8146
8183
  <xsl:apply-templates/>
8147
8184
  </fo:block>
8148
8185
  </xsl:when>
@@ -8256,6 +8293,7 @@
8256
8293
  </xsl:if>
8257
8294
  <fo:block xsl:use-attribute-sets="example-p-style">
8258
8295
 
8296
+
8259
8297
  <xsl:apply-templates/>
8260
8298
  </fo:block>
8261
8299
  </fo:block-container>
@@ -8412,6 +8450,8 @@
8412
8450
 
8413
8451
 
8414
8452
 
8453
+
8454
+
8415
8455
  <fo:basic-link fox:alt-text="{@citeas}">
8416
8456
  <xsl:if test="normalize-space(@citeas) = ''">
8417
8457
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
@@ -8838,6 +8878,8 @@
8838
8878
 
8839
8879
 
8840
8880
 
8881
+
8882
+
8841
8883
  <!-- if 'p' contains all text in 'add' first and last elements in first p are 'add' -->
8842
8884
  <xsl:if test="*[1][count(node()[normalize-space() != '']) = 1 and *[local-name() = 'add']]">
8843
8885
  <xsl:call-template name="append_add-style"/>
@@ -9100,7 +9142,7 @@
9100
9142
  </fo:block>
9101
9143
 
9102
9144
 
9103
- </xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" priority="2">
9145
+ </xsl:template><xsl:template match="*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'bibitem']" name="bibitem_non_normative" priority="2">
9104
9146
 
9105
9147
  <!-- $namespace = 'csd' or $namespace = 'gb' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iso' or $namespace = 'jcgm' or $namespace = 'm3d' or
9106
9148
  $namespace = 'mpfd' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' -->
@@ -9113,9 +9155,7 @@
9113
9155
 
9114
9156
  <xsl:value-of select="*[local-name()='docidentifier'][@type = 'metanorma-ordinal']"/>
9115
9157
  <xsl:if test="not(*[local-name()='docidentifier'][@type = 'metanorma-ordinal'])">
9116
-
9117
- <xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
9118
-
9158
+ <xsl:number format="[1]" count="*[local-name()='bibitem'][not(@hidden = 'true')]"/>
9119
9159
  </xsl:if>
9120
9160
 
9121
9161
  </fo:inline>
@@ -9872,7 +9912,7 @@
9872
9912
  <dc:description>
9873
9913
  <xsl:variable name="abstract">
9874
9914
 
9875
- <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()"/>
9915
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'preface']/*[local-name() = 'abstract']//text()[not(ancestor::*[local-name() = 'title'])]"/>
9876
9916
 
9877
9917
  </xsl:variable>
9878
9918
  <xsl:value-of select="normalize-space($abstract)"/>
@@ -69,6 +69,17 @@
69
69
  </zeroOrMore>
70
70
  </element>
71
71
  </define>
72
+ <define name="AdmonitionType">
73
+ <choice>
74
+ <value>warning</value>
75
+ <value>note</value>
76
+ <value>tip</value>
77
+ <value>important</value>
78
+ <value>caution</value>
79
+ <value>statement</value>
80
+ <value>editorial</value>
81
+ </choice>
82
+ </define>
72
83
  <define name="index">
73
84
  <element name="index">
74
85
  <optional>
@@ -116,6 +127,11 @@
116
127
  <data type="boolean"/>
117
128
  </attribute>
118
129
  </optional>
130
+ <optional>
131
+ <attribute name="suppress_identifier">
132
+ <data type="boolean"/>
133
+ </attribute>
134
+ </optional>
119
135
  <ref name="BibliographicItem"/>
120
136
  </element>
121
137
  </define>
@@ -45,7 +45,9 @@
45
45
  <ref name="horizontal"/>
46
46
  </optional>
47
47
  <ref name="editorialgroup"/>
48
- <ref name="approvalgroup"/>
48
+ <optional>
49
+ <ref name="approvalgroup"/>
50
+ </optional>
49
51
  <zeroOrMore>
50
52
  <ref name="ics"/>
51
53
  </zeroOrMore>
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "2.1.3".freeze
3
+ VERSION = "2.1.4".freeze
4
4
  end
5
5
  end
6
6
 
@@ -263,7 +263,7 @@ RSpec.describe IsoDoc::Iec do
263
263
  &#160; This is an annotation of ISO 20483:2013-2014
264
264
  </p>
265
265
  </div>
266
- <p id='zip_ffs' class='NormRef'>[5], Title 5</p>
266
+ <p id='zip_ffs' class='NormRef'>[5] Title 5</p>
267
267
  </div>
268
268
  <br/>
269
269
  <div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-21 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso