metanorma-iec 1.2.1 → 1.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6954eeb16e4eacebb2da8b23af6e8e539d94e057dcb307a3bed74e605f12511
4
- data.tar.gz: 59bbd02eea1ee16223631ce0a21feabfbb5ce37381cafb84ff079bdb223cb6f4
3
+ metadata.gz: 45688db5644887e9b7ac5dc95fb4af57229a3c0d4b0cb1d931f19657e4473af7
4
+ data.tar.gz: b0d43cd6942cc0eb05c847406b0ab971b11bc76973e271c7b533ce99d86072c9
5
5
  SHA512:
6
- metadata.gz: 376cbd9860701e0e7d191ea4af5918b341633c072ea78dac21f94fcc06beb1ce33c980715ef03d5d2f7a3776593fffb4e41a41b0a889275bbc0d48ff24db5da9
7
- data.tar.gz: 74603e98c28bed3c4e7c97f28ab94eccbfbd54895207c8cd83f192c751f3194d280e426714f5fd1fe6d412c38c4118c3af063de6cc319819707244c1e979ad77
6
+ metadata.gz: 3e7eec9b4315b9471bc74160b53c8317858f24b0fd9f4ea302798fd93d15dd05fc61717ea657555b67d7d790664bda8e0f93919aafbd53e9e531e97a6f0811a9
7
+ data.tar.gz: 4304df37874a6fce41f69d88d85ada2e201a809137af439cad37ff76626a045367e8fb812b4c3fff639107bea49ba8bb545f61e69e4522476fe651fc6cf2f460
@@ -3,7 +3,7 @@ module Asciidoctor
3
3
  class Converter < ISO::Converter
4
4
  def metadata_author(node, xml)
5
5
  publishers = node.attr("publisher") || "IEC"
6
- publishers.split(/,[ ]?/).each do |p|
6
+ csv_split(publishers)&.each do |p|
7
7
  xml.contributor do |c|
8
8
  c.role **{ type: "author" }
9
9
  c.organization { |a| organization(a, p) }
@@ -13,7 +13,7 @@ module Asciidoctor
13
13
 
14
14
  def metadata_publisher(node, xml)
15
15
  publishers = node.attr("publisher") || "IEC"
16
- publishers.split(/,[ ]?/).each do |p|
16
+ csv_split(publishers)&.each do |p|
17
17
  xml.contributor do |c|
18
18
  c.role **{ type: "publisher" }
19
19
  c.organization { |a| organization(a, p) }
@@ -22,8 +22,8 @@ module Asciidoctor
22
22
  end
23
23
 
24
24
  def metadata_copyright(node, xml)
25
- publishers = node.attr("publisher") || "IEC"
26
- publishers.split(/,[ ]?/).each do |p|
25
+ publishers = node.attr("copyright-holder") || node.attr("publisher") || "IEC"
26
+ csv_split(publishers)&.each do |p|
27
27
  xml.copyright do |c|
28
28
  c.from (node.attr("copyright-year") || Date.today.year)
29
29
  c.owner do |owner|
@@ -116,24 +116,8 @@
116
116
 
117
117
  <xsl:template name="generateContents">
118
118
  <contents>
119
-
120
- <xsl:apply-templates select="/iec:iec-standard/iec:preface/node()" mode="contents"/>
121
-
122
- <xsl:apply-templates select="/iec:iec-standard/iec:sections/iec:clause[starts-with(@id, '_scope')]" mode="contents"/> <!-- [@id = '_scope'] -->
123
-
124
- <!-- Normative references -->
125
- <xsl:apply-templates select="/iec:iec-standard/iec:bibliography/iec:references[starts-with(@id, '_normative_references') or starts-with(@id, '_references')]" mode="contents"/> <!-- [@id = '_normative_references'] -->
126
-
127
- <!-- Terms and definitions -->
128
- <xsl:apply-templates select="/iec:iec-standard/iec:sections/iec:terms" mode="contents"/>
129
-
130
- <xsl:apply-templates select="/iec:iec-standard/iec:sections/*[local-name() != 'terms' and not(starts-with(@id, '_scope'))]" mode="contents"/>
131
-
132
- <xsl:apply-templates select="/iec:iec-standard/iec:annex" mode="contents"/>
133
-
134
- <!-- Bibliography -->
135
- <xsl:apply-templates select="/iec:iec-standard/iec:bibliography/iec:references[not(starts-with(@id, '_normative_references') or starts-with(@id, '_references'))]" mode="contents"/> <!-- @id = '_bibliography' -->
136
-
119
+ <xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
120
+ <xsl:call-template name="processMainSectionsDefault_Contents"/>
137
121
  </contents>
