metanorma-cc 1.7.2 → 1.7.3

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: d07d13a9f52175b61089dc3e5d57e1eac482b82b52b407ab33e5122496acf20d
4
- data.tar.gz: 5c46762d6f0cdfb3584223d8b16532a1da25684b8bcbd33119314ac97bcdbe2b
3
+ metadata.gz: 4246fc710a6116a54dbb54fb9d983194f44fd97c1874d5e1caa684a3b8729974
4
+ data.tar.gz: 6af597c710faabc0b2eb57f31e32e6349103f1d7472259221a445d9bb06475f0
5
5
  SHA512:
6
- metadata.gz: b6c49fcf4675feac37b23cd776f1c9180f05037cf68ff6d15f4eee5eefb90cc99821cdb4ab9a62f3d3fae9100cbeeb0681b4270bbbc1e1e718760b76bc5ba979
7
- data.tar.gz: 9172d75d6ba0991da2bee81bb4f8d8d36763ab0b8144db68d5bbd164cb98406d2b16f4cf3ccf52f234f98de4c3e2c363fe757403066b229d3124a8143bc746dc
6
+ metadata.gz: fa96ffbafe4f555da75dd05a02b0eecf6b0f3b6f2b56c757818d93749872a262b9ad24f6b46ca644df5244ee530e0b928aab819f7aaf8bb7df3a98f9f0779da1
7
+ data.tar.gz: bbe9b70f768719e9d4f004f22495268e5fbfa6cfae88ae977de8ea19214de73cbfa5732b43be8847ba0d07aba0fa8ee9524de6fda06d704d250158aac90cca6c
@@ -787,6 +787,7 @@
787
787
  <value>adapted</value>
788
788
  <value>vote-started</value>
789
789
  <value>vote-ended</value>
790
+ <value>announced</value>
790
791
  </choice>
791
792
  </define>
792
793
  <define name="bdate">
@@ -1191,9 +1191,7 @@
1191
1191
  </define>
1192
1192
  <define name="IsoWorkgroup">
1193
1193
  <optional>
1194
- <attribute name="number">
1195
- <data type="int"/>
1196
- </attribute>
1194
+ <attribute name="number"/>
1197
1195
  </optional>
1198
1196
  <optional>
1199
1197
  <attribute name="type"/>
@@ -932,6 +932,9 @@
932
932
  <title-continued lang="en">(continued)</title-continued>
933
933
  <title-continued lang="fr">(continué)</title-continued>
934
934
 
935
+ </xsl:variable><xsl:variable name="bibdata">
936
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
937
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
935
938
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
936
939
  <xsl:param name="name"/>
937
940
  <xsl:param name="lang"/>
@@ -960,6 +963,7 @@
960
963
 
961
964
  </xsl:attribute-set><xsl:attribute-set name="link-style">
962
965
 
966
+
963
967
  <xsl:attribute name="color">blue</xsl:attribute>
964
968
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
965
969
 
@@ -1083,6 +1087,7 @@
1083
1087
 
1084
1088
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
1085
1089
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1090
+
1086
1091
 
1087
1092
  <xsl:attribute name="font-weight">bold</xsl:attribute>
1088
1093
  <xsl:attribute name="text-align">center</xsl:attribute>
@@ -1120,6 +1125,7 @@
1120
1125
 
1121
1126
 
1122
1127
 
1128
+
1123
1129
  </xsl:attribute-set><xsl:attribute-set name="eref-style">
1124
1130
 
1125
1131
 
@@ -1131,6 +1137,7 @@
1131
1137
  </xsl:attribute-set><xsl:attribute-set name="note-style">
1132
1138
 
1133
1139
 
1140
+
1134
1141
  <xsl:attribute name="font-size">10pt</xsl:attribute>
1135
1142
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1136
1143
 
@@ -1149,6 +1156,7 @@
1149
1156
  </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">
1150
1157
 
1151
1158
 
1159
+
1152
1160
  <xsl:attribute name="padding-right">6mm</xsl:attribute>
1153
1161
 
1154
1162
 
@@ -1179,6 +1187,7 @@
1179
1187
 
1180
1188
  </xsl:attribute-set><xsl:attribute-set name="termnote-style">
1181
1189
 
1190
+
1182
1191
  <xsl:attribute name="font-size">10pt</xsl:attribute>
1183
1192
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1184
1193
 
