metanorma-ribose 1.7.2 → 1.7.3

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: afa8f24c26b1b722b94da095d55861761049f6e3147d4e09e20a82060e53c2a1
4
- data.tar.gz: 3ca66c7d8ec19317bc2df0eeb1059dc2f18de0bb6934d80907889a7bcc0388dd
3
+ metadata.gz: 46d501cf58973b2d29417938397a60075304d5a1f9bda034d44efd93f4d15788
4
+ data.tar.gz: 655fa410374735332bb6e61414727a3a6dea42fe8a2a885ff24b46f81c7a8fe1
5
5
  SHA512:
6
- metadata.gz: ef61bde4b09c3efeb392aa6c680b7f65bc8a6ce5db7f9c8151a9ba45ddae7f0ce734c0b07de7ab3c0c875839cf22312c252d76fb4737aa8318e9c5e3965a8317
7
- data.tar.gz: a4e13576b5b6eb1d9ad414262e3d956f34f539eb5aee73d49816225c73498cae3dcd69a8511ec7acae3302f4271422a12c02a22458d3d4c48793dd4d19a952a1
6
+ metadata.gz: 86601dc7100a295b5b443c94cf7335a6f16cb17481ff128b731ce0b55cb38e0cc5272e2d85fdb268a1fe33a8b62aaf5d0e55c28f7e9f09bd2e6ec234ff0bfc17
7
+ data.tar.gz: 18aa9f022a676486e183d1d89073d963cf5c771b803ab97df21243e7982ffae5688e36dd811b8852d135bbe72c52da72392e502488c0bfe44665bedef29ecb58
data/README.adoc CHANGED
@@ -1,10 +1,10 @@
1
- = metanorma-ribose: Asciidoctor processor for Ribose Standard Documents
1
+ = Metanorma processor for Ribose documents
2
2
 
3
- image:https://img.shields.io/gem/v/metanorma-rsd.svg["Gem Version", link="https://rubygems.org/gems/metanorma-rsd"]
4
- image:https://github.com/metanorma/metanorma-rsd/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-rsd/actions?workflow=rake"]
5
- image:https://codeclimate.com/github/metanorma/metanorma-rsd/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-rsd"]
6
- image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-rsd.svg["Pull Requests", link="https://github.com/metanorma/metanorma-rsd/pulls"]
7
- image:https://img.shields.io/github/commits-since/metanorma/metanorma-rsd/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-rsd/releases"]
3
+ image:https://img.shields.io/gem/v/metanorma-ribose.svg["Gem Version", link="https://rubygems.org/gems/metanorma-ribose"]
4
+ image:https://github.com/metanorma/metanorma-ribose/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/metanorma-ribose/actions?workflow=rake"]
5
+ image:https://codeclimate.com/github/metanorma/metanorma-ribose/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/metanorma-ribose"]
6
+ image:https://img.shields.io/github/issues-pr-raw/metanorma/metanorma-ribose.svg["Pull Requests", link="https://github.com/metanorma/metanorma-ribose/pulls"]
7
+ image:https://img.shields.io/github/commits-since/metanorma/metanorma-ribose/latest.svg["Commits since latest",link="https://github.com/metanorma/metanorma-ribose/releases"]
8
8
 
9
9
  == Functionality
10
10
 
@@ -27,7 +27,7 @@ $ metanorma --type ribose --extensions xml a.adoc # output Metanorma XML
27
27
  ----
28
28
 
29
29
  The gem translates the document into Metanorma XML format, and then
30
- validates its output against the Ribopse Metanorma XML document model; errors are
30
+ validates its output against the Ribose Metanorma XML document model; errors are
31
31
  reported to console against the XML, and are intended for users to
32
32
  check that they have provided all necessary components of the
33
33
  document.
@@ -36,16 +36,8 @@ The gem then converts the XML into output formats such as HTML and PDF.
36
36
 
37
37
  === Installation
38
38
 
39
- If you are using a Mac, the https://github.com/metanorma/metanorma-macos-setup
40
- repository has instructions on setting up your machine to run Metanorma
41
- scripts such as this one. You need only run the following in a Terminal console:
39
+ See https://www.metanorma.com for installation documentation.
42
40
 