138
122
  </xsl:template>
139
123
 
@@ -1308,7 +1292,7 @@
1308
1292
  </fo:block-container>
1309
1293
 
1310
1294
  <!-- Foreword, Introduction -->
1311
- <xsl:apply-templates select="/iec:iec-standard/iec:preface/*"/>
1295
+ <xsl:call-template name="processPrefaceSectionsDefault"/>
1312
1296
  </xsl:template>
1313
1297
 
1314
1298
 
@@ -1348,28 +1332,9 @@
1348
1332
  </fo:block>
1349
1333
  </fo:block-container>
1350
1334
 
1351
- <!-- Clause(s) -->
1352
- <fo:block>
1353
-
1354
-
1355
- <!-- Scope -->
1356
- <xsl:apply-templates select="/iec:iec-standard/iec:sections/iec:clause[starts-with(@id, '_scope')]"/>
1357
-
1358
- <!-- Normative references -->
1359
- <xsl:apply-templates select="/iec:iec-standard/iec:bibliography/iec:references[starts-with(@id, '_normative_references') or starts-with(@id, '_references')]"/>
1360
-
1361
- <!-- Terms and definitions -->
1362
- <xsl:apply-templates select="/iec:iec-standard/iec:sections/iec:terms"/>
1363
-
1364
- <!-- main sections -->
1365
- <xsl:apply-templates select="/iec:iec-standard/iec:sections/*[local-name() != 'terms' and not(starts-with(@id, '_scope'))]"/>
1366
-
1367
- <!-- Annex(s) -->
1368
- <xsl:apply-templates select="/iec:iec-standard/iec:annex"/>
1369
-
1370
- <!-- Bibliography -->
1371
- <xsl:apply-templates select="/iec:iec-standard/iec:bibliography/iec:references[not(starts-with(@id, '_normative_references') or starts-with(@id, '_references'))]"/>
1372
-
1335
+ <!-- Main sections -->
1336
+ <fo:block>
1337
+ <xsl:call-template name="processMainSectionsDefault"/>
1373
1338
  </fo:block>
1374
1339
 
1375
1340
  </fo:flow>
@@ -1573,12 +1538,12 @@
1573
1538
  </xsl:template>
1574
1539
 
1575
1540
  <!-- Bibliography -->
1576
- <xsl:template match="iec:references[not(starts-with(@id, '_normative_references') or starts-with(@id, '_references'))]/iec:title">
1541
+ <xsl:template match="iec:references[not(@normative='true')]/iec:title">
1577
1542
  <fo:block font-size="12pt" text-align="center" margin-bottom="12pt" keep-with-next="always">
1578
1543
  <xsl:apply-templates/>
1579
1544
  </fo:block>
1580
1545
  </xsl:template>
1581
- <xsl:template match="iec:references[not(starts-with(@id, '_normative_references') or starts-with(@id, '_references'))]/iec:title/text()">
1546
+ <xsl:template match="iec:references[not(@normative='true')]/iec:title/text()">
1582
1547
  <xsl:call-template name="addLetterSpacing">
1583
1548
  <xsl:with-param name="text" select="."/>
1584
1549
  </xsl:call-template>
@@ -1876,7 +1841,7 @@
1876
1841
 
1877
1842
 
1878
1843
  <!-- <xsl:template match="iec:references[@id = '_bibliography']"> -->
1879
- <xsl:template match="iec:references[not(starts-with(@id, '_normative_references') or starts-with(@id, '_references'))]">
1844
+ <xsl:template match="iec:references[not(@normative='true')]">
1880
1845
  <fo:block break-after="page"/>
1881
1846
  <fo:block id="{@id}">
1882
1847
  <xsl:apply-templates/>
@@ -1889,7 +1854,7 @@
1889
1854
 
1890
1855
  <!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
