metanorma-mpfa 0.6.2 → 0.6.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/mpfa/biblio.rng +1 -0
- data/lib/asciidoctor/mpfa/isodoc.rng +1 -3
- data/lib/isodoc/mpfa/mpfa.circular.xsl +83 -20
- data/lib/isodoc/mpfa/mpfa.compliance-standards-for-mpf-trustees.xsl +83 -20
- data/lib/isodoc/mpfa/mpfa.guidelines.xsl +83 -20
- data/lib/isodoc/mpfa/mpfa.standards.xsl +83 -20
- data/lib/isodoc/mpfa/mpfa.supervision-of-mpf-intermediaries.xsl +83 -20
- data/lib/metanorma/mpfa/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: c5e0aaad0c0d673caad2b51c60289c96c76905659b67c801e0af981cc49a77e6
|
4
|
+
data.tar.gz: bc1177bbc83154a9b681bade923429c680d9e053dbe9bd94d59a0bd745036519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 971216ce5dcf092458b25d8e59ab681653afc34a7b4c271f9e8a70a8e3da365697f8e9c3b124355612fa311e85a00e0b367ce283839a4698b0c346122d220983
|
7
|
+
data.tar.gz: 6fc494d46e70f225bf7389819fe53cd5f9c8ccb67610edad1a739cbd340580678b035124b533f42b5f87e7066a0f2ad2822f0f79aba83838045ae43692254f0b
|
@@ -912,6 +912,9 @@
|
|
912
912
|
<title-continued lang="en">(continued)</title-continued>
|
913
913
|
<title-continued lang="fr">(continué)</title-continued>
|
914
914
|
|
915
|
+
</xsl:variable><xsl:variable name="bibdata">
|
916
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
|
917
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
|
915
918
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
916
919
|
<xsl:param name="name"/>
|
917
920
|
<xsl:param name="lang"/>
|
@@ -940,6 +943,7 @@
|
|
940
943
|
|
941
944
|
</xsl:attribute-set><xsl:attribute-set name="link-style">
|
942
945
|
|
946
|
+
|
943
947
|
<xsl:attribute name="color">blue</xsl:attribute>
|
944
948
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
945
949
|
|
@@ -1055,6 +1059,7 @@
|
|
1055
1059
|
|
1056
1060
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1057
1061
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1062
|
+
|
1058
1063
|
|
1059
1064
|
|
1060
1065
|
|
@@ -1082,6 +1087,7 @@
|
|
1082
1087
|
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
1083
1088
|
|
1084
1089
|
|
1090
|
+
|
1085
1091
|
<xsl:attribute name="color">blue</xsl:attribute>
|
1086
1092
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1087
1093
|
|
@@ -1098,6 +1104,7 @@
|
|
1098
1104
|
|
1099
1105
|
|
1100
1106
|
|
1107
|
+
|
1101
1108
|
|
1102
1109
|
|
1103
1110
|
|
@@ -1122,6 +1129,7 @@
|
|
1122
1129
|
|
1123
1130
|
|
1124
1131
|
|
1132
|
+
|
1125
1133
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1126
1134
|
|
1127
1135
|
|
@@ -1142,7 +1150,9 @@
|
|
1142
1150
|
|
1143
1151
|
|
1144
1152
|
|
1153
|
+
|
1145
1154
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1155
|
+
|
1146
1156
|
|
1147
1157
|
|
1148
1158
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
@@ -1168,6 +1178,7 @@
|
|
1168
1178
|
|
1169
1179
|
|
1170
1180
|
|
1181
|
+
|
1171
1182
|
</xsl:attribute-set><xsl:attribute-set name="origin-style">
|
1172
1183
|
|
1173
1184
|
|
@@ -1176,6 +1187,7 @@
|
|
1176
1187
|
|
1177
1188
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1178
1189
|
|
1190
|
+
|
1179
1191
|
|
1180
1192
|
|
1181
1193
|
|
@@ -1209,10 +1221,12 @@
|
|
1209
1221
|
|
1210
1222
|
|
1211
1223
|
|
1224
|
+
|
1212
1225
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1213
1226
|
|
1214
1227
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1215
1228
|
|
1229
|
+
|
1216
1230
|
<xsl:attribute name="width">100%</xsl:attribute>
|
1217
1231
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1218
1232
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
@@ -1242,6 +1256,7 @@
|
|
1242
1256
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
1243
1257
|
|
1244
1258
|
|
1259
|
+
|
1245
1260
|
</xsl:attribute-set><xsl:variable name="color-added-text">
|
1246
1261
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
1247
1262
|
</xsl:variable><xsl:attribute-set name="add-style">
|
@@ -1380,6 +1395,7 @@
|
|
1380
1395
|
<fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
|
1381
1396
|
|
1382
1397
|
|
1398
|
+
|
1383
1399
|
|
1384
1400
|
|
1385
1401
|
|
@@ -1390,6 +1406,8 @@
|
|
1390
1406
|
|
1391
1407
|
|
1392
1408
|
|
1409
|
+
|
1410
|
+
|
1393
1411
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
1394
1412
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1395
1413
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1413,6 +1431,7 @@
|
|
1413
1431
|
|
1414
1432
|
|
1415
1433
|
|
1434
|
+
|
1416
1435
|
|
1417
1436
|
|
1418
1437
|
|
@@ -1558,11 +1577,22 @@
|
|
1558
1577
|
</xsl:choose>
|
1559
1578
|
|
1560
1579
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
|
1580
|
+
<xsl:param name="continued"/>
|
1561
1581
|
<xsl:if test="normalize-space() != ''">
|
1562
1582
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1563
1583
|
|
1564
1584
|
|
1565
|
-
<xsl:
|
1585
|
+
<xsl:choose>
|
1586
|
+
<xsl:when test="$continued = 'true'">
|
1587
|
+
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
1588
|
+
|
1589
|
+
</xsl:when>
|
1590
|
+
<xsl:otherwise>
|
1591
|
+
<xsl:apply-templates/>
|
1592
|
+
</xsl:otherwise>
|
1593
|
+
</xsl:choose>
|
1594
|
+
|
1595
|
+
|
1566
1596
|
</fo:block>
|
1567
1597
|
</xsl:if>
|
1568
1598
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
@@ -1702,18 +1732,18 @@
|
|
1702
1732
|
<xsl:apply-templates/>
|
1703
1733
|
</fo:table-header>
|
1704
1734
|
</xsl:template><xsl:template name="table-header-title">
|
1705
|
-
<xsl:param name="cols-count"/>
|
1735
|
+
<xsl:param name="cols-count"/>
|
1706
1736
|
<!-- row for title -->
|
1707
1737
|
<fo:table-row>
|
1708
1738
|
<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">
|
1709
|
-
|
1739
|
+
|
1740
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
|
1741
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
1742
|
+
</xsl:apply-templates>
|
1710
1743
|
<xsl:for-each select="ancestor::*[local-name()='table'][1]">
|
1711
1744
|
<xsl:call-template name="fn_name_display"/>
|
1712
|
-
</xsl:for-each>
|
1713
|
-
|
1714
|
-
<xsl:text> </xsl:text>
|
1715
|
-
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
1716
|
-
</fo:block>
|
1745
|
+
</xsl:for-each>
|
1746
|
+
|
1717
1747
|
</fo:table-cell>
|
1718
1748
|
</fo:table-row>
|
1719
1749
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -1934,6 +1964,7 @@
|
|
1934
1964
|
|
1935
1965
|
|
1936
1966
|
|
1967
|
+
|
1937
1968
|
</xsl:if>
|
1938
1969
|
<xsl:if test="$parent-name = 'tfoot'">
|
1939
1970
|
|
@@ -1969,6 +2000,7 @@
|
|
1969
2000
|
|
1970
2001
|
|
1971
2002
|
|
2003
|
+
|
1972
2004
|
|
1973
2005
|
<xsl:attribute name="border-top">solid black 2pt</xsl:attribute>
|
1974
2006
|
<xsl:attribute name="border-bottom">solid black 2pt</xsl:attribute>
|
@@ -2639,6 +2671,7 @@
|
|
2639
2671
|
|
2640
2672
|
|
2641
2673
|
|
2674
|
+
|
2642
2675
|
|
2643
2676
|
</xsl:variable>
|
2644
2677
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -3020,11 +3053,15 @@
|
|
3020
3053
|
</xsl:apply-templates>
|
3021
3054
|
</xsl:template><xsl:template name="getLang">
|
3022
3055
|
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
3056
|
+
<xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
3023
3057
|
<xsl:variable name="language">
|
3024
3058
|
<xsl:choose>
|
3025
3059
|
<xsl:when test="$language_current != ''">
|
3026
3060
|
<xsl:value-of select="$language_current"/>
|
3027
3061
|
</xsl:when>
|
3062
|
+
<xsl:when test="$language_current_2 != ''">
|
3063
|
+
<xsl:value-of select="$language_current_2"/>
|
3064
|
+
</xsl:when>
|
3028
3065
|
<xsl:otherwise>
|
3029
3066
|
<xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
3030
3067
|
</xsl:otherwise>
|
@@ -3237,6 +3274,7 @@
|
|
3237
3274
|
|
3238
3275
|
|
3239
3276
|
<fo:inline xsl:use-attribute-sets="note-name-style">
|
3277
|
+
|
3240
3278
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3241
3279
|
</fo:inline>
|
3242
3280
|
<xsl:apply-templates/>
|
@@ -3263,6 +3301,7 @@
|
|
3263
3301
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
3264
3302
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3265
3303
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
3304
|
+
|
3266
3305
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3267
3306
|
</fo:inline>
|
3268
3307
|
<xsl:apply-templates/>
|
@@ -3340,7 +3379,10 @@
|
|
3340
3379
|
<xsl:for-each select="*[local-name() = 'note']">
|
3341
3380
|
<xsl:call-template name="note"/>
|
3342
3381
|
</xsl:for-each>
|
3343
|
-
|
3382
|
+
|
3383
|
+
|
3384
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3385
|
+
|
3344
3386
|
</fo:block-container>
|
3345
3387
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
3346
3388
|
<fo:block id="{@id}">
|
@@ -3459,15 +3501,15 @@
|
|
3459
3501
|
</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">
|
3460
3502
|
<xsl:apply-templates mode="bookmarks"/>
|
3461
3503
|
<xsl:text> </xsl:text>
|
3462
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
|
3504
|
+
</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">
|
3463
3505
|
<xsl:value-of select="."/>
|
3464
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
|
3506
|
+
</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">
|
3465
3507
|
<xsl:value-of select="."/>
|
3466
3508
|
</xsl:template><xsl:template match="node()" mode="contents">
|
3467
3509
|
<xsl:apply-templates mode="contents"/>
|
3468
3510
|
</xsl:template><xsl:template match="node()" mode="bookmarks">
|
3469
3511
|
<xsl:apply-templates mode="bookmarks"/>
|
3470
|
-
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
|
3512
|
+
</xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
|
3471
3513
|
<xsl:apply-templates select="."/>
|
3472
3514
|
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
3473
3515
|
<xsl:apply-templates mode="bookmarks"/>
|
@@ -3666,6 +3708,8 @@
|
|
3666
3708
|
</fo:list-item-body>
|
3667
3709
|
</fo:list-item>
|
3668
3710
|
</fo:list-block>
|
3711
|
+
</xsl:template><xsl:template name="extractSection">
|
3712
|
+
<xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
3669
3713
|
</xsl:template><xsl:template name="extractTitle">
|
3670
3714
|
<xsl:choose>
|
3671
3715
|
<xsl:when test="*[local-name() = 'tab']">
|
@@ -3713,6 +3757,7 @@
|
|
3713
3757
|
|
3714
3758
|
|
3715
3759
|
|
3760
|
+
|
3716
3761
|
|
3717
3762
|
|
3718
3763
|
|
@@ -4035,7 +4080,7 @@
|
|
4035
4080
|
</fo:inline>
|
4036
4081
|
</xsl:otherwise>
|
4037
4082
|
</xsl:choose>
|
4038
|
-
</xsl:template><xsl:template match="*[local-name() = 'termsource']">
|
4083
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
4039
4084
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4040
4085
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4041
4086
|
<xsl:variable name="termsource_text">
|
@@ -4044,11 +4089,13 @@
|
|
4044
4089
|
|
4045
4090
|
<xsl:choose>
|
4046
4091
|
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
4047
|
-
<xsl:apply-templates/>
|
4092
|
+
<!-- <xsl:apply-templates /> -->
|
4093
|
+
<xsl:copy-of select="$termsource_text"/>
|
4048
4094
|
</xsl:when>
|
4049
4095
|
<xsl:otherwise>
|
4050
4096
|
|
4051
|
-
<xsl:apply-templates/>
|
4097
|
+
<!-- <xsl:apply-templates /> -->
|
4098
|
+
<xsl:copy-of select="$termsource_text"/>
|
4052
4099
|
|
4053
4100
|
</xsl:otherwise>
|
4054
4101
|
</xsl:choose>
|
@@ -4057,14 +4104,20 @@
|
|
4057
4104
|
<xsl:if test="normalize-space() != ''">
|
4058
4105
|
<xsl:value-of select="."/>
|
4059
4106
|
</xsl:if>
|
4060
|
-
</xsl:template><xsl:
|
4107
|
+
</xsl:template><xsl:variable name="localized.source">
|
4108
|
+
<xsl:call-template name="getLocalizedString">
|
4109
|
+
<xsl:with-param name="key">source</xsl:with-param>
|
4110
|
+
</xsl:call-template>
|
4111
|
+
</xsl:variable><xsl:template match="*[local-name() = 'origin']">
|
4061
4112
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4113
|
+
<xsl:if test="normalize-space(@citeas) = ''">
|
4114
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4115
|
+
</xsl:if>
|
4062
4116
|
|
4063
4117
|
<fo:inline>
|
4064
4118
|
|
4065
4119
|
|
4066
4120
|
|
4067
|
-
|
4068
4121
|
<xsl:call-template name="getTitle">
|
4069
4122
|
<xsl:with-param name="name" select="'title-source'"/>
|
4070
4123
|
</xsl:call-template>
|
@@ -4271,7 +4324,6 @@
|
|
4271
4324
|
|
4272
4325
|
|
4273
4326
|
|
4274
|
-
|
4275
4327
|
<xsl:apply-templates/>
|
4276
4328
|
</fo:block>
|
4277
4329
|
|
@@ -4314,7 +4366,7 @@
|
|
4314
4366
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
4315
4367
|
</xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
4316
4368
|
<xsl:choose>
|
4317
|
-
<xsl:when test="parent::*[local-name() = 'note']">
|
4369
|
+
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
4318
4370
|
<fo:block-container>
|
4319
4371
|
<xsl:attribute name="margin-left">
|
4320
4372
|
<xsl:choose>
|
@@ -4324,6 +4376,7 @@
|
|
4324
4376
|
</xsl:attribute>
|
4325
4377
|
|
4326
4378
|
|
4379
|
+
|
4327
4380
|
<fo:block-container margin-left="0mm">
|
4328
4381
|
<fo:block>
|
4329
4382
|
<xsl:apply-templates select="." mode="ul_ol"/>
|
@@ -4525,6 +4578,10 @@
|
|
4525
4578
|
|
4526
4579
|
|
4527
4580
|
|
4581
|
+
|
4582
|
+
|
4583
|
+
|
4584
|
+
|
4528
4585
|
</xsl:template><xsl:template name="processBibitemDocId">
|
4529
4586
|
<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')]"/>
|
4530
4587
|
<xsl:choose>
|
@@ -4909,6 +4966,7 @@
|
|
4909
4966
|
|
4910
4967
|
|
4911
4968
|
|
4969
|
+
|
4912
4970
|
|
4913
4971
|
|
4914
4972
|
|
@@ -4969,13 +5027,18 @@
|
|
4969
5027
|
</xsl:call-template>
|
4970
5028
|
</xsl:if>
|
4971
5029
|
</xsl:template><xsl:template name="getLocalizedString">
|
4972
|
-
<xsl:param name="key"/>
|
5030
|
+
<xsl:param name="key"/>
|
4973
5031
|
|
4974
5032
|
<xsl:variable name="curr_lang">
|
4975
5033
|
<xsl:call-template name="getLang"/>
|
4976
5034
|
</xsl:variable>
|
4977
5035
|
|
5036
|
+
<xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
5037
|
+
|
4978
5038
|
<xsl:choose>
|
5039
|
+
<xsl:when test="$data_value != ''">
|
5040
|
+
<xsl:value-of select="$data_value"/>
|
5041
|
+
</xsl:when>
|
4979
5042
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
4980
5043
|
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
4981
5044
|
</xsl:when>
|
@@ -912,6 +912,9 @@
|
|
912
912
|
<title-continued lang="en">(continued)</title-continued>
|
913
913
|
<title-continued lang="fr">(continué)</title-continued>
|
914
914
|
|
915
|
+
</xsl:variable><xsl:variable name="bibdata">
|
916
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'bibdata']"/>
|
917
|
+
<xsl:copy-of select="//*[contains(local-name(), '-standard')]/*[local-name() = 'localized-strings']"/>
|
915
918
|
</xsl:variable><xsl:variable name="tab_zh"> </xsl:variable><xsl:template name="getTitle">
|
916
919
|
<xsl:param name="name"/>
|
917
920
|
<xsl:param name="lang"/>
|
@@ -940,6 +943,7 @@
|
|
940
943
|
|
941
944
|
</xsl:attribute-set><xsl:attribute-set name="link-style">
|
942
945
|
|
946
|
+
|
943
947
|
<xsl:attribute name="color">blue</xsl:attribute>
|
944
948
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
945
949
|
|
@@ -1055,6 +1059,7 @@
|
|
1055
1059
|
|
1056
1060
|
</xsl:attribute-set><xsl:attribute-set name="table-name-style">
|
1057
1061
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
1062
|
+
|
1058
1063
|
|
1059
1064
|
|
1060
1065
|
|
@@ -1082,6 +1087,7 @@
|
|
1082
1087
|
</xsl:attribute-set><xsl:attribute-set name="xref-style">
|
1083
1088
|
|
1084
1089
|
|
1090
|
+
|
1085
1091
|
<xsl:attribute name="color">blue</xsl:attribute>
|
1086
1092
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
1087
1093
|
|
@@ -1098,6 +1104,7 @@
|
|
1098
1104
|
|
1099
1105
|
|
1100
1106
|
|
1107
|
+
|
1101
1108
|
|
1102
1109
|
|
1103
1110
|
|
@@ -1122,6 +1129,7 @@
|
|
1122
1129
|
|
1123
1130
|
|
1124
1131
|
|
1132
|
+
|
1125
1133
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1126
1134
|
|
1127
1135
|
|
@@ -1142,7 +1150,9 @@
|
|
1142
1150
|
|
1143
1151
|
|
1144
1152
|
|
1153
|
+
|
1145
1154
|
</xsl:attribute-set><xsl:attribute-set name="termnote-name-style">
|
1155
|
+
|
1146
1156
|
|
1147
1157
|
|
1148
1158
|
</xsl:attribute-set><xsl:attribute-set name="quote-style">
|
@@ -1168,6 +1178,7 @@
|
|
1168
1178
|
|
1169
1179
|
|
1170
1180
|
|
1181
|
+
|
1171
1182
|
</xsl:attribute-set><xsl:attribute-set name="origin-style">
|
1172
1183
|
|
1173
1184
|
|
@@ -1176,6 +1187,7 @@
|
|
1176
1187
|
|
1177
1188
|
</xsl:attribute-set><xsl:attribute-set name="figure-name-style">
|
1178
1189
|
|
1190
|
+
|
1179
1191
|
|
1180
1192
|
|
1181
1193
|
|
@@ -1209,10 +1221,12 @@
|
|
1209
1221
|
|
1210
1222
|
|
1211
1223
|
|
1224
|
+
|
1212
1225
|
</xsl:attribute-set><xsl:attribute-set name="figure-pseudocode-p-style">
|
1213
1226
|
|
1214
1227
|
</xsl:attribute-set><xsl:attribute-set name="image-graphic-style">
|
1215
1228
|
|
1229
|
+
|
1216
1230
|
<xsl:attribute name="width">100%</xsl:attribute>
|
1217
1231
|
<xsl:attribute name="content-height">scale-to-fit</xsl:attribute>
|
1218
1232
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
@@ -1242,6 +1256,7 @@
|
|
1242
1256
|
</xsl:attribute-set><xsl:attribute-set name="definition-style">
|
1243
1257
|
|
1244
1258
|
|
1259
|
+
|
1245
1260
|
</xsl:attribute-set><xsl:variable name="color-added-text">
|
1246
1261
|
<xsl:text>rgb(0, 255, 0)</xsl:text>
|
1247
1262
|
</xsl:variable><xsl:attribute-set name="add-style">
|
@@ -1380,6 +1395,7 @@
|
|
1380
1395
|
<fo:block-container margin-left="-{$margin-left}mm" margin-right="-{$margin-left}mm">
|
1381
1396
|
|
1382
1397
|
|
1398
|
+
|
1383
1399
|
|
1384
1400
|
|
1385
1401
|
|
@@ -1390,6 +1406,8 @@
|
|
1390
1406
|
|
1391
1407
|
|
1392
1408
|
|
1409
|
+
|
1410
|
+
|
1393
1411
|
<xsl:attribute name="space-after">12pt</xsl:attribute>
|
1394
1412
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1395
1413
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1413,6 +1431,7 @@
|
|
1413
1431
|
|
1414
1432
|
|
1415
1433
|
|
1434
|
+
|
1416
1435
|
|
1417
1436
|
|
1418
1437
|
|
@@ -1558,11 +1577,22 @@
|
|
1558
1577
|
</xsl:choose>
|
1559
1578
|
|
1560
1579
|
</xsl:template><xsl:template match="*[local-name()='table']/*[local-name() = 'name']"/><xsl:template match="*[local-name()='table']/*[local-name() = 'name']" mode="presentation">
|
1580
|
+
<xsl:param name="continued"/>
|
1561
1581
|
<xsl:if test="normalize-space() != ''">
|
1562
1582
|
<fo:block xsl:use-attribute-sets="table-name-style">
|
1563
1583
|
|
1564
1584
|
|
1565
|
-
<xsl:
|
1585
|
+
<xsl:choose>
|
1586
|
+
<xsl:when test="$continued = 'true'">
|
1587
|
+
<!-- <xsl:if test="$namespace = 'bsi'"></xsl:if> -->
|
1588
|
+
|
1589
|
+
</xsl:when>
|
1590
|
+
<xsl:otherwise>
|
1591
|
+
<xsl:apply-templates/>
|
1592
|
+
</xsl:otherwise>
|
1593
|
+
</xsl:choose>
|
1594
|
+
|
1595
|
+
|
1566
1596
|
</fo:block>
|
1567
1597
|
</xsl:if>
|
1568
1598
|
</xsl:template><xsl:template name="calculate-columns-numbers">
|
@@ -1702,18 +1732,18 @@
|
|
1702
1732
|
<xsl:apply-templates/>
|
1703
1733
|
</fo:table-header>
|
1704
1734
|
</xsl:template><xsl:template name="table-header-title">
|
1705
|
-
<xsl:param name="cols-count"/>
|
1735
|
+
<xsl:param name="cols-count"/>
|
1706
1736
|
<!-- row for title -->
|
1707
1737
|
<fo:table-row>
|
1708
1738
|
<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">
|
1709
|
-
|
1739
|
+
|
1740
|
+
<xsl:apply-templates select="ancestor::*[local-name()='table']/*[local-name()='name']" mode="presentation">
|
1741
|
+
<xsl:with-param name="continued">true</xsl:with-param>
|
1742
|
+
</xsl:apply-templates>
|
1710
1743
|
<xsl:for-each select="ancestor::*[local-name()='table'][1]">
|
1711
1744
|
<xsl:call-template name="fn_name_display"/>
|
1712
|
-
</xsl:for-each>
|
1713
|
-
|
1714
|
-
<xsl:text> </xsl:text>
|
1715
|
-
<fo:retrieve-table-marker retrieve-class-name="table_continued"/>
|
1716
|
-
</fo:block>
|
1745
|
+
</xsl:for-each>
|
1746
|
+
|
1717
1747
|
</fo:table-cell>
|
1718
1748
|
</fo:table-row>
|
1719
1749
|
</xsl:template><xsl:template match="*[local-name()='thead']" mode="process_tbody">
|
@@ -1934,6 +1964,7 @@
|
|
1934
1964
|
|
1935
1965
|
|
1936
1966
|
|
1967
|
+
|
1937
1968
|
</xsl:if>
|
1938
1969
|
<xsl:if test="$parent-name = 'tfoot'">
|
1939
1970
|
|
@@ -1969,6 +2000,7 @@
|
|
1969
2000
|
|
1970
2001
|
|
1971
2002
|
|
2003
|
+
|
1972
2004
|
|
1973
2005
|
<xsl:attribute name="border-top">solid black 2pt</xsl:attribute>
|
1974
2006
|
<xsl:attribute name="border-bottom">solid black 2pt</xsl:attribute>
|
@@ -2639,6 +2671,7 @@
|
|
2639
2671
|
|
2640
2672
|
|
2641
2673
|
|
2674
|
+
|
2642
2675
|
|
2643
2676
|
</xsl:variable>
|
2644
2677
|
<xsl:variable name="font-size" select="normalize-space($_font-size)"/>
|
@@ -3020,11 +3053,15 @@
|
|
3020
3053
|
</xsl:apply-templates>
|
3021
3054
|
</xsl:template><xsl:template name="getLang">
|
3022
3055
|
<xsl:variable name="language_current" select="normalize-space(//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
3056
|
+
<xsl:variable name="language_current_2" select="normalize-space(xalan:nodeset($bibdata)//*[local-name()='bibdata']//*[local-name()='language'][@current = 'true'])"/>
|
3023
3057
|
<xsl:variable name="language">
|
3024
3058
|
<xsl:choose>
|
3025
3059
|
<xsl:when test="$language_current != ''">
|
3026
3060
|
<xsl:value-of select="$language_current"/>
|
3027
3061
|
</xsl:when>
|
3062
|
+
<xsl:when test="$language_current_2 != ''">
|
3063
|
+
<xsl:value-of select="$language_current_2"/>
|
3064
|
+
</xsl:when>
|
3028
3065
|
<xsl:otherwise>
|
3029
3066
|
<xsl:value-of select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
3030
3067
|
</xsl:otherwise>
|
@@ -3237,6 +3274,7 @@
|
|
3237
3274
|
|
3238
3275
|
|
3239
3276
|
<fo:inline xsl:use-attribute-sets="note-name-style">
|
3277
|
+
|
3240
3278
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3241
3279
|
</fo:inline>
|
3242
3280
|
<xsl:apply-templates/>
|
@@ -3263,6 +3301,7 @@
|
|
3263
3301
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']">
|
3264
3302
|
<fo:block id="{@id}" xsl:use-attribute-sets="termnote-style">
|
3265
3303
|
<fo:inline xsl:use-attribute-sets="termnote-name-style">
|
3304
|
+
|
3266
3305
|
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3267
3306
|
</fo:inline>
|
3268
3307
|
<xsl:apply-templates/>
|
@@ -3340,7 +3379,10 @@
|
|
3340
3379
|
<xsl:for-each select="*[local-name() = 'note']">
|
3341
3380
|
<xsl:call-template name="note"/>
|
3342
3381
|
</xsl:for-each>
|
3343
|
-
|
3382
|
+
|
3383
|
+
|
3384
|
+
<xsl:apply-templates select="*[local-name() = 'name']" mode="presentation"/>
|
3385
|
+
|
3344
3386
|
</fo:block-container>
|
3345
3387
|
</xsl:template><xsl:template match="*[local-name() = 'figure'][@class = 'pseudocode']">
|
3346
3388
|
<fo:block id="{@id}">
|
@@ -3459,15 +3501,15 @@
|
|
3459
3501
|
</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">
|
3460
3502
|
<xsl:apply-templates mode="bookmarks"/>
|
3461
3503
|
<xsl:text> </xsl:text>
|
3462
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="contents" priority="2">
|
3504
|
+
</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">
|
3463
3505
|
<xsl:value-of select="."/>
|
3464
|
-
</xsl:template><xsl:template match="*[local-name() = 'name']/text()" mode="bookmarks" priority="2">
|
3506
|
+
</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">
|
3465
3507
|
<xsl:value-of select="."/>
|
3466
3508
|
</xsl:template><xsl:template match="node()" mode="contents">
|
3467
3509
|
<xsl:apply-templates mode="contents"/>
|
3468
3510
|
</xsl:template><xsl:template match="node()" mode="bookmarks">
|
3469
3511
|
<xsl:apply-templates mode="bookmarks"/>
|
3470
|
-
</xsl:template><xsl:template match="*[local-name() = 'stem']" mode="contents">
|
3512
|
+
</xsl:template><xsl:template match="*[local-name() = 'title' or local-name() = 'name']//*[local-name() = 'stem']" mode="contents">
|
3471
3513
|
<xsl:apply-templates select="."/>
|
3472
3514
|
</xsl:template><xsl:template match="*[local-name() = 'references'][@hidden='true']" mode="contents" priority="3"/><xsl:template match="*[local-name() = 'stem']" mode="bookmarks">
|
3473
3515
|
<xsl:apply-templates mode="bookmarks"/>
|
@@ -3666,6 +3708,8 @@
|
|
3666
3708
|
</fo:list-item-body>
|
3667
3709
|
</fo:list-item>
|
3668
3710
|
</fo:list-block>
|
3711
|
+
</xsl:template><xsl:template name="extractSection">
|
3712
|
+
<xsl:value-of select="*[local-name() = 'tab'][1]/preceding-sibling::node()"/>
|
3669
3713
|
</xsl:template><xsl:template name="extractTitle">
|
3670
3714
|
<xsl:choose>
|
3671
3715
|
<xsl:when test="*[local-name() = 'tab']">
|
@@ -3713,6 +3757,7 @@
|
|
3713
3757
|
|
3714
3758
|
|
3715
3759
|
|
3760
|
+
|
3716
3761
|
|
3717
3762
|
|
3718
3763
|
|
@@ -4035,7 +4080,7 @@
|
|
4035
4080
|
</fo:inline>
|
4036
4081
|
</xsl:otherwise>
|
4037
4082
|
</xsl:choose>
|
4038
|
-
</xsl:template><xsl:template match="*[local-name() = 'termsource']">
|
4083
|
+
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
4039
4084
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4040
4085
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4041
4086
|
<xsl:variable name="termsource_text">
|
@@ -4044,11 +4089,13 @@
|
|
4044
4089
|
|
4045
4090
|
<xsl:choose>
|
4046
4091
|
<xsl:when test="starts-with(normalize-space($termsource_text), '[')">
|
4047
|
-
<xsl:apply-templates/>
|
4092
|
+
<!-- <xsl:apply-templates /> -->
|
4093
|
+
<xsl:copy-of select="$termsource_text"/>
|
4048
4094
|
</xsl:when>
|
4049
4095
|
<xsl:otherwise>
|
4050
4096
|
|
4051
|
-
<xsl:apply-templates/>
|
4097
|
+
<!-- <xsl:apply-templates /> -->
|
4098
|
+
<xsl:copy-of select="$termsource_text"/>
|
4052
4099
|
|
4053
4100
|
</xsl:otherwise>
|
4054
4101
|
</xsl:choose>
|
@@ -4057,14 +4104,20 @@
|
|
4057
4104
|
<xsl:if test="normalize-space() != ''">
|
4058
4105
|
<xsl:value-of select="."/>
|
4059
4106
|
</xsl:if>
|
4060
|
-
</xsl:template><xsl:
|
4107
|
+
</xsl:template><xsl:variable name="localized.source">
|
4108
|
+
<xsl:call-template name="getLocalizedString">
|
4109
|
+
<xsl:with-param name="key">source</xsl:with-param>
|
4110
|
+
</xsl:call-template>
|
4111
|
+
</xsl:variable><xsl:template match="*[local-name() = 'origin']">
|
4061
4112
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4113
|
+
<xsl:if test="normalize-space(@citeas) = ''">
|
4114
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="@bibitemid"/></xsl:attribute>
|
4115
|
+
</xsl:if>
|
4062
4116
|
|
4063
4117
|
<fo:inline>
|
4064
4118
|
|
4065
4119
|
|
4066
4120
|
|
4067
|
-
|
4068
4121
|
<xsl:call-template name="getTitle">
|
4069
4122
|
<xsl:with-param name="name" select="'title-source'"/>
|
4070
4123
|
</xsl:call-template>
|
@@ -4271,7 +4324,6 @@
|
|
4271
4324
|
|
4272
4325
|
|
4273
4326
|
|
4274
|
-
|
4275
4327
|
<xsl:apply-templates/>
|
4276
4328
|
</fo:block>
|
4277
4329
|
|
@@ -4314,7 +4366,7 @@
|
|
4314
4366
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
4315
4367
|
</xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
|
4316
4368
|
<xsl:choose>
|
4317
|
-
<xsl:when test="parent::*[local-name() = 'note']">
|
4369
|
+
<xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
|
4318
4370
|
<fo:block-container>
|
4319
4371
|
<xsl:attribute name="margin-left">
|
4320
4372
|
<xsl:choose>
|
@@ -4324,6 +4376,7 @@
|
|
4324
4376
|
</xsl:attribute>
|
4325
4377
|
|
4326
4378
|
|
4379
|
+
|
4327
4380
|
<fo:block-container margin-left="0mm">
|
4328
4381
|
<fo:block>
|
4329
4382
|
<xsl:apply-templates select="." mode="ul_ol"/>
|
@@ -4525,6 +4578,10 @@
|
|
4525
4578
|
|
4526
4579
|
|
4527
4580
|
|
4581
|
+
|
4582
|
+
|
4583
|
+
|
4584
|
+
|
4528
4585
|
</xsl:template><xsl:template name="processBibitemDocId">
|
4529
4586
|
<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')]"/>
|
4530
4587
|
<xsl:choose>
|
@@ -4909,6 +4966,7 @@
|
|
4909
4966
|
|
4910
4967
|
|
4911
4968
|
|
4969
|
+
|
4912
4970
|
|
4913
4971
|
|
4914
4972
|
|
@@ -4969,13 +5027,18 @@
|
|
4969
5027
|
</xsl:call-template>
|
4970
5028
|
</xsl:if>
|
4971
5029
|
</xsl:template><xsl:template name="getLocalizedString">
|
4972
|
-
<xsl:param name="key"/>
|
5030
|
+
<xsl:param name="key"/>
|
4973
5031
|
|
4974
5032
|
<xsl:variable name="curr_lang">
|
4975
5033
|
<xsl:call-template name="getLang"/>
|
4976
5034
|
</xsl:variable>
|
4977
5035
|
|
5036
|
+
<xsl:variable name="data_value" select="normalize-space(xalan:nodeset($bibdata)//*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang])"/>
|
5037
|
+
|
4978
5038
|
<xsl:choose>
|
5039
|
+
<xsl:when test="$data_value != ''">
|
5040
|
+
<xsl:value-of select="$data_value"/>
|
5041
|
+
</xsl:when>
|
4979
5042
|
<xsl:when test="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]">
|
4980
5043
|
<xsl:value-of select="/*/*[local-name() = 'localized-strings']/*[local-name() = 'localized-string'][@key = $key and @language = $curr_lang]"/>
|
4981
5044
|
</xsl:when>
|