43
- [source,console]
44
- ----
45
- $ bash <(curl -s https://raw.githubusercontent.com/metanorma/metanorma-macos-setup/master/metanorma-setup)
46
- $ gem install metanorma-rsd
47
- $ gem install metanorma-cli
48
- ----
49
41
 
50
42
  == Documentation
51
43
 
@@ -57,7 +49,7 @@ See https://www.metanorma.com/author/ribose/[The Ribose flavor of Metanorma]
57
49
  The Ribose Standard Document format is an instance of the
58
50
  https://github.com/metanorma/metanorma-model-standoc[StandardDocument model]. Details of
59
51
  this general model can be found on its page. Details of the Ribose modifications
60
- to this general model can be found on the https://github.com/metanorma/metanorma-model-rsd[RSD model]
52
+ to this general model can be found on the https://github.com/metanorma/metanorma-model-ribose[Metanorma-Ribose model]
61
53
  repository.
62
54
 
63
55
  == Examples
@@ -67,4 +59,4 @@ repository.
67
59
 
68
60
  == Notes
69
61
 
70
- Metanorma-Ribose was formerly published as `asciidoctor-rsd`, `metanorma-rsd`.
62
+ Metanorma-Ribose was formerly published as `metanorma-rsd`.
@@ -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"/>
@@ -1034,6 +1034,9 @@
1034
1034
  <title-continued lang="en">(continued)</title-continued>
1035
1035
  <title-continued lang="fr">(continué)</title-continued>
1036
1036
 
1037
+ </xsl:variable><xsl:variable name="bibdata">
1038
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
1039
+ <xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
1037
1040
  </xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
1038
1041
  <xsl:param name="name"/>
1039
1042
  <xsl:param name="lang"/>
@@ -1062,6 +1065,7 @@
1062
1065
 
1063
1066
  </xsl:attribute-set><xsl:attribute-set name="link-style">
1064
1067
 
1068
+
1065
1069
  <xsl:attribute name="color">blue</xsl:attribute>
1066
1070
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
1067
1071
 
@@ -1189,6 +1193,7 @@
1189
1193
 
1190
1194
  </xsl:attribute-set><xsl:attribute-set name="table-name-style">
1191
1195
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
1196
+
1192
1197
 
1193
1198
 
1194
1199
 
@@ -1221,6 +1226,7 @@
1221
1226
  </xsl:attribute-set><xsl:attribute-set name="xref-style">
1222
1227
 
1223
1228
 
1229
+
1224
1230
  <xsl:attribute name="color">blue</xsl:attribute>
1225
1231
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
1226
1232
 
@@ -1237,6 +1243,7 @@
1237
1243
 
1238
1244
 
1239
1245
 
1246
+
1240
1247
 
1241
1248
 
1242
1249
 
@@ -1264,6 +1271,7 @@
1264
1271
 
1265
1272
 
1266
1273
 
1274
+
1267
1275
  <xsl:attribute name="padding-right">4mm</xsl:attribute>
1268
1276
 
1269
1277
 
@@ -1287,6 +1295,7 @@
1287
1295
 
1288
1296
  </xsl:attribute-set><xsl:attribute-set name="termnote-style">
1289
1297
 
1298
+
1290
1299
  <xsl:attribute name="font-size">10pt</xsl:attribute>
1291
1300
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1292
1301
 
@@ -1295,6 +1304,7 @@
1295
1304
 
1296
1305
 
1297
1306
  </xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
1307
+
1298
1308
 
1299
1309
 
1300
1310
  </xsl:attribute-set><xsl:attribute-set name="quote-style">
@@ -1318,6 +1328,7 @@
1318
1328
 
1319
1329
  </xsl:attribute-set><xsl:attribute-set name="termsource-style">
1320
1330
 
1331
+
1321
1332
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
1322
1333
  <xsl:attribute name="keep-with-previous">always</xsl:attribute>
1323
1334
 
@@ -1336,6 +1347,7 @@
1336
1347
 
1337
1348
  </xsl:attribute-set><xsl:attribute-set name="figure-name-style">
1338
1349
 
1350
+
1339
1351
 
1340
1352
 
1341
1353
 
@@ -1369,10 +1381,12 @@
1369
1381
 
1370
1382
 
1371
1383
 
1384
+
1372
1385
  </xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
1373
1386
 
1374
1387
  </xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
1375
1388
 
1389
+
1376
1390
  <xsl:attribute name="width">100%</xsl:attribute>
1377
1391
  <xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
1378
1392
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -1409,6 +1423,7 @@
1409
1423
  <xsl:attribute name="space-after">6pt</xsl:attribute>
1410
1424
 
1411
1425
 
1426
+
1412
1427
  </xsl:attribute-set><xsl:variable name="color-added-text">
1413
1428
  <xsl:text>rgb(0, 255, 0)</xsl:text>
1414
1429
  </xsl:variable><xsl:attribute-set name="add-style">
@@ -1545,6 +1560,7 @@
1545
1560
  <fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
1546
1561
 
1547
1562
 
1563
+
1548
1564
 
1549
1565
 
1550
1566
 
@@ -1557,6 +1573,8 @@
1557
1573
 
1558
1574
 
1559
1575
 
1576
+
1577
+
1560
1578
  <xsl:variable name="table_width">
1561
1579
  <!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
1562
1580
  100%
@@ -1574,6 +1592,7 @@
1574
1592
 
1575
1593
 
1576
1594
 
1595
+
1577
1596
 
1578
1597
 
1579
1598
 
@@ -1716,11 +1735,22 @@
1716
1735
  </xsl:choose>
1717
1736
 
1718
1737
  </xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
1738
+ <xsl:param name="continued"/>
1719
1739
  <xsl:if test="normalize-space() != ''">
1720
1740
  <fo:block xsl:use-attribute-sets="table-name-style">
1721
1741
 
1722
1742
 
1723
- <xsl:apply-templates/>
1743
+ <xsl:choose>
1744
+ <xsl:when test="$continued = 'true'">
1745
+ <!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
1746
+
1747
+ </xsl:when>
1748
+ <xsl:otherwise>
1749
+ <xsl:apply-templates/>
1750
+ </xsl:otherwise>
1751
+ </xsl:choose>
1752
+
1753
+
1724
1754
  </fo:block>
1725
1755
  </xsl:if>
1726
1756
  </xsl:template><xsl:template name="calculate-columns-numbers">
@@ -1860,18 +1890,18 @@
1860
1890
  <xsl:apply-templates/>
1861
1891
  </fo:table-header>
1862
1892
  </xsl:template><xsl:template name="table-header-title">
1863
- <xsl:param name="cols-count"/>
1893
+ <xsl:param name="cols-count"/>
1864
1894
  <!-- row for title -->
1865
1895
  <fo:table-row>
1866
1896
  <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">
1867
- <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation"/>
1897
+
1898
+ <xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
1899
+ <xsl:with-param name="continued">true</xsl:with-param>
1900
+ </xsl:apply-templates>
1868
1901
  <xsl:for-each select="ancestor::*[local-name()='table'][1]">
1869
1902
  <xsl:call-template name="fn_name_display"/>
1870
- </xsl:for-each>
1871
- <fo:block text-align="right" font-style="italic">
1872
- <xsl:text> </xsl:text>
1873
- <fo:retrieve-table-marker retrieve-class-name="table_continued"/>
1874
- </fo:block>
1903
+ </xsl:for-each>
1904
+
1875
1905
  </fo:table-cell>
1876
1906
  </fo:table-row>
1877
1907
  </xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
@@ -2092,6 +2122,7 @@
2092
2122
 
2093
2123
 
2094
2124
 
2125
+
2095
2126
  </xsl:if>
2096
2127
  <xsl:if test="$parent-name = 'tfoot'">
2097
2128
 
@@ -2129,6 +2160,7 @@
2129
2160
 
2130
2161
 
2131
2162
 
2163
+
2132
2164
  <xsl:if test="$lang = 'ar'">
2133
2165
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
2134
2166
  </xsl:if>
@@ -2795,6 +2827,7 @@
2795
2827
 
2796
2828
 
2797
2829
 
2830
+
2798
2831
  10
2799
2832
 
2800
2833
  </xsl:variable>
@@ -3177,11 +3210,15 @@
3177
3210
  </xsl:apply-templates>
3178
3211
  </xsl:template><xsl:template name="getLang">
3179
3212
  <xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
3213
+ <xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
3180
3214
  <xsl:variable name="language">
3181
3215
  <xsl:choose>
3182
3216
  <xsl:when test="$language_current != ''">
3183
3217
  <xsl:value-of select="$language_current"/>
3184
3218
  </xsl:when>
3219
+ <xsl:when test="$language_current_2 != ''">
3220
+ <xsl:value-of select="$language_current_2"/>
3221
+ </xsl:when>
3185
3222
  <xsl:otherwise>
3186
3223
  <xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
3187
3224
  </xsl:otherwise>
@@ -3398,6 +3435,7 @@
3398
3435
 
3399
3436
 
3400
3437
  <fo:inline xsl:use-attribute-sets="note-name-style">
3438
+
3401
3439
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3402
3440
  </fo:inline>
3403
3441
  <xsl:apply-templates/>
@@ -3424,6 +3462,7 @@
3424
3462
  </xsl:template><xsl:template match="*[local-name() = 'termnote']">
3425
3463
  <fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
3426
3464
  <fo:inline xsl:use-attribute-sets="termnote-name-style">
3465
+
3427
3466
  <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3428
3467
  </fo:inline>
3429
3468
  <xsl:apply-templates/>
@@ -3505,7 +3544,10 @@
3505
3544
  <xsl:for-each select="*[local-name() = 'note']">
3506
3545
  <xsl:call-template name="note"/>
3507
3546
  </xsl:for-each>
3508
- <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3547
+
3548
+
3549
+ <xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
3550
+
3509
3551
  </fo:block-container>
3510
3552
  </xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
3511
3553
  <fo:block id="{@id}">
@@ -3624,15 +3666,15 @@
3624
3666
  </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">
3625
3667
  <xsl:apply-templates mode="bookmarks"/>
3626
3668
  <xsl:text> </xsl:text>
3627
- </xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
3669
+ </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">
3628
3670
  <xsl:value-of select="."/>
3629
- </xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
3671
+ </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">
3630
3672
  <xsl:value-of select="."/>
3631
3673
  </xsl:template><xsl:template match="node()" mode="contents">
3632
3674
  <xsl:apply-templates mode="contents"/>
3633
3675
  </xsl:template><xsl:template match="node()" mode="bookmarks">
3634
3676
  <xsl:apply-templates mode="bookmarks"/>
3635
- </xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
3677
+ </xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
3636
3678
  <xsl:apply-templates select="."/>
3637
3679
  </xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
3638
3680
  <xsl:apply-templates mode="bookmarks"/>
@@ -3831,6 +3873,8 @@
3831
3873
  </fo:list-item-body>
3832
3874
  </fo:list-item>
3833
3875
  </fo:list-block>
3876
+ </xsl:template><xsl:template name="extractSection">
3877
+ <xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
3834
3878
  </xsl:template><xsl:template name="extractTitle">
3835
3879
  <xsl:choose>
3836
3880
  <xsl:when test="*[local-name() = 'tab']">
@@ -3878,6 +3922,7 @@
3878
3922
 
3879
3923
 
3880
3924
 
3925
+
3881
3926
 
3882
3927
 
3883
3928
 
@@ -4200,7 +4245,7 @@
4200
4245
  </fo:inline>
4201
4246
  </xsl:otherwise>
4202
4247
  </xsl:choose>
4203
- </xsl:template><xsl:template match="*[local-name() = 'termsource']">
4248
+ </xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
4204
4249
  <fo:block xsl:use-attribute-sets="termsource-style">
4205
4250
  <!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
4206
4251
  <xsl:variable name="termsource_text">
@@ -4209,13 +4254,15 @@
4209
4254
 
4210
4255
  <xsl:choose>
4211
4256
  <xsl:when test="starts-with(normalize-space($termsource_text), '[')">
4212
- <xsl:apply-templates/>
4257
+ <!-- <xsl:apply-templates /> -->
4258
+ <xsl:copy-of select="$termsource_text"/>
4213
4259
  </xsl:when>
4214
4260
  <xsl:otherwise>
4215
4261
 
4216
4262
  <xsl:text>[</xsl:text>
4217
4263
 
4218
- <xsl:apply-templates/>
4264
+ <!-- <xsl:apply-templates /> -->
4265
+ <xsl:copy-of select="$termsource_text"/>
4219
4266
 
4220
4267
  <xsl:text>]</xsl:text>
4221
4268
 
@@ -4226,14 +4273,20 @@
4226
4273
  <xsl:if test="normalize-space() != ''">
4227
4274
  <xsl:value-of select="."/>
4228
4275
  </xsl:if>
4229
- </xsl:template><xsl:template match="*[local-name() = 'origin']">
4276
+ </xsl:template><xsl:variable name="localized.source">
4277
+ <xsl:call-template name="getLocalizedString">
4278
+ <xsl:with-param name="key">source</xsl:with-param>
4279
+ </xsl:call-template>
4280
+ </xsl:variable><xsl:template match="*[local-name() = 'origin']">
4230
4281
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
4282
+ <xsl:if test="normalize-space(@citeas) = ''">
4283
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
4284
+ </xsl:if>
4231
4285
 
4232
4286
  <fo:inline>
4233
4287
 
4234
4288
 
4235
4289
 
4236
-
4237
4290
  <xsl:call-template name="getTitle">
4238
4291
  <xsl:with-param name="name" select="'title-source'"/>
4239
4292
  </xsl:call-template>
@@ -4442,7 +4495,6 @@
4442
4495
 
4443
4496
 
4444
4497
 
4445
-
4446
4498
  <xsl:apply-templates/>
4447
4499
  </fo:block>
4448
4500
 
@@ -4485,7 +4537,7 @@
4485
4537
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
4486
4538
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
4487
4539
  <xsl:choose>
4488
- <xsl:when test="parent::*[local-name() = 'note']">
4540
+ <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
4489
4541
  <fo:block-container>
4490
4542
  <xsl:attribute name="margin-left">
4491
4543
  <xsl:choose>
@@ -4495,6 +4547,7 @@
4495
4547
  </xsl:attribute>
4496
4548
 
4497
4549
 
4550
+
4498
4551
  <fo:block-container margin-left="0mm">
4499
4552
  <fo:block>
4500
4553
  <xsl:apply-templates select="." mode="ul_ol"/>
@@ -4696,6 +4749,10 @@
4696
4749
 
4697
4750
 
4698
4751
 
4752
+
4753
+
4754
+
4755
+
4699
4756
  </xsl:template><xsl:template name="processBibitemDocId">
4700
4757
  <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')]"/>
4701
4758
  <xsl:choose>
@@ -5084,6 +5141,7 @@
5084
5141
 
5085
5142
 
5086
5143
 
5144
+
5087
5145
  <xsl:value-of select="document('')//*/namespace::rsd"/>
5088
5146
 
5089
5147
 
@@ -5147,13 +5205,18 @@
5147
5205
  </xsl:call-template>
5148
5206
  </xsl:if>
5149
5207
  </xsl:template><xsl:template name="getLocalizedString">
5150
- <xsl:param name="key"/>
5208
+ <xsl:param name="key"/>
5151
5209
 
5152
5210
  <xsl:variable name="curr_lang">
5153
5211
  <xsl:call-template name="getLang"/>
5154
5212
  </xsl:variable>
5155
5213
 
5214
+ <xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
5215
+
5156
5216
  <xsl:choose>
5217
+ <xsl:when test="$data_value != ''">
5218
+ <xsl:value-of select="$data_value"/>
5219
+ </xsl:when>
5157
5220
  <xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
5158
5221
  <xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
5159
5222
  </xsl:when>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
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-ribose
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