1891
1856
  <!-- <xsl:template match="iec:references[@id = '_bibliography']/iec:bibitem"> -->
1892
- <xsl:template match="iec:references[not(starts-with(@id, '_normative_references') or starts-with(@id, '_references'))]/iec:bibitem">
1857
+ <xsl:template match="iec:references[not(@normative='true')]/iec:bibitem">
1893
1858
  <fo:list-block margin-top="5pt" margin-bottom="14pt" provisional-distance-between-starts="0mm"> <!-- provisional-distance-between-starts="12mm" -->
1894
1859
  <fo:list-item>
1895
1860
  <fo:list-item-label end-indent="label-end()">
@@ -1922,10 +1887,10 @@
1922
1887
  </xsl:template>
1923
1888
 
1924
1889
  <!-- <xsl:template match="iec:references[@id = '_bibliography']/iec:bibitem" mode="contents"/> -->
1925
- <xsl:template match="iec:references[not(starts-with(@id, '_normative_references') or starts-with(@id, '_references'))]/iec:bibitem" mode="contents"/>
1890
+ <xsl:template match="iec:references[not(@normative='true')]/iec:bibitem" mode="contents"/>
1926
1891
 
1927
1892
  <!-- <xsl:template match="iec:references[@id = '_bibliography']/iec:bibitem/iec:title"> -->
1928
- <xsl:template match="iec:references[not(starts-with(@id, '_normative_references') or starts-with(@id, '_references'))]/iec:bibitem/iec:title">
1893
+ <xsl:template match="iec:references[not(@normative='true')]/iec:bibitem/iec:title">
1929
1894
  <fo:inline font-style="italic">
1930
1895
  <xsl:apply-templates/>
1931
1896
  </fo:inline>
@@ -2332,6 +2297,7 @@
2332
2297
  </xsl:attribute-set><xsl:attribute-set name="example-body-style">
2333
2298
 
2334
2299
 
2300
+
2335
2301
  </xsl:attribute-set><xsl:attribute-set name="example-name-style">
2336
2302
 
2337
2303
 
@@ -2348,6 +2314,8 @@
2348
2314
 
2349
2315
 
2350
2316
 
2317
+
2318
+
2351
2319
 
2352
2320
 
2353
2321
  </xsl:attribute-set><xsl:attribute-set name="example-p-style">
@@ -2362,6 +2330,8 @@
2362
2330
 
2363
2331
 
2364
2332
 
2333
+
2334
+
2365
2335
  </xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
2366
2336
 
2367
2337
  <xsl:attribute name="padding-right">10mm</xsl:attribute>
@@ -2386,6 +2356,7 @@
2386
2356
 
2387
2357
 
2388
2358
 
2359
+
2389
2360
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
2390
2361
 
2391
2362
 
@@ -2525,7 +2496,7 @@
2525
2496
 
2526
2497
 
2527
2498
 
2528
-
2499
+
2529
2500
  </xsl:attribute-set><xsl:attribute-set name="formula-style">
2530
2501
 
2531
2502
  </xsl:attribute-set><xsl:attribute-set name="image-style">
@@ -2574,7 +2545,43 @@
2574
2545
 
2575
2546
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
2576
2547
 
2577
- </xsl:attribute-set><xsl:template match="text()">
2548
+ </xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
2549
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
2550
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
2551
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
2552
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
2553
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
2554
+ </xsl:template><xsl:template name="processMainSectionsDefault_Contents">
2555
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
2556
+
2557
+ <!-- Normative references -->
2558
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']" mode="contents"/>
2559
+ <!-- Terms and definitions -->
2560
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]" mode="contents"/>
2561
+ <!-- Another main sections -->
2562
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]" mode="contents"/>
2563
+ <xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
2564
+ <!-- Bibliography -->
2565
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]" mode="contents"/>
2566
+ </xsl:template><xsl:template name="processPrefaceSectionsDefault">
2567
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
2568
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
2569
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
2570
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
2571
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
2572
+ </xsl:template><xsl:template name="processMainSectionsDefault">
2573
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
2574
+
2575
+ <!-- Normative references -->
2576
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
2577
+ <!-- Terms and definitions -->
2578
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]"/>
2579
+ <!-- Another main sections -->
2580
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]"/>
2581
+ <xsl:apply-templates select="/*/*[local-name()='annex']"/>
2582
+ <!-- Bibliography -->
2583
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
2584
+ </xsl:template><xsl:template match="text()">
2578
2585
  <xsl:value-of select="."/>