@@ -1187,6 +1196,7 @@
1187
1196
 
1188
1197
 
1189
1198
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
1199
+
1190
1200
 
1191
1201
 
1192
1202
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
@@ -1210,6 +1220,7 @@
1210
1220
  </xsl:attribute-set><xsl:attribute-set name="termsource-style">
1211
1221
 
1212
1222
 
1223
+
1213
1224
  <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
1214
1225
  <xsl:attribute name="keep-with-previous">always</xsl:attribute>
1215
1226
 
@@ -1224,6 +1235,7 @@
1224
1235
 
1225
1236
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1226
1237
 
1238
+
1227
1239
 
1228
1240
 
1229
1241
 
@@ -1256,10 +1268,12 @@
1256
1268
 
1257
1269
 
1258
1270
 
1271
+
1259
1272
  </xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
1260
1273
 
1261
1274
  </xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
1262
1275
 
1276
+
1263
1277
  <xsl:attribute name="width">100%</xsl:attribute>
1264
1278
  <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
1265
1279
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -1293,6 +1307,7 @@
1293
1307
 
1294
1308
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
1295
1309
 
1310
+
1296
1311
  </xsl:attribute-set><xsl:variable name="color-added-text">
1297
1312
  <xsl:text>rgb(0, 255, 0)</xsl:text>
1298
1313
  </xsl:variable><xsl:attribute-set name="add-style">
@@ -1430,6 +1445,7 @@
1430
1445
 
1431
1446
  <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
1432
1447
 
1448
+
1433
1449
  <xsl:attribute name="font-size">10pt</xsl:attribute>
1434
1450
 
1435
1451
 
@@ -1445,6 +1461,8 @@
1445
1461
 
1446
1462
 
1447
1463
 
1464
+
1465
+
1448
1466
  <xsl:variable name="table_width">
1449
1467
  <!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
1450
1468
  100%
@@ -1462,6 +1480,7 @@
1462
1480
 
1463
1481
 
1464
1482
 
1483
+
1465
1484
 
1466
1485
 
1467
1486
 
@@ -1604,11 +1623,22 @@
1604
1623
  </xsl:choose>
1605
1624
 
1606
1625
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
1626
+ <xsl:param name="continued"/>
1607
1627
  <xsl:if test="normalize-space() != ''">
1608
1628
  <fo:block xsl:use-attribute-sets="table-name-style">
1609
1629
 
1610
1630
 
1611
- <xsl:apply-templates/>
1631
+ <xsl:choose>
1632
+ <xsl:when test="$continued = 'true'">
1633
+ <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
1634
+
1635
+ </xsl:when>
1636
+ <xsl:otherwise>
1637
+ <xsl:apply-templates/>
1638
+ </xsl:otherwise>
1639
+ </xsl:choose>
1640
+
1641
+
1612
1642
  </fo:block>
1613
1643
  </xsl:if>
1614
1644
  </xsl:template><xsl:template name="calculate-columns-numbers">
@@ -1748,18 +1778,18 @@
1748
1778
  <xsl:apply-templates/>
1749
1779
  </fo:table-header>
1750
1780
  </xsl:template><xsl:template name="table-header-title">
1751
- <xsl:param name="cols-count"/>
1781
+ <xsl:param name="cols-count"/>
1752
1782
  <!-- row for title -->
1753
1783
  <fo:table-row>
1754
1784
  <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">
1755
- <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation"/>
1785
+
1786
+ <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
1787
+ <xsl:with-param name="continued">true</xsl:with-param>
1788
+ </xsl:apply-templates>
1756
1789
  <xsl:for-each select="ancestor::*[local-name()='table'][1]">
1757
1790
  <xsl:call-template name="fn_name_display"/>
1758
- </xsl:for-each>
1759
- <fo:block text-align="right" font-style="italic">
1760
- <xsl:text> </xsl:text>
1761
- <fo:retrieve-table-marker retrieve-class-name="table_continued"/>
1762
- </fo:block>
1791
+ </xsl:for-each>
1792
+
1763
1793
  </fo:table-cell>
1764
1794
  </fo:table-row>
1765
1795
  </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
@@ -1980,6 +2010,7 @@
1980
2010
 
1981
2011
 
1982
2012
 
2013
+
1983
2014
  </xsl:if>
1984
2015
  <xsl:if test="$parent-name = 'tfoot'">
1985
2016
 
