metanorma-iho 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/iho/biblio.rng +1 -0
- data/lib/asciidoctor/iho/converter.rb +8 -6
- data/lib/asciidoctor/iho/isodoc.rng +1 -3
- data/lib/isodoc/iho/iho.specification.xsl +83 -20
- data/lib/isodoc/iho/iho.standard.xsl +83 -20
- data/lib/metanorma/iho/version.rb +1 -1
- data/metanorma.yml +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 288f5d8afd0281c3ff10cb514820baa3b9915e1f050c946bed0c9eaa22a3c506
|
4
|
+
data.tar.gz: 665c46bd50d23bed2a4b9ba983890694c7b9da051a7adf4d71f4c8b478ce839d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f272b7464a8932dda4d3947eb5b1c471387766e12ec86b33887eb31b0482ea6c077c8c3f6fb110756fe5322774e675b8801c2bec5796790a085fdfba49bb6ad
|
7
|
+
data.tar.gz: f4b6b13deb6ae462ce7f23b909a3c342b1f278fd895382cf0d38a68710e2d6ba399b15d2338e385759b854c97f04063c2a636bed0d754c2f8e9bd4b819043ee8
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require "asciidoctor/standoc/converter"
|
2
|
-
require
|
2
|
+
require "asciidoctor/generic/converter"
|
3
3
|
|
4
4
|
module Asciidoctor
|
5
5
|
module IHO
|
@@ -7,8 +7,8 @@ module Asciidoctor
|
|
7
7
|
# schema encapsulation of the document for validation
|
8
8
|
#
|
9
9
|
class Converter < Asciidoctor::Generic::Converter
|
10
|
-
XML_ROOT_TAG =
|
11
|
-
XML_NAMESPACE =
|
10
|
+
XML_ROOT_TAG = "iho-standard".freeze
|
11
|
+
XML_NAMESPACE = "https://www.metanorma.org/ns/iho".freeze
|
12
12
|
|
13
13
|
register_for "iho"
|
14
14
|
|
@@ -33,7 +33,7 @@ module Asciidoctor
|
|
33
33
|
M: "Miscellaneous",
|
34
34
|
P: "Periodic",
|
35
35
|
S: "Standards and Specifications",
|
36
|
-
}
|
36
|
+
}.freeze
|
37
37
|
|
38
38
|
def metadata_series(node, xml)
|
39
39
|
series = node.attr("series") or return
|
@@ -59,7 +59,8 @@ module Asciidoctor
|
|
59
59
|
|
60
60
|
def metadata_committee(node, xml)
|
61
61
|
unless node.attr("workgroup")
|
62
|
-
@log.add("AsciiDoc Input", nil,
|
62
|
+
@log.add("AsciiDoc Input", nil,
|
63
|
+
"Missing workgroup attribute for document")
|
63
64
|
return
|
64
65
|
end
|
65
66
|
metadata_committee1(node, xml)
|
@@ -75,7 +76,7 @@ module Asciidoctor
|
|
75
76
|
end
|
76
77
|
end
|
77
78
|
i = 2
|
78
|
-
while node.attr("workgroup_#{i}")
|
79
|
+
while node.attr("workgroup_#{i}")
|
79
80
|
xml.editorialgroup do |a|
|
80
81
|
a.committee do |n|
|
81
82
|
n.abbreviation node.attr("committee_#{i}").upcase
|
@@ -102,6 +103,7 @@ module Asciidoctor
|
|
102
103
|
|
103
104
|
def pdf_converter(node)
|
104
105
|
return nil if node.attr("no-pdf")
|
106
|
+
|
105
107
|
IsoDoc::IHO::PdfConvert.new(html_extract_attributes(node))
|
106
108
|
end
|
107
109
|
|
@@ -1085,6 +1085,9 @@
|
|
1085
1085
|
<title-continued lang="en">(continued)</title-continued>
|
1086
1086
|
<title-continued lang="fr">(continué)</title-continued>
|
1087
1087
|
|
1088
|
+
</xsl:variable><xsl:variable name="bibdata">
|
1089
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
|
1090
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
|
1088
1091
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
1089
1092
|
<xsl:param name="name"/>
|
1090
1093
|
<xsl:param name="lang"/>
|
@@ -1113,6 +1116,7 @@
|
|
1113
1116
|
|
1114
1117
|
</xsl:attribute-set><xsl:attribute-set name="link-style">
|
1115
1118
|
|
1119
|
+
|
1116
1120
|
<xsl:attribute name="color">blue</xsl:attribute>
|
1117
1121
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1118
1122
|
|
@@ -1239,6 +1243,7 @@
|
|
1239
1243
|
|
1240
1244
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1241
1245
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1246
|
+
|
1242
1247
|
|
1243
1248
|
|
1244
1249
|
|
@@ -1267,6 +1272,7 @@
|
|
1267
1272
|
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
1268
1273
|
|
1269
1274
|
|
1275
|
+
|
1270
1276
|
<xsl:attribute name="color">blue</xsl:attribute>
|
1271
1277
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1272
1278
|
|
@@ -1280,6 +1286,7 @@
|
|
1280
1286
|
|
1281
1287
|
|
1282
1288
|
|
1289
|
+
|
1283
1290
|
|
1284
1291
|
|
1285
1292
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -1302,6 +1309,7 @@
|
|
1302
1309
|
|
1303
1310
|
|
1304
1311
|
|
1312
|
+
|
1305
1313
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1306
1314
|
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
1307
1315
|
|
@@ -1333,6 +1341,7 @@
|
|
1333
1341
|
|
1334
1342
|
|
1335
1343
|
|
1344
|
+
|
1336
1345
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1337
1346
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1338
1347
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
@@ -1341,6 +1350,7 @@
|
|
1341
1350
|
|
1342
1351
|
|
1343
1352
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1353
|
+
|
1344
1354
|
|
1345
1355
|
|
1346
1356
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
@@ -1365,6 +1375,7 @@
|
|
1365
1375
|
|
1366
1376
|
|
1367
1377
|
|
1378
|
+
|
1368
1379
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1369
1380
|
|
1370
1381
|
|
@@ -1381,6 +1392,7 @@
|
|
1381
1392
|
|
1382
1393
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1383
1394
|
|
1395
|
+
|
1384
1396
|
|
1385
1397
|
|
1386
1398
|
|
@@ -1414,10 +1426,12 @@
|
|
1414
1426
|
|
1415
1427
|
|
1416
1428
|
|
1429
|
+
|
1417
1430
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1418
1431
|
|
1419
1432
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1420
1433
|
|
1434
|
+
|
1421
1435
|
<xsl:attribute name="width">100%</xsl:attribute>
|
1422
1436
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1423
1437
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
@@ -1451,6 +1465,7 @@
|
|
1451
1465
|
|
1452
1466
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1453
1467
|
|
1468
|
+
|
1454
1469
|
</xsl:attribute-set><xsl:variable name="color-added-text">
|
1455
1470
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
1456
1471
|
</xsl:variable><xsl:attribute-set name="add-style">
|
@@ -1589,6 +1604,7 @@
|
|
1589
1604
|
<fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
|
1590
1605
|
|
1591
1606
|
|
1607
|
+
|
1592
1608
|
|
1593
1609
|
|
1594
1610
|
|
@@ -1598,6 +1614,8 @@
|
|
1598
1614
|
|
1599
1615
|
|
1600
1616
|
|
1617
|
+
|
1618
|
+
|
1601
1619
|
<xsl:attribute name="space-after">18pt</xsl:attribute>
|
1602
1620
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1603
1621
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1622,6 +1640,7 @@
|
|
1622
1640
|
|
1623
1641
|
|
1624
1642
|
|
1643
|
+
|
1625
1644
|
|
1626
1645
|
|
1627
1646
|
|
@@ -1767,11 +1786,22 @@
|
|
1767
1786
|
</xsl:choose>
|
1768
1787
|
|
1769
1788
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
|
1789
|
+
<xsl:param name="continued"/>
|
1770
1790
|
<xsl:if test="normalize-space() != ''">
|
1771
1791
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1772
1792
|
|
1773
1793
|
|
1774
|
-
<xsl:
|
1794
|
+
<xsl:choose>
|
1795
|
+
<xsl:when test="$continued = 'true'">
|
1796
|
+
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
1797
|
+
|
1798
|
+
</xsl:when>
|
1799
|
+
<xsl:otherwise>
|
1800
|
+
<xsl:apply-templates/>
|
1801
|
+
</xsl:otherwise>
|
1802
|
+
</xsl:choose>
|
1803
|
+
|
1804
|
+
|
1775
1805
|
</fo:block>
|
1776
1806
|
</xsl:if>
|
1777
1807
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
@@ -1911,18 +1941,18 @@
|
|
1911
1941
|
<xsl:apply-templates/>
|
1912
1942
|
</fo:table-header>
|
1913
1943
|
</xsl:template><xsl:template name="table-header-title">
|
1914
|
-
<xsl:param name="cols-count"/>
|
1944
|
+
<xsl:param name="cols-count"/>
|
1915
1945
|
<!-- row for title -->
|
1916
1946
|
<fo:table-row>
|
1917
1947
|
<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">
|
1918
|
-
|
1948
|
+
|
1949
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
|
1950
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
1951
|
+
</xsl:apply-templates>
|
1919
1952
|
<xsl:for-each select="ancestor::*[local-name()='table'][1]">
|
1920
1953
|
<xsl:call-template name="fn_name_display"/>
|
1921
|
-
</xsl:for-each>
|
1922
|
-
|
1923
|
-
<xsl:text> </xsl:text>
|
1924
|
-
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
1925
|
-
</fo:block>
|
1954
|
+
</xsl:for-each>
|
1955
|
+
|
1926
1956
|
</fo:table-cell>
|
1927
1957
|
</fo:table-row>
|
1928
1958
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -2143,6 +2173,7 @@
|
|
2143
2173
|
|
2144
2174
|
|
2145
2175
|
|
2176
|
+
|
2146
2177
|
</xsl:if>
|
2147
2178
|
<xsl:if test="$parent-name = 'tfoot'">
|
2148
2179
|
|
@@ -2180,6 +2211,7 @@
|
|
2180
2211
|
|
2181
2212
|
|
2182
2213
|
|
2214
|
+
|
2183
2215
|
<xsl:if test="$lang = 'ar'">
|
2184
2216
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2185
2217
|
</xsl:if>
|
@@ -2861,6 +2893,7 @@
|
|
2861
2893
|
|
2862
2894
|
|
2863
2895
|
|
2896
|
+
|
2864
2897
|
|
2865
2898
|
</xsl:variable>
|
2866
2899
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -3242,11 +3275,15 @@
|
|
3242
3275
|
</xsl:apply-templates>
|
3243
3276
|
</xsl:template><xsl:template name="getLang">
|
3244
3277
|
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
3278
|
+
<xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
3245
3279
|
<xsl:variable name="language">
|
3246
3280
|
<xsl:choose>
|
3247
3281
|
<xsl:when test="$language_current != ''">
|
3248
3282
|
<xsl:value-of select="$language_current"/>
|
3249
3283
|
</xsl:when>
|
3284
|
+
<xsl:when test="$language_current_2 != ''">
|
3285
|
+
<xsl:value-of select="$language_current_2"/>
|
3286
|
+
</xsl:when>
|
3250
3287
|
<xsl:otherwise>
|
3251
3288
|
<xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
3252
3289
|
</xsl:otherwise>
|
@@ -3463,6 +3500,7 @@
|
|
3463
3500
|
|
3464
3501
|
|
3465
3502
|
<fo:inline xsl:use-attribute-sets="note-name-style">
|
3503
|
+
|
3466
3504
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3467
3505
|
</fo:inline>
|
3468
3506
|
<xsl:apply-templates/>
|
@@ -3489,6 +3527,7 @@
|
|
3489
3527
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
3490
3528
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3491
3529
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
3530
|
+
|
3492
3531
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3493
3532
|
</fo:inline>
|
3494
3533
|
<xsl:apply-templates/>
|
@@ -3566,7 +3605,10 @@
|
|
3566
3605
|
<xsl:for-each select="*[local-name() = 'note']">
|
3567
3606
|
<xsl:call-template name="note"/>
|
3568
3607
|
</xsl:for-each>
|
3569
|
-
|
3608
|
+
|
3609
|
+
|
3610
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3611
|
+
|
3570
3612
|
</fo:block-container>
|
3571
3613
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
3572
3614
|
<fo:block id="{@id}">
|
@@ -3685,15 +3727,15 @@
|
|
3685
3727
|
</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">
|
3686
3728
|
<xsl:apply-templates mode="bookmarks"/>
|
3687
3729
|
<xsl:text> </xsl:text>
|
3688
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
|
3730
|
+
</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">
|
3689
3731
|
<xsl:value-of select="."/>
|
3690
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
|
3732
|
+
</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">
|
3691
3733
|
<xsl:value-of select="."/>
|
3692
3734
|
</xsl:template><xsl:template match="node()" mode="contents">
|
3693
3735
|
<xsl:apply-templates mode="contents"/>
|
3694
3736
|
</xsl:template><xsl:template match="node()" mode="bookmarks">
|
3695
3737
|
<xsl:apply-templates mode="bookmarks"/>
|
3696
|
-
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
|
3738
|
+
</xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
|
3697
3739
|
<xsl:apply-templates select="."/>
|
3698
3740
|
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
3699
3741
|
<xsl:apply-templates mode="bookmarks"/>
|
@@ -3892,6 +3934,8 @@
|
|
3892
3934
|
</fo:list-item-body>
|
3893
3935
|
</fo:list-item>
|
3894
3936
|
</fo:list-block>
|
3937
|
+
</xsl:template><xsl:template name="extractSection">
|
3938
|
+
<xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
3895
3939
|
</xsl:template><xsl:template name="extractTitle">
|
3896
3940
|
<xsl:choose>
|
3897
3941
|
<xsl:when test="*[local-name() = 'tab']">
|
@@ -3939,6 +3983,7 @@
|
|
3939
3983
|
|
3940
3984
|
|
3941
3985
|
|
3986
|
+
|
3942
3987
|
|
3943
3988
|
|
3944
3989
|
|
@@ -4261,7 +4306,7 @@
|
|
4261
4306
|
</fo:inline>
|
4262
4307
|
</xsl:otherwise>
|
4263
4308
|
</xsl:choose>
|
4264
|
-
</xsl:template><xsl:template match="*[local-name() = 'termsource']">
|
4309
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
4265
4310
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4266
4311
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4267
4312
|
<xsl:variable name="termsource_text">
|
@@ -4270,13 +4315,15 @@
|
|
4270
4315
|
|
4271
4316
|
<xsl:choose>
|
4272
4317
|
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
4273
|
-
<xsl:apply-templates/>
|
4318
|
+
<!-- <xsl:apply-templates /> -->
|
4319
|
+
<xsl:copy-of select="$termsource_text"/>
|
4274
4320
|
</xsl:when>
|
4275
4321
|
<xsl:otherwise>
|
4276
4322
|
|
4277
4323
|
<xsl:text>[</xsl:text>
|
4278
4324
|
|
4279
|
-
<xsl:apply-templates/>
|
4325
|
+
<!-- <xsl:apply-templates /> -->
|
4326
|
+
<xsl:copy-of select="$termsource_text"/>
|
4280
4327
|
|
4281
4328
|
<xsl:text>]</xsl:text>
|
4282
4329
|
|
@@ -4287,14 +4334,20 @@
|
|
4287
4334
|
<xsl:if test="normalize-space() != ''">
|
4288
4335
|
<xsl:value-of select="."/>
|
4289
4336
|
</xsl:if>
|
4290
|
-
</xsl:template><xsl:
|
4337
|
+
</xsl:template><xsl:variable name="localized.source">
|
4338
|
+
<xsl:call-template name="getLocalizedString">
|
4339
|
+
<xsl:with-param name="key">source</xsl:with-param>
|
4340
|
+
</xsl:call-template>
|
4341
|
+
</xsl:variable><xsl:template match="*[local-name() = 'origin']">
|
4291
4342
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4343
|
+
<xsl:if test="normalize-space(@citeas) = ''">
|
4344
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4345
|
+
</xsl:if>
|
4292
4346
|
|
4293
4347
|
<fo:inline>
|
4294
4348
|
|
4295
4349
|
|
4296
4350
|
|
4297
|
-
|
4298
4351
|
<xsl:call-template name="getTitle">
|
4299
4352
|
<xsl:with-param name="name" select="'title-source'"/>
|
4300
4353
|
</xsl:call-template>
|
@@ -4507,7 +4560,6 @@
|
|
4507
4560
|
|
4508
4561
|
|
4509
4562
|
|
4510
|
-
|
4511
4563
|
<xsl:apply-templates/>
|
4512
4564
|
</fo:block>
|
4513
4565
|
|
@@ -4550,7 +4602,7 @@
|
|
4550
4602
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
4551
4603
|
</xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
4552
4604
|
<xsl:choose>
|
4553
|
-
<xsl:when test="parent::*[local-name() = 'note']">
|
4605
|
+
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
4554
4606
|
<fo:block-container>
|
4555
4607
|
<xsl:attribute name="margin-left">
|
4556
4608
|
<xsl:choose>
|
@@ -4560,6 +4612,7 @@
|
|
4560
4612
|
</xsl:attribute>
|
4561
4613
|
|
4562
4614
|
|
4615
|
+
|
4563
4616
|
<fo:block-container margin-left="0mm">
|
4564
4617
|
<fo:block>
|
4565
4618
|
<xsl:apply-templates select="." mode="ul_ol"/>
|
@@ -4860,6 +4913,10 @@
|
|
4860
4913
|
</xsl:choose>
|
4861
4914
|
<!-- end IHO bibitem processing -->
|
4862
4915
|
|
4916
|
+
|
4917
|
+
|
4918
|
+
|
4919
|
+
|
4863
4920
|
</xsl:template><xsl:template name="processBibitemDocId">
|
4864
4921
|
<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')]"/>
|
4865
4922
|
<xsl:choose>
|
@@ -5252,6 +5309,7 @@
|
|
5252
5309
|
|
5253
5310
|
|
5254
5311
|
|
5312
|
+
|
5255
5313
|
<xsl:value-of select="document('')//*/namespace::iho"/>
|
5256
5314
|
|
5257
5315
|
|
@@ -5311,13 +5369,18 @@
|
|
5311
5369
|
</xsl:call-template>
|
5312
5370
|
</xsl:if>
|
5313
5371
|
</xsl:template><xsl:template name="getLocalizedString">
|
5314
|
-
<xsl:param name="key"/>
|
5372
|
+
<xsl:param name="key"/>
|
5315
5373
|
|
5316
5374
|
<xsl:variable name="curr_lang">
|
5317
5375
|
<xsl:call-template name="getLang"/>
|
5318
5376
|
</xsl:variable>
|
5319
5377
|
|
5378
|
+
<xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
5379
|
+
|
5320
5380
|
<xsl:choose>
|
5381
|
+
<xsl:when test="$data_value != ''">
|
5382
|
+
<xsl:value-of select="$data_value"/>
|
5383
|
+
</xsl:when>
|
5321
5384
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
5322
5385
|
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5323
5386
|
</xsl:when>
|
@@ -1085,6 +1085,9 @@
|
|
1085
1085
|
<title-continued lang="en">(continued)</title-continued>
|
1086
1086
|
<title-continued lang="fr">(continué)</title-continued>
|
1087
1087
|
|
1088
|
+
</xsl:variable><xsl:variable name="bibdata">
|
1089
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
|
1090
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
|
1088
1091
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
1089
1092
|
<xsl:param name="name"/>
|
1090
1093
|
<xsl:param name="lang"/>
|
@@ -1113,6 +1116,7 @@
|
|
1113
1116
|
|
1114
1117
|
</xsl:attribute-set><xsl:attribute-set name="link-style">
|
1115
1118
|
|
1119
|
+
|
1116
1120
|
<xsl:attribute name="color">blue</xsl:attribute>
|
1117
1121
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1118
1122
|
|
@@ -1239,6 +1243,7 @@
|
|
1239
1243
|
|
1240
1244
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1241
1245
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1246
|
+
|
1242
1247
|
|
1243
1248
|
|
1244
1249
|
|
@@ -1267,6 +1272,7 @@
|
|
1267
1272
|
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
1268
1273
|
|
1269
1274
|
|
1275
|
+
|
1270
1276
|
<xsl:attribute name="color">blue</xsl:attribute>
|
1271
1277
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1272
1278
|
|
@@ -1280,6 +1286,7 @@
|
|
1280
1286
|
|
1281
1287
|
|
1282
1288
|
|
1289
|
+
|
1283
1290
|
|
1284
1291
|
|
1285
1292
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
@@ -1302,6 +1309,7 @@
|
|
1302
1309
|
|
1303
1310
|
|
1304
1311
|
|
1312
|
+
|
1305
1313
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
1306
1314
|
<xsl:attribute name="padding-right">2mm</xsl:attribute>
|
1307
1315
|
|
@@ -1333,6 +1341,7 @@
|
|
1333
1341
|
|
1334
1342
|
|
1335
1343
|
|
1344
|
+
|
1336
1345
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
1337
1346
|
<xsl:attribute name="margin-top">8pt</xsl:attribute>
|
1338
1347
|
<xsl:attribute name="margin-bottom">8pt</xsl:attribute>
|
@@ -1341,6 +1350,7 @@
|
|
1341
1350
|
|
1342
1351
|
|
1343
1352
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1353
|
+
|
1344
1354
|
|
1345
1355
|
|
1346
1356
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
@@ -1365,6 +1375,7 @@
|
|
1365
1375
|
|
1366
1376
|
|
1367
1377
|
|
1378
|
+
|
1368
1379
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
1369
1380
|
|
1370
1381
|
|
@@ -1381,6 +1392,7 @@
|
|
1381
1392
|
|
1382
1393
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1383
1394
|
|
1395
|
+
|
1384
1396
|
|
1385
1397
|
|
1386
1398
|
|
@@ -1414,10 +1426,12 @@
|
|
1414
1426
|
|
1415
1427
|
|
1416
1428
|
|
1429
|
+
|
1417
1430
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1418
1431
|
|
1419
1432
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1420
1433
|
|
1434
|
+
|
1421
1435
|
<xsl:attribute name="width">100%</xsl:attribute>
|
1422
1436
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1423
1437
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
@@ -1451,6 +1465,7 @@
|
|
1451
1465
|
|
1452
1466
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
1453
1467
|
|
1468
|
+
|
1454
1469
|
</xsl:attribute-set><xsl:variable name="color-added-text">
|
1455
1470
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
1456
1471
|
</xsl:variable><xsl:attribute-set name="add-style">
|
@@ -1589,6 +1604,7 @@
|
|
1589
1604
|
<fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
|
1590
1605
|
|
1591
1606
|
|
1607
|
+
|
1592
1608
|
|
1593
1609
|
|
1594
1610
|
|
@@ -1598,6 +1614,8 @@
|
|
1598
1614
|
|
1599
1615
|
|
1600
1616
|
|
1617
|
+
|
1618
|
+
|
1601
1619
|
<xsl:attribute name="space-after">18pt</xsl:attribute>
|
1602
1620
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1603
1621
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1622,6 +1640,7 @@
|
|
1622
1640
|
|
1623
1641
|
|
1624
1642
|
|
1643
|
+
|
1625
1644
|
|
1626
1645
|
|
1627
1646
|
|
@@ -1767,11 +1786,22 @@
|
|
1767
1786
|
</xsl:choose>
|
1768
1787
|
|
1769
1788
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
|
1789
|
+
<xsl:param name="continued"/>
|
1770
1790
|
<xsl:if test="normalize-space() != ''">
|
1771
1791
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1772
1792
|
|
1773
1793
|
|
1774
|
-
<xsl:
|
1794
|
+
<xsl:choose>
|
1795
|
+
<xsl:when test="$continued = 'true'">
|
1796
|
+
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
1797
|
+
|
1798
|
+
</xsl:when>
|
1799
|
+
<xsl:otherwise>
|
1800
|
+
<xsl:apply-templates/>
|
1801
|
+
</xsl:otherwise>
|
1802
|
+
</xsl:choose>
|
1803
|
+
|
1804
|
+
|
1775
1805
|
</fo:block>
|
1776
1806
|
</xsl:if>
|
1777
1807
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
@@ -1911,18 +1941,18 @@
|
|
1911
1941
|
<xsl:apply-templates/>
|
1912
1942
|
</fo:table-header>
|
1913
1943
|
</xsl:template><xsl:template name="table-header-title">
|
1914
|
-
<xsl:param name="cols-count"/>
|
1944
|
+
<xsl:param name="cols-count"/>
|
1915
1945
|
<!-- row for title -->
|
1916
1946
|
<fo:table-row>
|
1917
1947
|
<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">
|
1918
|
-
|
1948
|
+
|
1949
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
|
1950
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
1951
|
+
</xsl:apply-templates>
|
1919
1952
|
<xsl:for-each select="ancestor::*[local-name()='table'][1]">
|
1920
1953
|
<xsl:call-template name="fn_name_display"/>
|
1921
|
-
</xsl:for-each>
|
1922
|
-
|
1923
|
-
<xsl:text> </xsl:text>
|
1924
|
-
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
1925
|
-
</fo:block>
|
1954
|
+
</xsl:for-each>
|
1955
|
+
|
1926
1956
|
</fo:table-cell>
|
1927
1957
|
</fo:table-row>
|
1928
1958
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -2143,6 +2173,7 @@
|
|
2143
2173
|
|
2144
2174
|
|
2145
2175
|
|
2176
|
+
|
2146
2177
|
</xsl:if>
|
2147
2178
|
<xsl:if test="$parent-name = 'tfoot'">
|
2148
2179
|
|
@@ -2180,6 +2211,7 @@
|
|
2180
2211
|
|
2181
2212
|
|
2182
2213
|
|
2214
|
+
|
2183
2215
|
<xsl:if test="$lang = 'ar'">
|
2184
2216
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
2185
2217
|
</xsl:if>
|
@@ -2861,6 +2893,7 @@
|
|
2861
2893
|
|
2862
2894
|
|
2863
2895
|
|
2896
|
+
|
2864
2897
|
|
2865
2898
|
</xsl:variable>
|
2866
2899
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -3242,11 +3275,15 @@
|
|
3242
3275
|
</xsl:apply-templates>
|
3243
3276
|
</xsl:template><xsl:template name="getLang">
|
3244
3277
|
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
3278
|
+
<xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
3245
3279
|
<xsl:variable name="language">
|
3246
3280
|
<xsl:choose>
|
3247
3281
|
<xsl:when test="$language_current != ''">
|
3248
3282
|
<xsl:value-of select="$language_current"/>
|
3249
3283
|
</xsl:when>
|
3284
|
+
<xsl:when test="$language_current_2 != ''">
|
3285
|
+
<xsl:value-of select="$language_current_2"/>
|
3286
|
+
</xsl:when>
|
3250
3287
|
<xsl:otherwise>
|
3251
3288
|
<xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
3252
3289
|
</xsl:otherwise>
|
@@ -3463,6 +3500,7 @@
|
|
3463
3500
|
|
3464
3501
|
|
3465
3502
|
<fo:inline xsl:use-attribute-sets="note-name-style">
|
3503
|
+
|
3466
3504
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3467
3505
|
</fo:inline>
|
3468
3506
|
<xsl:apply-templates/>
|
@@ -3489,6 +3527,7 @@
|
|
3489
3527
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
3490
3528
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3491
3529
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
3530
|
+
|
3492
3531
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3493
3532
|
</fo:inline>
|
3494
3533
|
<xsl:apply-templates/>
|
@@ -3566,7 +3605,10 @@
|
|
3566
3605
|
<xsl:for-each select="*[local-name() = 'note']">
|
3567
3606
|
<xsl:call-template name="note"/>
|
3568
3607
|
</xsl:for-each>
|
3569
|
-
|
3608
|
+
|
3609
|
+
|
3610
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3611
|
+
|
3570
3612
|
</fo:block-container>
|
3571
3613
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
3572
3614
|
<fo:block id="{@id}">
|
@@ -3685,15 +3727,15 @@
|
|
3685
3727
|
</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">
|
3686
3728
|
<xsl:apply-templates mode="bookmarks"/>
|
3687
3729
|
<xsl:text> </xsl:text>
|
3688
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
|
3730
|
+
</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">
|
3689
3731
|
<xsl:value-of select="."/>
|
3690
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
|
3732
|
+
</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">
|
3691
3733
|
<xsl:value-of select="."/>
|
3692
3734
|
</xsl:template><xsl:template match="node()" mode="contents">
|
3693
3735
|
<xsl:apply-templates mode="contents"/>
|
3694
3736
|
</xsl:template><xsl:template match="node()" mode="bookmarks">
|
3695
3737
|
<xsl:apply-templates mode="bookmarks"/>
|
3696
|
-
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
|
3738
|
+
</xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
|
3697
3739
|
<xsl:apply-templates select="."/>
|
3698
3740
|
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
3699
3741
|
<xsl:apply-templates mode="bookmarks"/>
|
@@ -3892,6 +3934,8 @@
|
|
3892
3934
|
</fo:list-item-body>
|
3893
3935
|
</fo:list-item>
|
3894
3936
|
</fo:list-block>
|
3937
|
+
</xsl:template><xsl:template name="extractSection">
|
3938
|
+
<xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
3895
3939
|
</xsl:template><xsl:template name="extractTitle">
|
3896
3940
|
<xsl:choose>
|
3897
3941
|
<xsl:when test="*[local-name() = 'tab']">
|
@@ -3939,6 +3983,7 @@
|
|
3939
3983
|
|
3940
3984
|
|
3941
3985
|
|
3986
|
+
|
3942
3987
|
|
3943
3988
|
|
3944
3989
|
|
@@ -4261,7 +4306,7 @@
|
|
4261
4306
|
</fo:inline>
|
4262
4307
|
</xsl:otherwise>
|
4263
4308
|
</xsl:choose>
|
4264
|
-
</xsl:template><xsl:template match="*[local-name() = 'termsource']">
|
4309
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
4265
4310
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4266
4311
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4267
4312
|
<xsl:variable name="termsource_text">
|
@@ -4270,13 +4315,15 @@
|
|
4270
4315
|
|
4271
4316
|
<xsl:choose>
|
4272
4317
|
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
4273
|
-
<xsl:apply-templates/>
|
4318
|
+
<!-- <xsl:apply-templates /> -->
|
4319
|
+
<xsl:copy-of select="$termsource_text"/>
|
4274
4320
|
</xsl:when>
|
4275
4321
|
<xsl:otherwise>
|
4276
4322
|
|
4277
4323
|
<xsl:text>[</xsl:text>
|
4278
4324
|
|
4279
|
-
<xsl:apply-templates/>
|
4325
|
+
<!-- <xsl:apply-templates /> -->
|
4326
|
+
<xsl:copy-of select="$termsource_text"/>
|
4280
4327
|
|
4281
4328
|
<xsl:text>]</xsl:text>
|
4282
4329
|
|
@@ -4287,14 +4334,20 @@
|
|
4287
4334
|
<xsl:if test="normalize-space() != ''">
|
4288
4335
|
<xsl:value-of select="."/>
|
4289
4336
|
</xsl:if>
|
4290
|
-
</xsl:template><xsl:
|
4337
|
+
</xsl:template><xsl:variable name="localized.source">
|
4338
|
+
<xsl:call-template name="getLocalizedString">
|
4339
|
+
<xsl:with-param name="key">source</xsl:with-param>
|
4340
|
+
</xsl:call-template>
|
4341
|
+
</xsl:variable><xsl:template match="*[local-name() = 'origin']">
|
4291
4342
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4343
|
+
<xsl:if test="normalize-space(@citeas) = ''">
|
4344
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4345
|
+
</xsl:if>
|
4292
4346
|
|
4293
4347
|
<fo:inline>
|
4294
4348
|
|
4295
4349
|
|
4296
4350
|
|
4297
|
-
|
4298
4351
|
<xsl:call-template name="getTitle">
|
4299
4352
|
<xsl:with-param name="name" select="'title-source'"/>
|
4300
4353
|
</xsl:call-template>
|
@@ -4507,7 +4560,6 @@
|
|
4507
4560
|
|
4508
4561
|
|
4509
4562
|
|
4510
|
-
|
4511
4563
|
<xsl:apply-templates/>
|
4512
4564
|
</fo:block>
|
4513
4565
|
|
@@ -4550,7 +4602,7 @@
|
|
4550
4602
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
4551
4603
|
</xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
4552
4604
|
<xsl:choose>
|
4553
|
-
<xsl:when test="parent::*[local-name() = 'note']">
|
4605
|
+
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
4554
4606
|
<fo:block-container>
|
4555
4607
|
<xsl:attribute name="margin-left">
|
4556
4608
|
<xsl:choose>
|
@@ -4560,6 +4612,7 @@
|
|
4560
4612
|
</xsl:attribute>
|
4561
4613
|
|
4562
4614
|
|
4615
|
+
|
4563
4616
|
<fo:block-container margin-left="0mm">
|
4564
4617
|
<fo:block>
|
4565
4618
|
<xsl:apply-templates select="." mode="ul_ol"/>
|
@@ -4860,6 +4913,10 @@
|
|
4860
4913
|
</xsl:choose>
|
4861
4914
|
<!-- end IHO bibitem processing -->
|
4862
4915
|
|
4916
|
+
|
4917
|
+
|
4918
|
+
|
4919
|
+
|
4863
4920
|
</xsl:template><xsl:template name="processBibitemDocId">
|
4864
4921
|
<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')]"/>
|
4865
4922
|
<xsl:choose>
|
@@ -5252,6 +5309,7 @@
|
|
5252
5309
|
|
5253
5310
|
|
5254
5311
|
|
5312
|
+
|
5255
5313
|
<xsl:value-of select="document('')//*/namespace::iho"/>
|
5256
5314
|
|
5257
5315
|
|
@@ -5311,13 +5369,18 @@
|
|
5311
5369
|
</xsl:call-template>
|
5312
5370
|
</xsl:if>
|
5313
5371
|
</xsl:template><xsl:template name="getLocalizedString">
|
5314
|
-
<xsl:param name="key"/>
|
5372
|
+
<xsl:param name="key"/>
|
5315
5373
|
|
5316
5374
|
<xsl:variable name="curr_lang">
|
5317
5375
|
<xsl:call-template name="getLang"/>
|
5318
5376
|
</xsl:variable>
|
5319
5377
|
|
5378
|
+
<xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
5379
|
+
|
5320
5380
|
<xsl:choose>
|
5381
|
+
<xsl:when test="$data_value != ''">
|
5382
|
+
<xsl:value-of select="$data_value"/>
|
5383
|
+
</xsl:when>
|
5321
5384
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
5322
5385
|
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
5323
5386
|
</xsl:when>
|
data/metanorma.yml
CHANGED
@@ -61,5 +61,8 @@ termsdefs_titles:
|
|
61
61
|
- Definitions and terminology
|
62
62
|
- Terms and definitions
|
63
63
|
- Terms, definitions and abbreviations
|
64
|
+
- Terms, definitions and symbols
|
65
|
+
- Terms, definitions and abbreviated terms
|
66
|
+
- Terms, definitions, symbols and abbreviated terms
|
64
67
|
normref_titles:
|
65
68
|
- References
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.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-
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|