2579
2586
  </xsl:template><xsl:template match="*[local-name()='br']">
2580
2587
  <xsl:value-of select="$linebreak"/>
@@ -2658,6 +2665,7 @@
2658
2665
 
2659
2666
 
2660
2667
 
2668
+
2661
2669
  <fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
2662
2670
 
2663
2671
 
@@ -2675,6 +2683,7 @@
2675
2683
  <xsl:attribute name="font-size">8pt</xsl:attribute>
2676
2684
 
2677
2685
 
2686
+
2678
2687
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
2679
2688
  <xsl:choose>
2680
2689
  <xsl:when test=". = 1 or . = 0">
@@ -2943,6 +2952,14 @@
2943
2952
  </fo:table-row>
2944
2953
  </xsl:template><xsl:template match="*[local-name()='th']">
2945
2954
  <fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
2955
+ <xsl:attribute name="text-align">
2956
+ <xsl:choose>
2957
+ <xsl:when test="@align">
2958
+ <xsl:value-of select="@align"/>
2959
+ </xsl:when>
2960
+ <xsl:otherwise>center</xsl:otherwise>
2961
+ </xsl:choose>
2962
+ </xsl:attribute>
2946
2963
 
2947
2964
  <xsl:attribute name="padding-top">1mm</xsl:attribute>
2948
2965
 
@@ -2959,6 +2976,7 @@
2959
2976
 
2960
2977
 
2961
2978
 
2979
+
2962
2980
  <xsl:if test="@colspan">
2963
2981
  <xsl:attribute name="number-columns-spanned">
2964
2982
  <xsl:value-of select="@colspan"/>
@@ -2975,6 +2993,14 @@
2975
2993
  </fo:table-cell>
2976
2994
  </xsl:template><xsl:template match="*[local-name()='td']">
2977
2995
  <fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
2996
+ <xsl:attribute name="text-align">
2997
+ <xsl:choose>
2998
+ <xsl:when test="@align">
2999
+ <xsl:value-of select="@align"/>
3000
+ </xsl:when>
3001
+ <xsl:otherwise>left</xsl:otherwise>
3002
+ </xsl:choose>
3003
+ </xsl:attribute>
2978
3004
  <!-- and ancestor::*[local-name() = 'thead'] -->
2979
3005
  <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
2980
3006
 
@@ -4222,6 +4248,117 @@
4222
4248
  <fo:block xsl:use-attribute-sets="recommendation-label-style">
4223
4249
  <xsl:apply-templates/>
4224
4250
  </fo:block>
