metanorma-csa 1.8.2 → 1.8.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 +4 -4
- data/lib/asciidoctor/csa/biblio.rng +1 -0
- data/lib/asciidoctor/csa/isodoc.rng +1 -3
- data/lib/isodoc/csa/csa.standard.xsl +83 -20
- data/lib/metanorma/csa/version.rb +1 -1
- 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: 1c7e132a7ba4bc10103b15b3e017a682872eef818912d69a24a0245364864c3f
|
|
4
|
+
data.tar.gz: b1856f5f189efc7263ac72cc447d82809403cc8e1b1c42086fcd14f14d8ddc0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0f0e53eb1e557d5a971f3049ec2bf8cdd717dab84779a000fae8d19d35850f930c7ff2b61b0f4f9a1e256106aa8e55d7e91f919424d0e4e8708468846d5ffe8
|
|
7
|
+
data.tar.gz: f6d84227cde217a93dd6fb18b4e886b7e9708fe111706acb852f19ef992c00eb411eb706837f47cd980f2ada769faec575686ad48f37635cccd7d136196c9d7e
|
|
@@ -1007,6 +1007,9 @@
|
|
|
1007
1007
|
<title-continued lang="en">(continued)</title-continued>
|
|
1008
1008
|
<title-continued lang="fr">(continué)</title-continued>
|
|
1009
1009
|
|
|
1010
|
+
</xsl:variable><xsl:variable name="bibdata">
|
|
1011
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
|
|
1012
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
|
|
1010
1013
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
|
1011
1014
|
<xsl:param name="name"/>
|
|
1012
1015
|
<xsl:param name="lang"/>
|
|
@@ -1037,6 +1040,7 @@
|
|
|
1037
1040
|
|
|
1038
1041
|
|
|
1039
1042
|
|
|
1043
|
+
|
|
1040
1044
|
<xsl:attribute name="color">rgb(33, 94, 159)</xsl:attribute>
|
|
1041
1045
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
|
1042
1046
|
|
|
@@ -1161,6 +1165,7 @@
|
|
|
1161
1165
|
|
|
1162
1166
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
|
1163
1167
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
1168
|
+
|
|
1164
1169
|
|
|
1165
1170
|
|
|
1166
1171
|
|
|
@@ -1183,6 +1188,7 @@
|
|
|
1183
1188
|
|
|
1184
1189
|
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
|
1185
1190
|
|
|
1191
|
+
|
|
1186
1192
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
|
1187
1193
|
|
|
1188
1194
|
|
|
@@ -1197,6 +1203,7 @@
|
|
|
1197
1203
|
|
|
1198
1204
|
</xsl:attribute-set><xsl:attribute-set name="note-style">
|
|
1199
1205
|
|
|
1206
|
+
|
|
1200
1207
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
1201
1208
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
1202
1209
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
@@ -1217,6 +1224,7 @@
|
|
|
1217
1224
|
|
|
1218
1225
|
</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">
|
|
1219
1226
|
|
|
1227
|
+
|
|
1220
1228
|
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
1221
1229
|
|
|
1222
1230
|
|
|
@@ -1249,6 +1257,7 @@
|
|
|
1249
1257
|
|
|
1250
1258
|
</xsl:attribute-set><xsl:attribute-set name="termnote-style">
|
|
1251
1259
|
|
|
1260
|
+
|
|
1252
1261
|
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
|
1253
1262
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
1254
1263
|
|
|
@@ -1257,6 +1266,7 @@
|
|
|
1257
1266
|
|
|
1258
1267
|
|
|
1259
1268
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
|
1269
|
+
|
|
1260
1270
|
|
|
1261
1271
|
|
|
1262
1272
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
|
@@ -1280,6 +1290,7 @@
|
|
|
1280
1290
|
|
|
1281
1291
|
</xsl:attribute-set><xsl:attribute-set name="termsource-style">
|
|
1282
1292
|
|
|
1293
|
+
|
|
1283
1294
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
1284
1295
|
<xsl:attribute name="keep-with-previous">always</xsl:attribute>
|
|
1285
1296
|
|
|
@@ -1299,6 +1310,7 @@
|
|
|
1299
1310
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
|
1300
1311
|
|
|
1301
1312
|
|
|
1313
|
+
|
|
1302
1314
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
1303
1315
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
1304
1316
|
<xsl:attribute name="text-align">center</xsl:attribute>
|
|
@@ -1331,10 +1343,12 @@
|
|
|
1331
1343
|
|
|
1332
1344
|
|
|
1333
1345
|
|
|
1346
|
+
|
|
1334
1347
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
|
1335
1348
|
|
|
1336
1349
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
|
1337
1350
|
|
|
1351
|
+
|
|
1338
1352
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
1339
1353
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
|
1340
1354
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -1368,6 +1382,7 @@
|
|
|
1368
1382
|
<xsl:attribute name="space-after">6pt</xsl:attribute>
|
|
1369
1383
|
|
|
1370
1384
|
|
|
1385
|
+
|
|
1371
1386
|
</xsl:attribute-set><xsl:variable name="color-added-text">
|
|
1372
1387
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
|
1373
1388
|
</xsl:variable><xsl:attribute-set name="add-style">
|
|
@@ -1504,6 +1519,7 @@
|
|
|
1504
1519
|
<fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
|
|
1505
1520
|
|
|
1506
1521
|
|
|
1522
|
+
|
|
1507
1523
|
|
|
1508
1524
|
|
|
1509
1525
|
|
|
@@ -1516,6 +1532,8 @@
|
|
|
1516
1532
|
|
|
1517
1533
|
|
|
1518
1534
|
|
|
1535
|
+
|
|
1536
|
+
|
|
1519
1537
|
<xsl:variable name="table_width">
|
|
1520
1538
|
<!-- for centered table always 100% (@width will be set for middle/second cell of outer table) -->
|
|
1521
1539
|
100%
|
|
@@ -1533,6 +1551,7 @@
|
|
|
1533
1551
|
|
|
1534
1552
|
|
|
1535
1553
|
|
|
1554
|
+
|
|
1536
1555
|
|
|
1537
1556
|
|
|
1538
1557
|
|
|
@@ -1675,11 +1694,22 @@
|
|
|
1675
1694
|
</xsl:choose>
|
|
1676
1695
|
|
|
1677
1696
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
|
|
1697
|
+
<xsl:param name="continued"/>
|
|
1678
1698
|
<xsl:if test="normalize-space() != ''">
|
|
1679
1699
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
|
1680
1700
|
|
|
1681
1701
|
|
|
1682
|
-
<xsl:
|
|
1702
|
+
<xsl:choose>
|
|
1703
|
+
<xsl:when test="$continued = 'true'">
|
|
1704
|
+
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
|
1705
|
+
|
|
1706
|
+
</xsl:when>
|
|
1707
|
+
<xsl:otherwise>
|
|
1708
|
+
<xsl:apply-templates/>
|
|
1709
|
+
</xsl:otherwise>
|
|
1710
|
+
</xsl:choose>
|
|
1711
|
+
|
|
1712
|
+
|
|
1683
1713
|
</fo:block>
|
|
1684
1714
|
</xsl:if>
|
|
1685
1715
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
|
@@ -1819,18 +1849,18 @@
|
|
|
1819
1849
|
<xsl:apply-templates/>
|
|
1820
1850
|
</fo:table-header>
|
|
1821
1851
|
</xsl:template><xsl:template name="table-header-title">
|
|
1822
|
-
<xsl:param name="cols-count"/>
|
|
1852
|
+
<xsl:param name="cols-count"/>
|
|
1823
1853
|
<!-- row for title -->
|
|
1824
1854
|
<fo:table-row>
|
|
1825
1855
|
<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">
|
|
1826
|
-
|
|
1856
|
+
|
|
1857
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
|
|
1858
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
|
1859
|
+
</xsl:apply-templates>
|
|
1827
1860
|
<xsl:for-each select="ancestor::*[local-name()='table'][1]">
|
|
1828
1861
|
<xsl:call-template name="fn_name_display"/>
|
|
1829
|
-
</xsl:for-each>
|
|
1830
|
-
|
|
1831
|
-
<xsl:text> </xsl:text>
|
|
1832
|
-
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
|
1833
|
-
</fo:block>
|
|
1862
|
+
</xsl:for-each>
|
|
1863
|
+
|
|
1834
1864
|
</fo:table-cell>
|
|
1835
1865
|
</fo:table-row>
|
|
1836
1866
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
|
@@ -2051,6 +2081,7 @@
|
|
|
2051
2081
|
|
|
2052
2082
|
|
|
2053
2083
|
|
|
2084
|
+
|
|
2054
2085
|
</xsl:if>
|
|
2055
2086
|
<xsl:if test="$parent-name = 'tfoot'">
|
|
2056
2087
|
|
|
@@ -2088,6 +2119,7 @@
|
|
|
2088
2119
|
|
|
2089
2120
|
|
|
2090
2121
|
|
|
2122
|
+
|
|
2091
2123
|
<xsl:if test="$lang = 'ar'">
|
|
2092
2124
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
|
2093
2125
|
</xsl:if>
|
|
@@ -2753,6 +2785,7 @@
|
|
|
2753
2785
|
|
|
2754
2786
|
|
|
2755
2787
|
|
|
2788
|
+
|
|
2756
2789
|
|
|
2757
2790
|
</xsl:variable>
|
|
2758
2791
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
|
@@ -3134,11 +3167,15 @@
|
|
|
3134
3167
|
</xsl:apply-templates>
|
|
3135
3168
|
</xsl:template><xsl:template name="getLang">
|
|
3136
3169
|
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
|
3170
|
+
<xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
|
3137
3171
|
<xsl:variable name="language">
|
|
3138
3172
|
<xsl:choose>
|
|
3139
3173
|
<xsl:when test="$language_current != ''">
|
|
3140
3174
|
<xsl:value-of select="$language_current"/>
|
|
3141
3175
|
</xsl:when>
|
|
3176
|
+
<xsl:when test="$language_current_2 != ''">
|
|
3177
|
+
<xsl:value-of select="$language_current_2"/>
|
|
3178
|
+
</xsl:when>
|
|
3142
3179
|
<xsl:otherwise>
|
|
3143
3180
|
<xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
|
3144
3181
|
</xsl:otherwise>
|
|
@@ -3355,6 +3392,7 @@
|
|
|
3355
3392
|
|
|
3356
3393
|
|
|
3357
3394
|
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
3395
|
+
|
|
3358
3396
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
|
3359
3397
|
</fo:inline>
|
|
3360
3398
|
<xsl:apply-templates/>
|
|
@@ -3381,6 +3419,7 @@
|
|
|
3381
3419
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
|
3382
3420
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
|
3383
3421
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
|
3422
|
+
|
|
3384
3423
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
|
3385
3424
|
</fo:inline>
|
|
3386
3425
|
<xsl:apply-templates/>
|
|
@@ -3458,7 +3497,10 @@
|
|
|
3458
3497
|
<xsl:for-each select="*[local-name() = 'note']">
|
|
3459
3498
|
<xsl:call-template name="note"/>
|
|
3460
3499
|
</xsl:for-each>
|
|
3461
|
-
|
|
3500
|
+
|
|
3501
|
+
|
|
3502
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
|
3503
|
+
|
|
3462
3504
|
</fo:block-container>
|
|
3463
3505
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
|
3464
3506
|
<fo:block id="{@id}">
|
|
@@ -3577,15 +3619,15 @@
|
|
|
3577
3619
|
</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">
|
|
3578
3620
|
<xsl:apply-templates mode="bookmarks"/>
|
|
3579
3621
|
<xsl:text> </xsl:text>
|
|
3580
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
|
|
3622
|
+
</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">
|
|
3581
3623
|
<xsl:value-of select="."/>
|
|
3582
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
|
|
3624
|
+
</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">
|
|
3583
3625
|
<xsl:value-of select="."/>
|
|
3584
3626
|
</xsl:template><xsl:template match="node()" mode="contents">
|
|
3585
3627
|
<xsl:apply-templates mode="contents"/>
|
|
3586
3628
|
</xsl:template><xsl:template match="node()" mode="bookmarks">
|
|
3587
3629
|
<xsl:apply-templates mode="bookmarks"/>
|
|
3588
|
-
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
|
|
3630
|
+
</xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
|
|
3589
3631
|
<xsl:apply-templates select="."/>
|
|
3590
3632
|
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
|
3591
3633
|
<xsl:apply-templates mode="bookmarks"/>
|
|
@@ -3784,6 +3826,8 @@
|
|
|
3784
3826
|
</fo:list-item-body>
|
|
3785
3827
|
</fo:list-item>
|
|
3786
3828
|
</fo:list-block>
|
|
3829
|
+
</xsl:template><xsl:template name="extractSection">
|
|
3830
|
+
<xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
|
3787
3831
|
</xsl:template><xsl:template name="extractTitle">
|
|
3788
3832
|
<xsl:choose>
|
|
3789
3833
|
<xsl:when test="*[local-name() = 'tab']">
|
|
@@ -3831,6 +3875,7 @@
|
|
|
3831
3875
|
|
|
3832
3876
|
|
|
3833
3877
|
|
|
3878
|
+
|
|
3834
3879
|
|
|
3835
3880
|
|
|
3836
3881
|
|
|
@@ -4153,7 +4198,7 @@
|
|
|
4153
4198
|
</fo:inline>
|
|
4154
4199
|
</xsl:otherwise>
|
|
4155
4200
|
</xsl:choose>
|
|
4156
|
-
</xsl:template><xsl:template match="*[local-name() = 'termsource']">
|
|
4201
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
|
4157
4202
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
|
4158
4203
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
|
4159
4204
|
<xsl:variable name="termsource_text">
|
|
@@ -4162,13 +4207,15 @@
|
|
|
4162
4207
|
|
|
4163
4208
|
<xsl:choose>
|
|
4164
4209
|
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
|
4165
|
-
<xsl:apply-templates/>
|
|
4210
|
+
<!-- <xsl:apply-templates /> -->
|
|
4211
|
+
<xsl:copy-of select="$termsource_text"/>
|
|
4166
4212
|
</xsl:when>
|
|
4167
4213
|
<xsl:otherwise>
|
|
4168
4214
|
|
|
4169
4215
|
<xsl:text>[</xsl:text>
|
|
4170
4216
|
|
|
4171
|
-
<xsl:apply-templates/>
|
|
4217
|
+
<!-- <xsl:apply-templates /> -->
|
|
4218
|
+
<xsl:copy-of select="$termsource_text"/>
|
|
4172
4219
|
|
|
4173
4220
|
<xsl:text>]</xsl:text>
|
|
4174
4221
|
|
|
@@ -4179,14 +4226,20 @@
|
|
|
4179
4226
|
<xsl:if test="normalize-space() != ''">
|
|
4180
4227
|
<xsl:value-of select="."/>
|
|
4181
4228
|
</xsl:if>
|
|
4182
|
-
</xsl:template><xsl:
|
|
4229
|
+
</xsl:template><xsl:variable name="localized.source">
|
|
4230
|
+
<xsl:call-template name="getLocalizedString">
|
|
4231
|
+
<xsl:with-param name="key">source</xsl:with-param>
|
|
4232
|
+
</xsl:call-template>
|
|
4233
|
+
</xsl:variable><xsl:template match="*[local-name() = 'origin']">
|
|
4183
4234
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
|
4235
|
+
<xsl:if test="normalize-space(@citeas) = ''">
|
|
4236
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
|
4237
|
+
</xsl:if>
|
|
4184
4238
|
|
|
4185
4239
|
<fo:inline>
|
|
4186
4240
|
|
|
4187
4241
|
|
|
4188
4242
|
|
|
4189
|
-
|
|
4190
4243
|
<xsl:call-template name="getTitle">
|
|
4191
4244
|
<xsl:with-param name="name" select="'title-source'"/>
|
|
4192
4245
|
</xsl:call-template>
|
|
@@ -4395,7 +4448,6 @@
|
|
|
4395
4448
|
|
|
4396
4449
|
|
|
4397
4450
|
|
|
4398
|
-
|
|
4399
4451
|
<xsl:apply-templates/>
|
|
4400
4452
|
</fo:block>
|
|
4401
4453
|
|
|
@@ -4438,7 +4490,7 @@
|
|
|
4438
4490
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
4439
4491
|
</xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
|
4440
4492
|
<xsl:choose>
|
|
4441
|
-
<xsl:when test="parent::*[local-name() = 'note']">
|
|
4493
|
+
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
|
4442
4494
|
<fo:block-container>
|
|
4443
4495
|
<xsl:attribute name="margin-left">
|
|
4444
4496
|
<xsl:choose>
|
|
@@ -4448,6 +4500,7 @@
|
|
|
4448
4500
|
</xsl:attribute>
|
|
4449
4501
|
|
|
4450
4502
|
|
|
4503
|
+
|
|
4451
4504
|
<fo:block-container margin-left="0mm">
|
|
4452
4505
|
<fo:block>
|
|
4453
4506
|
<xsl:apply-templates select="." mode="ul_ol"/>
|
|
@@ -4649,6 +4702,10 @@
|
|
|
4649
4702
|
|
|
4650
4703
|
|
|
4651
4704
|
|
|
4705
|
+
|
|
4706
|
+
|
|
4707
|
+
|
|
4708
|
+
|
|
4652
4709
|
</xsl:template><xsl:template name="processBibitemDocId">
|
|
4653
4710
|
<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')]"/>
|
|
4654
4711
|
<xsl:choose>
|
|
@@ -5038,6 +5095,7 @@
|
|
|
5038
5095
|
|
|
5039
5096
|
|
|
5040
5097
|
|
|
5098
|
+
|
|
5041
5099
|
<xsl:value-of select="document('')//*/namespace::csa"/>
|
|
5042
5100
|
|
|
5043
5101
|
|
|
@@ -5100,13 +5158,18 @@
|
|
|
5100
5158
|
</xsl:call-template>
|
|
5101
5159
|
</xsl:if>
|
|
5102
5160
|
</xsl:template><xsl:template name="getLocalizedString">
|
|
5103
|
-
<xsl:param name="key"/>
|
|
5161
|
+
<xsl:param name="key"/>
|
|
5104
5162
|
|
|
5105
5163
|
<xsl:variable name="curr_lang">
|
|
5106
5164
|
<xsl:call-template name="getLang"/>
|
|
5107
5165
|
</xsl:variable>
|
|
5108
5166
|
|
|
5167
|
+
<xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
|
5168
|
+
|
|
5109
5169
|
<xsl:choose>
|
|
5170
|
+
<xsl:when test="$data_value != ''">
|
|
5171
|
+
<xsl:value-of select="$data_value"/>
|
|
5172
|
+
</xsl:when>
|
|
5110
5173
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
|
5111
5174
|
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
|
5112
5175
|
</xsl:when>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-csa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.8.
|
|
4
|
+
version: 1.8.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: metanorma-generic
|