@@ -2017,6 +2048,7 @@
2017
2048
 
2018
2049
 
2019
2050
 
2051
+
2020
2052
  <xsl:if test="$lang = 'ar'">
2021
2053
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
2022
2054
  </xsl:if>
@@ -2686,6 +2718,7 @@
2686
2718
 
2687
2719
 
2688
2720
 
2721
+
2689
2722
 
2690
2723
  </xsl:variable>
2691
2724
  <xsl:variable name="font-size" select="normalize-space($_font-size)"/>
@@ -3067,11 +3100,15 @@
3067
3100
  </xsl:apply-templates>
3068
3101
  </xsl:template><xsl:template name="getLang">
3069
3102
  <xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
3103
+ <xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
3070
3104
  <xsl:variable name="language">
3071
3105
  <xsl:choose>
3072
3106
  <xsl:when test="$language_current != ''">
3073
3107
  <xsl:value-of select="$language_current"/>
3074
3108
  </xsl:when>
3109
+ <xsl:when test="$language_current_2 != ''">
3110
+ <xsl:value-of select="$language_current_2"/>
3111
+ </xsl:when>
3075
3112
  <xsl:otherwise>
3076
3113
  <xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
3077
3114
  </xsl:otherwise>
@@ -3284,6 +3321,7 @@
3284
3321
 
3285
3322
 
3286
3323
  <fo:inline xsl:use-attribute-sets="note-name-style">
3324
+
3287
3325
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3288
3326
  </fo:inline>
3289
3327
  <xsl:apply-templates/>
@@ -3310,6 +3348,7 @@
3310
3348
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
3311
3349
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
3312
3350
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
3351
+
3313
3352
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3314
3353
  </fo:inline>
3315
3354
  <xsl:apply-templates/>
@@ -3387,7 +3426,10 @@
3387
3426
  <xsl:for-each select="*[local-name() = 'note']">
3388
3427
  <xsl:call-template name="note"/>
3389
3428
  </xsl:for-each>
3390
- <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3429
+
3430
+
3431
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3432
+
3391
3433
  </fo:block-container>
3392
3434
  </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
3393
3435
  <fo:block id="{@id}">
@@ -3506,15 +3548,15 @@
3506
3548
  </xsl:template><xsl:template match="*[local-name() = 'figure']/*[local-name() = 'name'] | *[local-name() = 'table']/*[local-name() = 'name'] | *[local-name() = 'permission']/*[local-name() = 'name'] | *[local-name() = 'recommendation']/*[local-name() = 'name'] | *[local-name() = 'requirement']/*[local-name() = 'name']" mode="bookmarks">
3507
3549
  <xsl:apply-templates mode="bookmarks"/>
3508
3550
  <xsl:text> </xsl:text>
3509
- </xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
3551
+ </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
3510
3552
  <xsl:value-of select="."/>
3511
- </xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
3553
+ </xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
3512
3554
  <xsl:value-of select="."/>
3513
3555
  </xsl:template><xsl:template match="node()" mode="contents">
3514
3556
  <xsl:apply-templates mode="contents"/>
3515
3557
  </xsl:template><xsl:template match="node()" mode="bookmarks">
3516
3558
  <xsl:apply-templates mode="bookmarks"/>
3517
- </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
3559
+ </xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
3518
3560
  <xsl:apply-templates select="."/>
3519
3561
  </xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
3520
3562
  <xsl:apply-templates mode="bookmarks"/>
@@ -3713,6 +3755,8 @@
3713
3755
  </fo:list-item-body>
3714
3756
  </fo:list-item>
3715
3757
  </fo:list-block>
3758
+ </xsl:template><xsl:template name="extractSection">
3759
+ <xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
3716
3760
  </xsl:template><xsl:template name="extractTitle">
3717
3761
  <xsl:choose>
3718
3762
  <xsl:when test="*[local-name() = 'tab']">
@@ -3760,6 +3804,7 @@
3760
3804
 
3761
3805
 
3762
3806
 
3807
+
3763
3808
 
3764
3809
 
3765
3810
 
@@ -4082,7 +4127,7 @@
4082
4127
  </fo:inline>
4083
4128
  </xsl:otherwise>
4084
4129
  </xsl:choose>
4085
- </xsl:template><xsl:template match="*[local-name() = 'termsource']">
4130
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
4086
4131
  <fo:block xsl:use-attribute-sets="termsource-style">