4251
+ </xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
4252
+ <fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
4253
+ <fo:block-container margin-left="0mm" margin-right="0mm">
4254
+ <fo:table id="{@id}" table-layout="fixed" width="100%" border="0pt solid black">
4255
+ <xsl:variable name="simple-table">
4256
+ <xsl:call-template name="getSimpleTable"/>
4257
+ </xsl:variable>
4258
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
4259
+ <xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
4260
+ <fo:table-column column-width="35mm"/>
4261
+ <fo:table-column column-width="115mm"/>
4262
+ </xsl:if>
4263
+ <xsl:apply-templates mode="requirement"/>
4264
+ </fo:table>
4265
+ <!-- fn processing -->
4266
+ <xsl:if test=".//*[local-name() = 'fn']">
4267
+ <xsl:for-each select="*[local-name() = 'tbody']">
4268
+ <fo:block font-size="90%" border-bottom="1.pt solid black">
4269
+ <xsl:call-template name="fn_display"/>
4270
+ </fo:block>
4271
+ </xsl:for-each>
4272
+ </xsl:if>
4273
+ </fo:block-container>
4274
+ </fo:block-container>
4275
+ </xsl:template><xsl:template match="*[local-name()='thead']" mode="requirement">
4276
+ <fo:table-header>
4277
+ <xsl:apply-templates mode="requirement"/>
4278
+ </fo:table-header>
4279
+ </xsl:template><xsl:template match="*[local-name()='tbody']" mode="requirement">
4280
+ <fo:table-body>
4281
+ <xsl:apply-templates mode="requirement"/>
4282
+ </fo:table-body>
4283
+ </xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
4284
+ <fo:table-row>
4285
+ <xsl:apply-templates mode="requirement"/>
4286
+ </fo:table-row>
4287
+ </xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
4288
+ <fo:table-cell text-align="{@align}">
4289
+ <xsl:attribute name="text-align">
4290
+ <xsl:choose>
4291
+ <xsl:when test="@align">
4292
+ <xsl:value-of select="@align"/>
4293
+ </xsl:when>
4294
+ <xsl:otherwise>center</xsl:otherwise>
4295
+ </xsl:choose>
4296
+ </xsl:attribute>
4297
+ <xsl:if test="@colspan">
4298
+ <xsl:attribute name="number-columns-spanned">
4299
+ <xsl:value-of select="@colspan"/>
4300
+ </xsl:attribute>
4301
+ </xsl:if>
4302
+ <xsl:if test="@rowspan">
4303
+ <xsl:attribute name="number-rows-spanned">
4304
+ <xsl:value-of select="@rowspan"/>
4305
+ </xsl:attribute>
4306
+ </xsl:if>
4307
+
4308
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
4309
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
4310
+ <xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
4311
+ </xsl:if>
4312
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
4313
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
4314
+ <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
4315
+ </xsl:if>
4316
+
4317
+ <fo:block>
4318
+ <xsl:apply-templates/>
4319
+ </fo:block>
4320
+ </fo:table-cell>
4321
+ </xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
4322
+ <fo:table-cell text-align="{@align}">
4323
+ <xsl:attribute name="text-align">
4324
+ <xsl:choose>
4325
+ <xsl:when test="@align">
4326
+ <xsl:value-of select="@align"/>
4327
+ </xsl:when>
4328
+ <xsl:otherwise>left</xsl:otherwise>
4329
+ </xsl:choose>
4330
+ </xsl:attribute>
4331
+ <xsl:if test="@colspan">
4332
+ <xsl:attribute name="number-columns-spanned">
4333
+ <xsl:value-of select="@colspan"/>
4334
+ </xsl:attribute>
4335
+ </xsl:if>
4336
+ <xsl:if test="@rowspan">
4337
+ <xsl:attribute name="number-rows-spanned">
4338
+ <xsl:value-of select="@rowspan"/>
4339
+ </xsl:attribute>
4340
+ </xsl:if>
4341
+
4342
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
4343
+ <xsl:attribute name="padding-left">0.5mm</xsl:attribute>
4344
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
4345
+ <xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])"> <!-- 2nd line and below -->
4346
+ <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
4347
+ </xsl:if>
4348
+ </xsl:if>
4349
+
4350
+ <fo:block>
4351
+ <xsl:apply-templates/>
4352
+ </fo:block>
4353
+ </fo:table-cell>
4354
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
4355
+ <fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="4pt">
4356
+ <xsl:apply-templates/>
4357
+ </fo:block>
4358
+ </xsl:template><xsl:template match="*[local-name() = 'p'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
4359
+ <fo:block margin-bottom="10pt">
4360
+ <xsl:apply-templates/>
4361
+ </fo:block>
4225
4362
  </xsl:template><xsl:template match="*[local-name() = 'termexample']">
4226
4363
  <fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
4227
4364
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
@@ -4501,7 +4638,7 @@
4501
4638
  <fo:block id="{@id}">
4502
4639
  <xsl:apply-templates/>
4503
4640
  </fo:block>
4504
- </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@id = '_normative_references' or @id = '_references']">
4641
+ </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
4505
4642
 
4506
4643
  <fo:block id="{@id}">
4507
4644
  <xsl:apply-templates/>
@@ -4753,7 +4890,8 @@
4753
4890
 
4754
4891
 
4755
4892
 
4756
-
4893
+
4894
+
4757
4895
  </xsl:variable>
4758
4896
  <xsl:if test="$documentNS != $XSLNS">
4759
4897
  <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
5
5
  end
6
6
 
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: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-29 00:00:00.000000000 Z
11
+ date: 2020-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-jing