metanorma-ribose 2.8.10 → 2.8.11
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/isodoc/ribose/html/htmlstyle.css +4 -0
- data/lib/isodoc/ribose/i18n-en.yaml +1 -0
- data/lib/isodoc/ribose/ribose.standard.xsl +204 -120
- data/lib/isodoc/ribose/xref.rb +7 -4
- data/lib/metanorma/ribose/basicdoc.rng +22 -13
- data/lib/metanorma/ribose/isodoc.rng +1 -1
- data/lib/metanorma/ribose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 233ffe29adf4a3ae21f01ac42d9373ba2d6473a79fec86cdb87c8cee74dc8fc0
|
|
4
|
+
data.tar.gz: 7f822d8f931d00dbaa058eb3916bb5f415faad768c17f2838596594d67571537
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ef9903176d1e00321221a802730676f89e0a91e07ffe768e78563efc915fda755738300be623ca1147e6fcd0a145d5ac2c8d6e52ff05741f592aa0125837a64
|
|
7
|
+
data.tar.gz: faba8b3ec1e9f32b1519b347a654f515d54b7de3dd6c9348f47144ba92abdc936baf62486b7108eb9969f48140c39f846ebdd29a85406eae1614512654192397
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
<xsl:with-param name="num" select="$num"/>
|
|
269
269
|
<xsl:with-param name="section">toc</xsl:with-param>
|
|
270
270
|
</xsl:call-template>
|
|
271
|
-
<fo:flow flow-name="xsl-region-body">
|
|
271
|
+
<fo:flow flow-name="xsl-region-body" role="SKIP">
|
|
272
272
|
|
|
273
273
|
<xsl:copy-of select="$toc_and_boilerplate"/>
|
|
274
274
|
|
|
@@ -581,7 +581,10 @@
|
|
|
581
581
|
|
|
582
582
|
<xsl:template match="mn:preface/mn:clause[@type = 'toc']" name="toc" priority="3">
|
|
583
583
|
<xsl:param name="num"/>
|
|
584
|
-
<fo:block
|
|
584
|
+
<fo:block xsl:use-attribute-sets="toc-container-style">
|
|
585
|
+
<xsl:call-template name="refine_toc-container-style"/>
|
|
586
|
+
<xsl:call-template name="addTagElementT"/>
|
|
587
|
+
|
|
585
588
|
<xsl:copy-of select="@id"/>
|
|
586
589
|
<xsl:apply-templates/>
|
|
587
590
|
|
|
@@ -863,7 +866,9 @@
|
|
|
863
866
|
<xsl:if test="not(ancestor::*[@type = 'terms'])">
|
|
864
867
|
<fo:block break-after="page"/>
|
|
865
868
|
</xsl:if>
|
|
866
|
-
<fo:block id="{@id}">
|
|
869
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
870
|
+
<xsl:call-template name="addTagElementT"/>
|
|
871
|
+
|
|
867
872
|
<xsl:apply-templates/>
|
|
868
873
|
</fo:block>
|
|
869
874
|
</xsl:template>
|
|
@@ -933,39 +938,50 @@
|
|
|
933
938
|
</xsl:template>
|
|
934
939
|
|
|
935
940
|
<xsl:template match="mn:ul/mn:note | mn:ol/mn:note" priority="2">
|
|
936
|
-
<fo:list-item xsl:use-attribute-sets="note-style">
|
|
941
|
+
<fo:list-item xsl:use-attribute-sets="note-style" role="SKIP">
|
|
937
942
|
<xsl:call-template name="refine_note-style"/>
|
|
938
943
|
|
|
939
944
|
<fo:list-item-label><fo:block/></fo:list-item-label>
|
|
940
|
-
<fo:list-item-body>
|
|
941
|
-
<fo:block>
|
|
945
|
+
<fo:list-item-body role="SKIP">
|
|
946
|
+
<fo:block role="SKIP">
|
|
942
947
|
<xsl:call-template name="note"/>
|
|
943
948
|
</fo:block>
|
|
944
949
|
</fo:list-item-body>
|
|
945
950
|
</fo:list-item>
|
|
946
951
|
</xsl:template>
|
|
947
952
|
|
|
953
|
+
<!-- https://github.com/metanorma/mn-native-pdf/issues/1068:
|
|
954
|
+
single H3 covering the term, the preferred term, and the admitted term -->
|
|
948
955
|
<xsl:template match="mn:fmt-preferred | mn:fmt-deprecates | mn:fmt-admitted" priority="2">
|
|
956
|
+
<!-- only for first item fmt-preferred, fmt-deprecates or fmt-admitted -->
|
|
957
|
+
<xsl:if test="not(preceding-sibling::mn:fmt-preferred) and not(preceding-sibling::mn:fmt-deprecates) and not(preceding-sibling::mn:fmt-admitted)">
|
|
958
|
+
<xsl:variable name="levelTerm">
|
|
959
|
+
<xsl:call-template name="getLevelTermName"/>
|
|
960
|
+
</xsl:variable>
|
|
961
|
+
<fo:block role="H{$levelTerm}">
|
|
962
|
+
<xsl:for-each select=". | following-sibling::*[self::mn:fmt-preferred or self::mn:fmt-deprecates or self::mn:fmt-admitted]">
|
|
963
|
+
<fo:block xsl:use-attribute-sets="term-preferred-block-style">
|
|
964
|
+
<xsl:call-template name="refine_term-preferred-block-style"/>
|
|
965
|
+
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-name]">
|
|
966
|
+
<fo:inline xsl:use-attribute-sets="term-number-style">
|
|
967
|
+
<xsl:call-template name="refine_term-number-style"/>
|
|
968
|
+
|
|
969
|
+
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
|
970
|
+
<xsl:call-template name="setIDforNamedDestination"/>
|
|
971
|
+
</xsl:for-each>
|
|
949
972
|
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
<fo:inline xsl:use-attribute-sets="term-number-style">
|
|
954
|
-
<xsl:call-template name="refine_term-number-style"/>
|
|
955
|
-
|
|
956
|
-
<xsl:for-each select="ancestor::mn:term[1]/mn:fmt-name"><!-- change context -->
|
|
957
|
-
<xsl:call-template name="setIDforNamedDestination"/>
|
|
958
|
-
</xsl:for-each>
|
|
959
|
-
|
|
960
|
-
<xsl:apply-templates select="ancestor::mn:term[1]/mn:fmt-name"/>
|
|
961
|
-
</fo:inline>
|
|
962
|
-
</xsl:if>
|
|
973
|
+
<xsl:apply-templates select="ancestor::mn:term[1]/mn:fmt-name"/>
|
|
974
|
+
</fo:inline>
|
|
975
|
+
</xsl:if>
|
|
963
976
|
|
|
964
|
-
|
|
977
|
+
<fo:inline xsl:use-attribute-sets="term-preferred-style"><xsl:call-template name="refine_term-preferred-style"/><xsl:apply-templates/></fo:inline>
|
|
965
978
|
|
|
966
|
-
|
|
979
|
+
<xsl:call-template name="display_term_kind"/>
|
|
967
980
|
|
|
968
|
-
|
|
981
|
+
</fo:block>
|
|
982
|
+
</xsl:for-each>
|
|
983
|
+
</fo:block>
|
|
984
|
+
</xsl:if>
|
|
969
985
|
</xsl:template>
|
|
970
986
|
|
|
971
987
|
<xsl:template name="display_term_kind">
|
|
@@ -1004,8 +1020,9 @@
|
|
|
1004
1020
|
|
|
1005
1021
|
<xsl:template match="mn:references[not(@normative='true')]" priority="3">
|
|
1006
1022
|
<fo:block break-after="page"/>
|
|
1007
|
-
<fo:block id="{@id}" role="
|
|
1008
|
-
<
|
|
1023
|
+
<fo:block id="{@id}" role="Sect">
|
|
1024
|
+
<xsl:call-template name="addTagElementT"/>
|
|
1025
|
+
<fo:table width="100%" table-layout="fixed" role="SKIP">
|
|
1009
1026
|
<fo:table-column column-width="100%"/>
|
|
1010
1027
|
<fo:table-header role="SKIP">
|
|
1011
1028
|
<!-- repeat table header on each page -->
|
|
@@ -1080,21 +1097,6 @@
|
|
|
1080
1097
|
<xsl:value-of select="$content4"/>
|
|
1081
1098
|
</xsl:template>
|
|
1082
1099
|
|
|
1083
|
-
<xsl:template match="mn:clause" priority="2">
|
|
1084
|
-
<fo:block-container xsl:use-attribute-sets="clause-style">
|
|
1085
|
-
<xsl:call-template name="refine_clause-style"/>
|
|
1086
|
-
|
|
1087
|
-
<fo:block-container xsl:use-attribute-sets="reset-margins-style">
|
|
1088
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
1089
|
-
<fo:block role="SKIP">
|
|
1090
|
-
<xsl:call-template name="setId"/>
|
|
1091
|
-
<xsl:call-template name="addReviewHelper"/>
|
|
1092
|
-
<xsl:apply-templates/>
|
|
1093
|
-
</fo:block>
|
|
1094
|
-
</fo:block-container>
|
|
1095
|
-
</fo:block-container>
|
|
1096
|
-
</xsl:template>
|
|
1097
|
-
|
|
1098
1100
|
<xsl:template name="insertHeaderFooter">
|
|
1099
1101
|
<xsl:param name="num"/>
|
|
1100
1102
|
<xsl:param name="section"/>
|
|
@@ -1551,6 +1553,7 @@
|
|
|
1551
1553
|
|
|
1552
1554
|
<!-- Characters -->
|
|
1553
1555
|
<xsl:variable name="linebreak">
</xsl:variable>
|
|
1556
|
+
<xsl:variable name="em_space"> </xsl:variable>
|
|
1554
1557
|
<xsl:variable name="tab_zh"> </xsl:variable>
|
|
1555
1558
|
<xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
|
|
1556
1559
|
<xsl:variable name="thin_space"> </xsl:variable>
|
|
@@ -4964,7 +4967,15 @@
|
|
|
4964
4967
|
<!-- END requirement, recommendation, permission table -->
|
|
4965
4968
|
<!-- ========== -->
|
|
4966
4969
|
|
|
4970
|
+
<xsl:attribute-set name="terms-style">
|
|
4971
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
4972
|
+
</xsl:attribute-set>
|
|
4973
|
+
|
|
4974
|
+
<xsl:template name="refine_terms-style">
|
|
4975
|
+
</xsl:template>
|
|
4976
|
+
|
|
4967
4977
|
<xsl:attribute-set name="term-style">
|
|
4978
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
4968
4979
|
</xsl:attribute-set> <!-- term-style -->
|
|
4969
4980
|
|
|
4970
4981
|
<xsl:template name="refine_term-style">
|
|
@@ -4981,6 +4992,7 @@
|
|
|
4981
4992
|
<xsl:attribute-set name="term-number-style">
|
|
4982
4993
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
4983
4994
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
4995
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
4984
4996
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
|
4985
4997
|
</xsl:attribute-set> <!-- term-name-style -->
|
|
4986
4998
|
|
|
@@ -4988,6 +5000,7 @@
|
|
|
4988
5000
|
</xsl:template>
|
|
4989
5001
|
|
|
4990
5002
|
<xsl:attribute-set name="term-preferred-block-style">
|
|
5003
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
4991
5004
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
4992
5005
|
<xsl:attribute name="color">black</xsl:attribute>
|
|
4993
5006
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
@@ -5003,11 +5016,7 @@
|
|
|
5003
5016
|
<xsl:otherwise>12pt</xsl:otherwise>
|
|
5004
5017
|
</xsl:choose>
|
|
5005
5018
|
</xsl:variable>
|
|
5006
|
-
<xsl:variable name="levelTerm">
|
|
5007
|
-
<xsl:call-template name="getLevelTermName"/>
|
|
5008
|
-
</xsl:variable>
|
|
5009
5019
|
<xsl:attribute name="font-size"><xsl:value-of select="$font-size"/></xsl:attribute>
|
|
5010
|
-
<xsl:attribute name="role">H<xsl:value-of select="$levelTerm"/></xsl:attribute>
|
|
5011
5020
|
<xsl:if test="preceding-sibling::*[1][self::mn:fmt-name]">
|
|
5012
5021
|
<xsl:attribute name="space-before">11mm</xsl:attribute>
|
|
5013
5022
|
</xsl:if>
|
|
@@ -5016,6 +5025,7 @@
|
|
|
5016
5025
|
<xsl:attribute-set name="term-preferred-style">
|
|
5017
5026
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
5018
5027
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
5028
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
5019
5029
|
<xsl:attribute name="padding-right">4mm</xsl:attribute>
|
|
5020
5030
|
</xsl:attribute-set> <!-- preferred-term-style -->
|
|
5021
5031
|
|
|
@@ -5091,7 +5101,10 @@
|
|
|
5091
5101
|
<xsl:template match="mn:terms">
|
|
5092
5102
|
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
|
5093
5103
|
<xsl:call-template name="setNamedDestination"/>
|
|
5094
|
-
<fo:block id="{@id}">
|
|
5104
|
+
<fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
|
|
5105
|
+
<xsl:call-template name="refine_terms-style"/>
|
|
5106
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5107
|
+
|
|
5095
5108
|
<xsl:apply-templates/>
|
|
5096
5109
|
</fo:block>
|
|
5097
5110
|
</xsl:template>
|
|
@@ -5100,6 +5113,7 @@
|
|
|
5100
5113
|
<xsl:call-template name="setNamedDestination"/>
|
|
5101
5114
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
|
5102
5115
|
<xsl:call-template name="refine_term-style"/>
|
|
5116
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5103
5117
|
|
|
5104
5118
|
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
5105
5119
|
</fo:block>
|
|
@@ -5330,7 +5344,9 @@
|
|
|
5330
5344
|
|
|
5331
5345
|
<xsl:template match="mn:definitions">
|
|
5332
5346
|
<xsl:call-template name="setNamedDestination"/>
|
|
5333
|
-
<fo:block id="{@id}">
|
|
5347
|
+
<fo:block id="{@id}" role="Sect">
|
|
5348
|
+
<xsl:call-template name="addTagElementT"/>
|
|
5349
|
+
|
|
5334
5350
|
<xsl:apply-templates/>
|
|
5335
5351
|
</fo:block>
|
|
5336
5352
|
</xsl:template>
|
|
@@ -5413,6 +5429,7 @@
|
|
|
5413
5429
|
<xsl:template match="mn:termexample/mn:p">
|
|
5414
5430
|
<xsl:variable name="element">inline
|
|
5415
5431
|
|
|
5432
|
+
<xsl:value-of select="$example_display_in"/>
|
|
5416
5433
|
</xsl:variable>
|
|
5417
5434
|
<xsl:choose>
|
|
5418
5435
|
<xsl:when test="contains($element, 'block')">
|
|
@@ -5809,6 +5826,9 @@
|
|
|
5809
5826
|
</xsl:attribute-set><!-- table-note-style -->
|
|
5810
5827
|
|
|
5811
5828
|
<xsl:template name="refine_table-note-style">
|
|
5829
|
+
<xsl:if test="self::mn:note">
|
|
5830
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
5831
|
+
</xsl:if>
|
|
5812
5832
|
</xsl:template> <!-- refine_table-note-style -->
|
|
5813
5833
|
|
|
5814
5834
|
<xsl:attribute-set name="table-fn-style">
|
|
@@ -7108,7 +7128,7 @@
|
|
|
7108
7128
|
</xsl:template> <!-- table/note -->
|
|
7109
7129
|
|
|
7110
7130
|
<xsl:template match="mn:table/*[self::mn:note or self::mn:example]/mn:p | mn:table/mn:tfoot//*[self::mn:note or self::mn:example]/mn:p" priority="2">
|
|
7111
|
-
<xsl:apply-templates
|
|
7131
|
+
<fo:inline role="P"><xsl:apply-templates/></fo:inline>
|
|
7112
7132
|
</xsl:template>
|
|
7113
7133
|
|
|
7114
7134
|
<!-- ============================ -->
|
|
@@ -8037,6 +8057,7 @@
|
|
|
8037
8057
|
<!-- ========================== -->
|
|
8038
8058
|
|
|
8039
8059
|
<xsl:attribute-set name="dl-block-style">
|
|
8060
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
8040
8061
|
</xsl:attribute-set>
|
|
8041
8062
|
|
|
8042
8063
|
<xsl:template name="refine_dl-block-style">
|
|
@@ -8046,6 +8067,7 @@
|
|
|
8046
8067
|
</xsl:template>
|
|
8047
8068
|
|
|
8048
8069
|
<xsl:attribute-set name="dt-row-style">
|
|
8070
|
+
<xsl:attribute name="role">LI</xsl:attribute>
|
|
8049
8071
|
<xsl:attribute name="min-height">7mm</xsl:attribute>
|
|
8050
8072
|
</xsl:attribute-set>
|
|
8051
8073
|
|
|
@@ -8053,12 +8075,14 @@
|
|
|
8053
8075
|
</xsl:template>
|
|
8054
8076
|
|
|
8055
8077
|
<xsl:attribute-set name="dt-cell-style">
|
|
8078
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
8056
8079
|
</xsl:attribute-set>
|
|
8057
8080
|
|
|
8058
8081
|
<xsl:template name="refine_dt-cell-style">
|
|
8059
8082
|
</xsl:template> <!-- refine_dt-cell-style -->
|
|
8060
8083
|
|
|
8061
8084
|
<xsl:attribute-set name="dt-block-style">
|
|
8085
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
8062
8086
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
|
8063
8087
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
8064
8088
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
|
@@ -8078,6 +8102,7 @@
|
|
|
8078
8102
|
</xsl:template>
|
|
8079
8103
|
|
|
8080
8104
|
<xsl:attribute-set name="dd-cell-style">
|
|
8105
|
+
<xsl:attribute name="role">LBody</xsl:attribute>
|
|
8081
8106
|
<xsl:attribute name="padding-left">2mm</xsl:attribute>
|
|
8082
8107
|
</xsl:attribute-set>
|
|
8083
8108
|
|
|
@@ -8113,7 +8138,7 @@
|
|
|
8113
8138
|
<xsl:variable name="isAdded" select="@added"/>
|
|
8114
8139
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
|
8115
8140
|
<!-- <dl><xsl:copy-of select="."/></dl> -->
|
|
8116
|
-
<fo:block-container xsl:use-attribute-sets="dl-block-style"
|
|
8141
|
+
<fo:block-container xsl:use-attribute-sets="dl-block-style">
|
|
8117
8142
|
|
|
8118
8143
|
<xsl:call-template name="refine_dl-block-style"/>
|
|
8119
8144
|
|
|
@@ -8233,7 +8258,7 @@
|
|
|
8233
8258
|
<fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
|
|
8234
8259
|
</xsl:if>
|
|
8235
8260
|
|
|
8236
|
-
<fo:table width="95%" table-layout="fixed">
|
|
8261
|
+
<fo:table width="95%" table-layout="fixed" role="L">
|
|
8237
8262
|
|
|
8238
8263
|
<xsl:if test="$isGenerateTableIF = 'true'">
|
|
8239
8264
|
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
|
@@ -8301,7 +8326,7 @@
|
|
|
8301
8326
|
<xsl:with-param name="table_or_dl">dl</xsl:with-param>
|
|
8302
8327
|
</xsl:apply-templates>
|
|
8303
8328
|
|
|
8304
|
-
</xsl:when>
|
|
8329
|
+
</xsl:when> <!-- $isGenerateTableIF = 'true' -->
|
|
8305
8330
|
<xsl:otherwise>
|
|
8306
8331
|
|
|
8307
8332
|
<xsl:variable name="simple-table">
|
|
@@ -8356,7 +8381,7 @@
|
|
|
8356
8381
|
<xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
|
|
8357
8382
|
</xsl:call-template>
|
|
8358
8383
|
|
|
8359
|
-
<fo:table-body>
|
|
8384
|
+
<fo:table-body role="SKIP">
|
|
8360
8385
|
|
|
8361
8386
|
<!-- DEBUG -->
|
|
8362
8387
|
<xsl:if test="$table_if_debug = 'true'">
|
|
@@ -8565,8 +8590,8 @@
|
|
|
8565
8590
|
<td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
|
|
8566
8591
|
</tr>
|
|
8567
8592
|
-->
|
|
8568
|
-
<fo:table-row>
|
|
8569
|
-
<fo:table-cell number-columns-spanned="2">
|
|
8593
|
+
<fo:table-row role="SKIP">
|
|
8594
|
+
<fo:table-cell number-columns-spanned="2" role="SKIP">
|
|
8570
8595
|
<fo:block role="SKIP">
|
|
8571
8596
|
<xsl:call-template name="note"/>
|
|
8572
8597
|
</fo:block>
|
|
@@ -8630,7 +8655,7 @@
|
|
|
8630
8655
|
<xsl:call-template name="refine_dt-cell-style"/>
|
|
8631
8656
|
|
|
8632
8657
|
<xsl:call-template name="setNamedDestination"/>
|
|
8633
|
-
<fo:block xsl:use-attribute-sets="dt-block-style"
|
|
8658
|
+
<fo:block xsl:use-attribute-sets="dt-block-style">
|
|
8634
8659
|
|
|
8635
8660
|
<xsl:choose>
|
|
8636
8661
|
<xsl:when test="$isGenerateTableIF = 'true'">
|
|
@@ -8719,7 +8744,7 @@
|
|
|
8719
8744
|
</xsl:variable>
|
|
8720
8745
|
<xsl:choose>
|
|
8721
8746
|
<xsl:when test="$is_inline_element_after_where = 'true'">
|
|
8722
|
-
<fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
8747
|
+
<fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
|
|
8723
8748
|
</xsl:when>
|
|
8724
8749
|
<xsl:otherwise>
|
|
8725
8750
|
<xsl:apply-templates select="."/>
|
|
@@ -9000,6 +9025,7 @@
|
|
|
9000
9025
|
<!-- ====== -->
|
|
9001
9026
|
|
|
9002
9027
|
<xsl:attribute-set name="note-style">
|
|
9028
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
9003
9029
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
9004
9030
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
9005
9031
|
</xsl:attribute-set> <!-- note-style -->
|
|
@@ -9021,6 +9047,7 @@
|
|
|
9021
9047
|
<xsl:variable name="note-body-indent-table">5mm</xsl:variable>
|
|
9022
9048
|
|
|
9023
9049
|
<xsl:attribute-set name="note-name-style">
|
|
9050
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9024
9051
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
9025
9052
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
|
9026
9053
|
<xsl:attribute name="padding-right">1mm</xsl:attribute>
|
|
@@ -9036,9 +9063,13 @@
|
|
|
9036
9063
|
</xsl:attribute-set>
|
|
9037
9064
|
|
|
9038
9065
|
<xsl:template name="refine_table-note-name-style">
|
|
9066
|
+
<xsl:if test="self::mn:note">
|
|
9067
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9068
|
+
</xsl:if>
|
|
9039
9069
|
</xsl:template> <!-- refine_table-note-name-style -->
|
|
9040
9070
|
|
|
9041
9071
|
<xsl:attribute-set name="note-p-style">
|
|
9072
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
9042
9073
|
<xsl:attribute name="margin-top">12pt</xsl:attribute>
|
|
9043
9074
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
9044
9075
|
</xsl:attribute-set> <!-- note-p-style -->
|
|
@@ -9047,6 +9078,7 @@
|
|
|
9047
9078
|
</xsl:template>
|
|
9048
9079
|
|
|
9049
9080
|
<xsl:attribute-set name="termnote-style">
|
|
9081
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
9050
9082
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
9051
9083
|
</xsl:attribute-set> <!-- termnote-style -->
|
|
9052
9084
|
|
|
@@ -9054,6 +9086,7 @@
|
|
|
9054
9086
|
</xsl:template> <!-- refine_termnote-style -->
|
|
9055
9087
|
|
|
9056
9088
|
<xsl:attribute-set name="termnote-name-style">
|
|
9089
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
9057
9090
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
9058
9091
|
<xsl:attribute name="color"><xsl:value-of select="$color_blue"/></xsl:attribute>
|
|
9059
9092
|
<xsl:attribute name="padding-right">0.5mm</xsl:attribute>
|
|
@@ -9063,6 +9096,7 @@
|
|
|
9063
9096
|
</xsl:template>
|
|
9064
9097
|
|
|
9065
9098
|
<xsl:attribute-set name="termnote-p-style">
|
|
9099
|
+
<xsl:attribute name="role">P</xsl:attribute>
|
|
9066
9100
|
</xsl:attribute-set>
|
|
9067
9101
|
|
|
9068
9102
|
<xsl:template name="refine_termnote-p-style">
|
|
@@ -9077,7 +9111,7 @@
|
|
|
9077
9111
|
|
|
9078
9112
|
<xsl:call-template name="setNamedDestination"/>
|
|
9079
9113
|
|
|
9080
|
-
<fo:block-container xsl:use-attribute-sets="note-style"
|
|
9114
|
+
<fo:block-container xsl:use-attribute-sets="note-style">
|
|
9081
9115
|
<xsl:if test="not(parent::mn:references)">
|
|
9082
9116
|
<xsl:copy-of select="@id"/>
|
|
9083
9117
|
</xsl:if>
|
|
@@ -9087,11 +9121,11 @@
|
|
|
9087
9121
|
<xsl:call-template name="refine_note-style"/>
|
|
9088
9122
|
|
|
9089
9123
|
<fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
|
|
9090
|
-
<fo:block>
|
|
9124
|
+
<fo:block role="SKIP">
|
|
9091
9125
|
|
|
9092
9126
|
<xsl:call-template name="refine_note_block_style"/>
|
|
9093
9127
|
|
|
9094
|
-
<fo:inline xsl:use-attribute-sets="note-name-style"
|
|
9128
|
+
<fo:inline xsl:use-attribute-sets="note-name-style">
|
|
9095
9129
|
|
|
9096
9130
|
<xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
|
|
9097
9131
|
|
|
@@ -9114,7 +9148,15 @@
|
|
|
9114
9148
|
|
|
9115
9149
|
</fo:inline>
|
|
9116
9150
|
|
|
9117
|
-
<xsl:
|
|
9151
|
+
<xsl:choose>
|
|
9152
|
+
<xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
|
|
9153
|
+
<fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
|
|
9154
|
+
</xsl:when>
|
|
9155
|
+
<xsl:otherwise>
|
|
9156
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
|
|
9157
|
+
</xsl:otherwise>
|
|
9158
|
+
</xsl:choose>
|
|
9159
|
+
|
|
9118
9160
|
</fo:block>
|
|
9119
9161
|
</fo:block-container>
|
|
9120
9162
|
</fo:block-container>
|
|
@@ -9127,13 +9169,13 @@
|
|
|
9127
9169
|
<xsl:variable name="num"><xsl:number/></xsl:variable>
|
|
9128
9170
|
<xsl:choose>
|
|
9129
9171
|
<xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
|
|
9130
|
-
<fo:inline xsl:use-attribute-sets="note-p-style"
|
|
9172
|
+
<fo:inline xsl:use-attribute-sets="note-p-style">
|
|
9131
9173
|
<xsl:call-template name="refine_note-p-style"/>
|
|
9132
9174
|
<xsl:apply-templates/>
|
|
9133
9175
|
</fo:inline>
|
|
9134
9176
|
</xsl:when>
|
|
9135
9177
|
<xsl:otherwise>
|
|
9136
|
-
<fo:block xsl:use-attribute-sets="note-p-style"
|
|
9178
|
+
<fo:block xsl:use-attribute-sets="note-p-style">
|
|
9137
9179
|
<xsl:call-template name="refine_note-p-style"/>
|
|
9138
9180
|
<xsl:apply-templates/>
|
|
9139
9181
|
</fo:block>
|
|
@@ -9796,7 +9838,8 @@
|
|
|
9796
9838
|
|
|
9797
9839
|
<!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
|
|
9798
9840
|
|
|
9799
|
-
<fo:external-graphic src="{$src}"
|
|
9841
|
+
<fo:external-graphic src="{$src}" vertical-align="middle">
|
|
9842
|
+
<xsl:call-template name="addAltText"/>
|
|
9800
9843
|
|
|
9801
9844
|
<xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
|
|
9802
9845
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
@@ -9860,11 +9903,12 @@
|
|
|
9860
9903
|
<xsl:choose>
|
|
9861
9904
|
<xsl:when test="$isDeleted = 'true'">
|
|
9862
9905
|
<!-- enclose in svg -->
|
|
9863
|
-
<fo:instream-foreign-object
|
|
9906
|
+
<fo:instream-foreign-object>
|
|
9864
9907
|
<xsl:attribute name="width">100%</xsl:attribute>
|
|
9865
9908
|
<xsl:attribute name="content-height">100%</xsl:attribute>
|
|
9866
9909
|
<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
|
|
9867
9910
|
<xsl:attribute name="scaling">uniform</xsl:attribute>
|
|
9911
|
+
<xsl:call-template name="addAltText"/>
|
|
9868
9912
|
|
|
9869
9913
|
<xsl:apply-templates select="." mode="cross_image"/>
|
|
9870
9914
|
|
|
@@ -9880,7 +9924,8 @@
|
|
|
9880
9924
|
<xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
|
|
9881
9925
|
</fo:block> -->
|
|
9882
9926
|
|
|
9883
|
-
<fo:external-graphic src="{$src}"
|
|
9927
|
+
<fo:external-graphic src="{$src}">
|
|
9928
|
+
<xsl:call-template name="addAltText"/>
|
|
9884
9929
|
|
|
9885
9930
|
<xsl:choose>
|
|
9886
9931
|
<!-- default -->
|
|
@@ -9940,6 +9985,25 @@
|
|
|
9940
9985
|
</xsl:choose>
|
|
9941
9986
|
</xsl:template>
|
|
9942
9987
|
|
|
9988
|
+
<xsl:template name="addAltText">
|
|
9989
|
+
<xsl:param name="name">Image</xsl:param>
|
|
9990
|
+
<xsl:variable name="alt-text">
|
|
9991
|
+
<xsl:choose>
|
|
9992
|
+
<xsl:when test="self::mn:image and normalize-space(@alt) != ''">
|
|
9993
|
+
<xsl:value-of select="@alt"/>
|
|
9994
|
+
</xsl:when>
|
|
9995
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
9996
|
+
<xsl:value-of select="../@alt"/>
|
|
9997
|
+
</xsl:when>
|
|
9998
|
+
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
9999
|
+
<xsl:value-of select="../mn:fmt-name"/>
|
|
10000
|
+
</xsl:when>
|
|
10001
|
+
<xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
|
|
10002
|
+
</xsl:choose>
|
|
10003
|
+
</xsl:variable>
|
|
10004
|
+
<xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
|
|
10005
|
+
</xsl:template>
|
|
10006
|
+
|
|
9943
10007
|
<xsl:template name="setImageWidth">
|
|
9944
10008
|
<xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
|
|
9945
10009
|
<xsl:value-of select="@width"/>
|
|
@@ -10131,6 +10195,9 @@
|
|
|
10131
10195
|
|
|
10132
10196
|
<xsl:variable name="alt-text">
|
|
10133
10197
|
<xsl:choose>
|
|
10198
|
+
<xsl:when test="normalize-space(../@alt) != ''">
|
|
10199
|
+
<xsl:value-of select="../@alt"/>
|
|
10200
|
+
</xsl:when>
|
|
10134
10201
|
<xsl:when test="normalize-space(../mn:fmt-name) != ''">
|
|
10135
10202
|
<xsl:value-of select="../mn:fmt-name"/>
|
|
10136
10203
|
</xsl:when>
|
|
@@ -11731,6 +11798,7 @@
|
|
|
11731
11798
|
|
|
11732
11799
|
<!-- admonition -->
|
|
11733
11800
|
<xsl:attribute-set name="admonition-style">
|
|
11801
|
+
<xsl:attribute name="role">Note</xsl:attribute>
|
|
11734
11802
|
<xsl:attribute name="border">0.5pt solid rgb(79, 129, 189)</xsl:attribute>
|
|
11735
11803
|
<xsl:attribute name="color">rgb(79, 129, 189)</xsl:attribute>
|
|
11736
11804
|
<xsl:attribute name="margin-left">16mm</xsl:attribute>
|
|
@@ -11742,6 +11810,7 @@
|
|
|
11742
11810
|
</xsl:template>
|
|
11743
11811
|
|
|
11744
11812
|
<xsl:attribute-set name="admonition-container-style">
|
|
11813
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
11745
11814
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
|
11746
11815
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
|
11747
11816
|
<xsl:attribute name="padding">2mm</xsl:attribute>
|
|
@@ -11752,6 +11821,7 @@
|
|
|
11752
11821
|
</xsl:template>
|
|
11753
11822
|
|
|
11754
11823
|
<xsl:attribute-set name="admonition-name-style">
|
|
11824
|
+
<xsl:attribute name="role">Lbl</xsl:attribute>
|
|
11755
11825
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
11756
11826
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
11757
11827
|
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
|
|
@@ -11782,7 +11852,7 @@
|
|
|
11782
11852
|
<xsl:call-template name="refine_admonition-style"/>
|
|
11783
11853
|
|
|
11784
11854
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
11785
|
-
<fo:block-container xsl:use-attribute-sets="admonition-container-style"
|
|
11855
|
+
<fo:block-container xsl:use-attribute-sets="admonition-container-style">
|
|
11786
11856
|
|
|
11787
11857
|
<xsl:call-template name="refine_admonition-container-style"/>
|
|
11788
11858
|
<fo:block xsl:use-attribute-sets="admonition-name-style">
|
|
@@ -12683,9 +12753,9 @@
|
|
|
12683
12753
|
<xsl:template name="fo_inline_bookmark">
|
|
12684
12754
|
<xsl:param name="bookmark_id"/>
|
|
12685
12755
|
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
|
12686
|
-
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
|
12756
|
+
<fo:inline id="{@id}" font-size="1pt" role="SKIP"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><fo:wrapper role="artifact"><xsl:value-of select="$hair_space"/></fo:wrapper></fo:inline>
|
|
12687
12757
|
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
|
12688
|
-
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
|
12758
|
+
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt" role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:inline></xsl:if>
|
|
12689
12759
|
</xsl:template>
|
|
12690
12760
|
<!-- =================== -->
|
|
12691
12761
|
<!-- End of Index processing -->
|
|
@@ -12853,6 +12923,13 @@
|
|
|
12853
12923
|
<!-- End Form's elements processing -->
|
|
12854
12924
|
<!-- =================== -->
|
|
12855
12925
|
|
|
12926
|
+
<xsl:attribute-set name="toc-container-style">
|
|
12927
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
12928
|
+
</xsl:attribute-set>
|
|
12929
|
+
|
|
12930
|
+
<xsl:template name="refine_toc-container-style">
|
|
12931
|
+
</xsl:template>
|
|
12932
|
+
|
|
12856
12933
|
<xsl:attribute-set name="toc-style">
|
|
12857
12934
|
<xsl:attribute name="margin-left">10mm</xsl:attribute> <!-- 32mm -->
|
|
12858
12935
|
<xsl:attribute name="margin-right">-17mm</xsl:attribute>
|
|
@@ -14265,6 +14342,13 @@
|
|
|
14265
14342
|
<!-- ===================================== -->
|
|
14266
14343
|
<!-- ===================================== -->
|
|
14267
14344
|
|
|
14345
|
+
<xsl:attribute-set name="annex-style">
|
|
14346
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14347
|
+
</xsl:attribute-set>
|
|
14348
|
+
|
|
14349
|
+
<xsl:template name="refine_annex-style">
|
|
14350
|
+
</xsl:template>
|
|
14351
|
+
|
|
14268
14352
|
<xsl:attribute-set name="annex-title-style">
|
|
14269
14353
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
14270
14354
|
</xsl:attribute-set> <!-- annex-title-style -->
|
|
@@ -14272,6 +14356,40 @@
|
|
|
14272
14356
|
<xsl:template name="refine_annex-title-style">
|
|
14273
14357
|
</xsl:template>
|
|
14274
14358
|
|
|
14359
|
+
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
14360
|
+
<xsl:choose>
|
|
14361
|
+
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
14362
|
+
<fo:block role="SKIP">
|
|
14363
|
+
<xsl:apply-templates/>
|
|
14364
|
+
</fo:block>
|
|
14365
|
+
</xsl:when>
|
|
14366
|
+
<xsl:otherwise>
|
|
14367
|
+
|
|
14368
|
+
<fo:block break-after="page"/>
|
|
14369
|
+
<xsl:call-template name="setNamedDestination"/>
|
|
14370
|
+
|
|
14371
|
+
<fo:block xsl:use-attribute-sets="annex-style">
|
|
14372
|
+
|
|
14373
|
+
<xsl:call-template name="setId"/>
|
|
14374
|
+
|
|
14375
|
+
<!-- <xsl:if test="$namespace = 'iso'"> -->
|
|
14376
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14377
|
+
<!-- </xsl:if> -->
|
|
14378
|
+
|
|
14379
|
+
<xsl:call-template name="setBlockSpanAll"/>
|
|
14380
|
+
|
|
14381
|
+
<xsl:call-template name="refine_annex-style"/>
|
|
14382
|
+
|
|
14383
|
+
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
14384
|
+
|
|
14385
|
+
<fo:block role="SKIP">
|
|
14386
|
+
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
14387
|
+
</fo:block>
|
|
14388
|
+
</fo:block>
|
|
14389
|
+
</xsl:otherwise>
|
|
14390
|
+
</xsl:choose>
|
|
14391
|
+
</xsl:template>
|
|
14392
|
+
|
|
14275
14393
|
<xsl:attribute-set name="p-zzSTDTitle1-style">
|
|
14276
14394
|
</xsl:attribute-set>
|
|
14277
14395
|
|
|
@@ -14739,22 +14857,14 @@
|
|
|
14739
14857
|
</xsl:attribute-set>
|
|
14740
14858
|
|
|
14741
14859
|
<xsl:attribute-set name="clause-style">
|
|
14742
|
-
|
|
14860
|
+
<xsl:attribute name="role">Sect</xsl:attribute>
|
|
14743
14861
|
</xsl:attribute-set>
|
|
14744
14862
|
|
|
14745
14863
|
<xsl:template name="refine_clause-style">
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
|
|
14750
|
-
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
|
14751
|
-
</xsl:call-template>
|
|
14752
|
-
</xsl:variable>
|
|
14753
|
-
<xsl:if test="$level >= 4">
|
|
14754
|
-
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
|
14755
|
-
</xsl:if>
|
|
14756
|
-
</xsl:if> -->
|
|
14757
|
-
</xsl:template>
|
|
14864
|
+
<xsl:if test="parent::mn:copyright-statement">
|
|
14865
|
+
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14866
|
+
</xsl:if>
|
|
14867
|
+
</xsl:template> <!-- refine_clause-style -->
|
|
14758
14868
|
|
|
14759
14869
|
<!-- main sections -->
|
|
14760
14870
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
|
@@ -14766,7 +14876,10 @@
|
|
|
14766
14876
|
<xsl:call-template name="setId"/>
|
|
14767
14877
|
|
|
14768
14878
|
<xsl:call-template name="sections_element_style"/>
|
|
14879
|
+
|
|
14880
|
+
<!-- <xsl:if test="$namespace = 'rsd'"> -->
|
|
14769
14881
|
<xsl:call-template name="addTagElementT"/>
|
|
14882
|
+
<!-- </xsl:if> -->
|
|
14770
14883
|
|
|
14771
14884
|
<xsl:call-template name="addReviewHelper"/>
|
|
14772
14885
|
|
|
@@ -14834,16 +14947,15 @@
|
|
|
14834
14947
|
|
|
14835
14948
|
<xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
|
|
14836
14949
|
<xsl:call-template name="setNamedDestination"/>
|
|
14837
|
-
<fo:block>
|
|
14838
|
-
<xsl:if test="parent::mn:copyright-statement">
|
|
14839
|
-
<xsl:attribute name="role">SKIP</xsl:attribute>
|
|
14840
|
-
</xsl:if>
|
|
14950
|
+
<fo:block role="Sect">
|
|
14841
14951
|
|
|
14842
14952
|
<xsl:call-template name="setId"/>
|
|
14843
14953
|
|
|
14954
|
+
<xsl:call-template name="addTagElementT"/>
|
|
14955
|
+
|
|
14844
14956
|
<xsl:call-template name="setBlockSpanAll"/>
|
|
14845
14957
|
|
|
14846
|
-
<xsl:call-template name="
|
|
14958
|
+
<xsl:call-template name="refine_clause-style"/>
|
|
14847
14959
|
|
|
14848
14960
|
<xsl:call-template name="addReviewHelper"/>
|
|
14849
14961
|
|
|
@@ -14851,41 +14963,6 @@
|
|
|
14851
14963
|
</fo:block>
|
|
14852
14964
|
</xsl:template>
|
|
14853
14965
|
|
|
14854
|
-
<xsl:template name="refine_clause_style">
|
|
14855
|
-
</xsl:template> <!-- refine_clause_style -->
|
|
14856
|
-
|
|
14857
|
-
<xsl:template match="mn:annex[normalize-space() != '']">
|
|
14858
|
-
<xsl:choose>
|
|
14859
|
-
<xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
|
|
14860
|
-
<fo:block>
|
|
14861
|
-
<xsl:apply-templates/>
|
|
14862
|
-
</fo:block>
|
|
14863
|
-
</xsl:when>
|
|
14864
|
-
<xsl:otherwise>
|
|
14865
|
-
|
|
14866
|
-
<fo:block break-after="page"/>
|
|
14867
|
-
<xsl:call-template name="setNamedDestination"/>
|
|
14868
|
-
|
|
14869
|
-
<fo:block id="{@id}">
|
|
14870
|
-
|
|
14871
|
-
<xsl:call-template name="setBlockSpanAll"/>
|
|
14872
|
-
|
|
14873
|
-
<xsl:call-template name="refine_annex_style"/>
|
|
14874
|
-
|
|
14875
|
-
</fo:block>
|
|
14876
|
-
|
|
14877
|
-
<xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
|
|
14878
|
-
|
|
14879
|
-
<fo:block>
|
|
14880
|
-
<xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
|
|
14881
|
-
</fo:block>
|
|
14882
|
-
</xsl:otherwise>
|
|
14883
|
-
</xsl:choose>
|
|
14884
|
-
</xsl:template>
|
|
14885
|
-
|
|
14886
|
-
<xsl:template name="refine_annex_style">
|
|
14887
|
-
</xsl:template>
|
|
14888
|
-
|
|
14889
14966
|
<xsl:template match="mn:name/text() | mn:fmt-name/text()">
|
|
14890
14967
|
<!-- 0xA0 to space replacement -->
|
|
14891
14968
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
|
@@ -15001,6 +15078,13 @@
|
|
|
15001
15078
|
<xsl:template name="addTagElementT">
|
|
15002
15079
|
<xsl:variable name="title_">
|
|
15003
15080
|
<xsl:apply-templates select="mn:fmt-title"/>
|
|
15081
|
+
<xsl:if test="not(mn:fmt-title) and self::mn:term">
|
|
15082
|
+
<name>
|
|
15083
|
+
<xsl:apply-templates select="mn:fmt-name"/>
|
|
15084
|
+
<xsl:text> </xsl:text>
|
|
15085
|
+
<xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
|
|
15086
|
+
</name>
|
|
15087
|
+
</xsl:if>
|
|
15004
15088
|
</xsl:variable>
|
|
15005
15089
|
<xsl:variable name="title__">
|
|
15006
15090
|
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
|
@@ -15010,7 +15094,7 @@
|
|
|
15010
15094
|
</xsl:choose>
|
|
15011
15095
|
</xsl:for-each>
|
|
15012
15096
|
</xsl:variable>
|
|
15013
|
-
<xsl:variable name="title" select="normalize-space($title__)"/>
|
|
15097
|
+
<xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' 
'), ' '))"/>
|
|
15014
15098
|
<xsl:if test="$title != ''">
|
|
15015
15099
|
<xsl:attribute name="fox:title">
|
|
15016
15100
|
<xsl:if test="ancestor::mn:sections">
|
data/lib/isodoc/ribose/xref.rb
CHANGED
|
@@ -21,8 +21,10 @@ module IsoDoc
|
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
# subclauses are not prefixed with "Clause"
|
|
25
|
-
#
|
|
24
|
+
# subclauses are not prefixed with "Clause" but @labels["subclause"],
|
|
25
|
+
# which in ribose is "" (but in inheriting flavors/tastes may be
|
|
26
|
+
# "Subclause"/"Clause"). Retaining subtype for the semantics, and the
|
|
27
|
+
# title so that xrefstyle=full can render it.
|
|
26
28
|
def section_name_anchors(clause, num, level)
|
|
27
29
|
if clause["type"] == "section"
|
|
28
30
|
xref = labelled_autonum(@labels["section"], num)
|
|
@@ -31,9 +33,10 @@ module IsoDoc
|
|
|
31
33
|
{ label:, xref:, elem: @labels["section"],
|
|
32
34
|
title: clause_title(clause), level: level, type: "clause" }
|
|
33
35
|
elsif level > 1
|
|
34
|
-
|
|
36
|
+
xref = labelled_autonum(@labels["subclause"], num)
|
|
35
37
|
@anchors[clause["id"]] =
|
|
36
|
-
{ label: num, level: level, xref
|
|
38
|
+
{ label: num, level: level, xref:, subtype: "clause",
|
|
39
|
+
title: clause_title(clause), elem: @labels["subclause"] }
|
|
37
40
|
else super end
|
|
38
41
|
end
|
|
39
42
|
|
|
@@ -1527,12 +1527,16 @@ to indicate that the index range covers a range of locations between the current
|
|
|
1527
1527
|
<ref name="index-primary">
|
|
1528
1528
|
<a:documentation>Primary index term to be recorded at the current location</a:documentation>
|
|
1529
1529
|
</ref>
|
|
1530
|
-
<
|
|
1531
|
-
<
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1530
|
+
<optional>
|
|
1531
|
+
<ref name="index-secondary">
|
|
1532
|
+
<a:documentation>Secondary index term to be recorded at the current location</a:documentation>
|
|
1533
|
+
</ref>
|
|
1534
|
+
</optional>
|
|
1535
|
+
<optional>
|
|
1536
|
+
<ref name="index-tertiary">
|
|
1537
|
+
<a:documentation>Tertiary index term to be recorded at the current </a:documentation>
|
|
1538
|
+
</ref>
|
|
1539
|
+
</optional>
|
|
1536
1540
|
</element>
|
|
1537
1541
|
</define>
|
|
1538
1542
|
<define name="index-xref">
|
|
@@ -1547,12 +1551,16 @@ The text in the inline element is the primary index term to be be cross-referenc
|
|
|
1547
1551
|
<ref name="index-primary">
|
|
1548
1552
|
<a:documentation>The primary index term to be cross-referenced</a:documentation>
|
|
1549
1553
|
</ref>
|
|
1550
|
-
<
|
|
1551
|
-
<
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1554
|
+
<optional>
|
|
1555
|
+
<ref name="index-secondary">
|
|
1556
|
+
<a:documentation>The secondary index term to be cross-referenced</a:documentation>
|
|
1557
|
+
</ref>
|
|
1558
|
+
</optional>
|
|
1559
|
+
<optional>
|
|
1560
|
+
<ref name="index-tertiary">
|
|
1561
|
+
<a:documentation>The tertiary index term to be cross-referenced</a:documentation>
|
|
1562
|
+
</ref>
|
|
1563
|
+
</optional>
|
|
1556
1564
|
<element name="target">
|
|
1557
1565
|
<a:documentation>The index term to be cross-referenced to</a:documentation>
|
|
1558
1566
|
<oneOrMore>
|
|
@@ -1933,7 +1941,8 @@ or as the string "auto"</a:documentation>
|
|
|
1933
1941
|
<define name="mathml">
|
|
1934
1942
|
<a:documentation>Encoding of MathML: the official W3C MathML 4 grammar (namespace
|
|
1935
1943
|
http://www.w3.org/1998/Math/MathML), via the metanorma wrapper in
|
|
1936
|
-
grammars/mathml/. See grammars/mathml/README.adoc
|
|
1944
|
+
grammars/mathml/. See grammars/mathml/README.adoc, basicdoc-models#35,
|
|
1945
|
+
and the MathML 3 -> 4 migration: basicdoc-models#39 / metanorma#585.</a:documentation>
|
|
1937
1946
|
<externalRef href="metanorma-mathml.rng"/>
|
|
1938
1947
|
</define>
|
|
1939
1948
|
<define name="StemAttributes">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
3
|
-
<!-- VERSION v2.
|
|
3
|
+
<!-- VERSION v2.2.0 -->
|
|
4
4
|
|
|
5
5
|
<!--
|
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|