4087
4132
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
4088
4133
  <xsl:variable name="termsource_text">
@@ -4091,13 +4136,15 @@
4091
4136
 
4092
4137
  <xsl:choose>
4093
4138
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
4094
- <xsl:apply-templates/>
4139
+ <!-- <xsl:apply-templates /> -->
4140
+ <xsl:copy-of select="$termsource_text"/>
4095
4141
  </xsl:when>
4096
4142
  <xsl:otherwise>
4097
4143
 
4098
4144
  <xsl:text>[</xsl:text>
4099
4145
 
4100
- <xsl:apply-templates/>
4146
+ <!-- <xsl:apply-templates /> -->
4147
+ <xsl:copy-of select="$termsource_text"/>
4101
4148
 
4102
4149
  <xsl:text>]</xsl:text>
4103
4150
 
@@ -4108,14 +4155,20 @@
4108
4155
  <xsl:if test="normalize-space() != ''">
4109
4156
  <xsl:value-of select="."/>
4110
4157
  </xsl:if>
4111
- </xsl:template><xsl:template match="*[local-name() = 'origin']">
4158
+ </xsl:template><xsl:variable name="localized.source">
4159
+ <xsl:call-template name="getLocalizedString">
4160
+ <xsl:with-param name="key">source</xsl:with-param>
4161
+ </xsl:call-template>
4162
+ </xsl:variable><xsl:template match="*[local-name() = 'origin']">
4112
4163
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4164
+ <xsl:if test="normalize-space(@citeas) = ''">
4165
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
4166
+ </xsl:if>
4113
4167
 
4114
4168
  <fo:inline>
4115
4169
 
4116
4170
 
4117
4171
 
4118
-
4119
4172
  <xsl:call-template name="getTitle">
4120
4173
  <xsl:with-param name="name" select="'title-source'"/>
4121
4174
  </xsl:call-template>
@@ -4333,7 +4386,6 @@
4333
4386
 
4334
4387
 
4335
4388
 
4336
-
4337
4389
  <xsl:apply-templates/>
4338
4390
  </fo:block>
4339
4391
 
@@ -4376,7 +4428,7 @@
4376
4428
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
4377
4429
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
4378
4430
  <xsl:choose>
4379
- <xsl:when test="parent::*[local-name() = 'note']">
4431
+ <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
4380
4432
  <fo:block-container>
4381
4433
  <xsl:attribute name="margin-left">
4382
4434
  <xsl:choose>
@@ -4386,6 +4438,7 @@
4386
4438
  </xsl:attribute>
4387
4439
 
4388
4440
 
4441
+
4389
4442
  <fo:block-container margin-left="0mm">
4390
4443
  <fo:block>
4391
4444
  <xsl:apply-templates select="." mode="ul_ol"/>
@@ -4587,6 +4640,10 @@
4587
4640
 
4588
4641
 
4589
4642
 
4643
+
4644
+
4645
+
4646
+
4590
4647
  </xsl:template><xsl:template name="processBibitemDocId">
4591
4648
  <xsl:variable name="_doc_ident" select="*[local-name() = 'docidentifier'][not(@type = 'DOI' or @type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN' or @type = 'rfc-anchor')]"/>
4592
4649
  <xsl:choose>
@@ -4977,6 +5034,7 @@
4977
5034
 
4978
5035
 
4979
5036
 
5037
+
4980
5038
  <xsl:value-of select="document('')//*/namespace::csd"/>
4981
5039
 
4982
5040
 
@@ -5038,13 +5096,18 @@
5038
5096
  </xsl:call-template>
5039
5097
  </xsl:if>
5040
5098
  </xsl:template><xsl:template name="getLocalizedString">
5041
- <xsl:param name="key"/>
5099
+ <xsl:param name="key"/>
5042
5100
 
5043
5101
  <xsl:variable name="curr_lang">
5044
5102
  <xsl:call-template name="getLang"/>
5045
5103
  </xsl:variable>
5046
5104
 
5105
+ <xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
5106
+
5047
5107
  <xsl:choose>
5108
+ <xsl:when test="$data_value != ''">
5109
+ <xsl:value-of select="$data_value"/>
5110
+ </xsl:when>
5048
5111
  <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
5049
5112
  <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
5050
5113
  </xsl:when>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module CC
3
- VERSION = "1.7.2".freeze
3
+ VERSION = "1.7.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-10 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic