metanorma-iso 3.1.4 → 3.1.6
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/iso/html/style-human.css +40 -46
- data/lib/isodoc/iso/html/style-human.scss +1 -1
- data/lib/isodoc/iso/html/style-iso.css +41 -47
- data/lib/isodoc/iso/html/style-iso.scss +1 -1
- data/lib/isodoc/iso/i18n-de.yaml +6 -2
- data/lib/isodoc/iso/i18n-en.yaml +6 -2
- data/lib/isodoc/iso/i18n-fr.yaml +4 -0
- data/lib/isodoc/iso/i18n-ja.yaml +1 -0
- data/lib/isodoc/iso/i18n-ru.yaml +4 -0
- data/lib/isodoc/iso/i18n-zh-Hans.yaml +1 -0
- data/lib/isodoc/iso/init.rb +2 -2
- data/lib/isodoc/iso/iso.amendment.xsl +73 -57
- data/lib/isodoc/iso/iso.international-standard.xsl +73 -57
- data/lib/isodoc/iso/presentation_section.rb +39 -4
- data/lib/isodoc/iso/presentation_xml_convert.rb +8 -0
- data/lib/isodoc/iso/presentation_xref.rb +72 -1
- data/lib/isodoc/iso/word_convert.rb +3 -3
- data/lib/isodoc/iso/xref.rb +0 -2
- data/lib/isodoc/iso/xref_section.rb +0 -1
- data/lib/metanorma/iso/front.rb +10 -49
- data/lib/metanorma/iso/isodoc.rng +26 -19
- data/lib/metanorma/iso/validate_style.rb +0 -5
- data/lib/metanorma/iso/version.rb +1 -1
- metadata +2 -2
@@ -1082,7 +1082,7 @@
|
|
1082
1082
|
<xsl:when test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or ($layoutVersion = '1989' and $revision_date_num <= 19981231)"><!-- copyright renders in the footer footer-preface-first_1987-1998--></xsl:when>
|
1083
1083
|
<xsl:otherwise>
|
1084
1084
|
|
1085
|
-
<xsl:call-template name="
|
1085
|
+
<xsl:call-template name="inner-cover-page"/>
|
1086
1086
|
|
1087
1087
|
</xsl:otherwise>
|
1088
1088
|
</xsl:choose>
|
@@ -2849,7 +2849,8 @@
|
|
2849
2849
|
</xsl:if> <!-- $isGenerateTableIF = 'false' -->
|
2850
2850
|
</xsl:template> <!-- END cover-page -->
|
2851
2851
|
|
2852
|
-
|
2852
|
+
<!-- copyright-statement -->
|
2853
|
+
<xsl:template name="inner-cover-page">
|
2853
2854
|
<xsl:if test="normalize-space(/mn:metanorma/mn:boilerplate/mn:copyright-statement) != ''">
|
2854
2855
|
|
2855
2856
|
<fo:page-sequence format="i" force-page-count="no-force">
|
@@ -6104,6 +6105,7 @@
|
|
6104
6105
|
<xsl:variable name="en_dash">–</xsl:variable>
|
6105
6106
|
<xsl:variable name="em_dash">—</xsl:variable>
|
6106
6107
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
6108
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
6107
6109
|
<xsl:variable name="cr"> </xsl:variable>
|
6108
6110
|
<xsl:variable name="lf">
|
6109
6111
|
</xsl:variable>
|
@@ -6670,6 +6672,7 @@
|
|
6670
6672
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
6671
6673
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
6672
6674
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6675
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6673
6676
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
6674
6677
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
6675
6678
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -6684,10 +6687,10 @@
|
|
6684
6687
|
|
6685
6688
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
6686
6689
|
|
6687
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
6690
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
6688
6691
|
<xsl:copy>
|
6689
6692
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
6690
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
6693
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
6691
6694
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
6692
6695
|
</xsl:copy>
|
6693
6696
|
</xsl:template>
|
@@ -7713,7 +7716,6 @@
|
|
7713
7716
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
7714
7717
|
|
7715
7718
|
<xsl:template name="refine_feedback-statement-title-style">
|
7716
|
-
|
7717
7719
|
</xsl:template>
|
7718
7720
|
|
7719
7721
|
<xsl:attribute-set name="feedback-statement-p-style">
|
@@ -7984,6 +7986,12 @@
|
|
7984
7986
|
<xsl:template name="refine_sourcecode-style">
|
7985
7987
|
</xsl:template> <!-- refine_sourcecode-style -->
|
7986
7988
|
|
7989
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
7990
|
+
</xsl:attribute-set>
|
7991
|
+
|
7992
|
+
<xsl:template name="refine_sourcecode-number-style">
|
7993
|
+
</xsl:template>
|
7994
|
+
|
7987
7995
|
<xsl:attribute-set name="sourcecode-name-style">
|
7988
7996
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
7989
7997
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -9392,6 +9400,12 @@
|
|
9392
9400
|
<xsl:template name="refine_term-name-style">
|
9393
9401
|
</xsl:template>
|
9394
9402
|
|
9403
|
+
<xsl:attribute-set name="preferred-style">
|
9404
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
9405
|
+
|
9406
|
+
<xsl:template name="refine_preferred-style">
|
9407
|
+
</xsl:template>
|
9408
|
+
|
9395
9409
|
<xsl:attribute-set name="preferred-block-style">
|
9396
9410
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
9397
9411
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
@@ -10086,6 +10100,12 @@
|
|
10086
10100
|
<xsl:call-template name="setBordersTableArray"/>
|
10087
10101
|
</xsl:template> <!-- refine_table-style -->
|
10088
10102
|
|
10103
|
+
<xsl:attribute-set name="table-number-style">
|
10104
|
+
</xsl:attribute-set>
|
10105
|
+
|
10106
|
+
<xsl:template name="refine_table-number-style">
|
10107
|
+
</xsl:template>
|
10108
|
+
|
10089
10109
|
<xsl:attribute-set name="table-name-style">
|
10090
10110
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
10091
10111
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -10624,7 +10644,7 @@
|
|
10624
10644
|
|
10625
10645
|
</fo:block>
|
10626
10646
|
|
10627
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10647
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10628
10648
|
<xsl:if test="$continued = 'true'">
|
10629
10649
|
|
10630
10650
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -13807,15 +13827,22 @@
|
|
13807
13827
|
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
13808
13828
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
13809
13829
|
</xsl:if>
|
13810
|
-
</xsl:template>
|
13830
|
+
</xsl:template> <!-- refine_quote-style -->
|
13811
13831
|
|
13812
13832
|
<xsl:attribute-set name="quote-source-style">
|
13813
13833
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
13814
|
-
</xsl:attribute-set>
|
13834
|
+
</xsl:attribute-set> <!-- quote-source-style -->
|
13815
13835
|
|
13816
13836
|
<xsl:template name="refine_quote-source-style">
|
13817
13837
|
</xsl:template>
|
13818
13838
|
|
13839
|
+
<xsl:attribute-set name="source-style">
|
13840
|
+
</xsl:attribute-set> <!-- source-style -->
|
13841
|
+
|
13842
|
+
<xsl:template name="refine_source-style">
|
13843
|
+
|
13844
|
+
</xsl:template> <!-- refine_source-style -->
|
13845
|
+
|
13819
13846
|
<!-- ====== -->
|
13820
13847
|
<!-- quote -->
|
13821
13848
|
<!-- source -->
|
@@ -13863,7 +13890,9 @@
|
|
13863
13890
|
</xsl:if>
|
13864
13891
|
<xsl:choose>
|
13865
13892
|
<xsl:when test="not(parent::quote)">
|
13866
|
-
<fo:block>
|
13893
|
+
<fo:block xsl:use-attribute-sets="source-style">
|
13894
|
+
<xsl:call-template name="refine_source-style"/>
|
13895
|
+
|
13867
13896
|
<xsl:call-template name="insert_basic_link">
|
13868
13897
|
<xsl:with-param name="element">
|
13869
13898
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
@@ -13920,6 +13949,12 @@
|
|
13920
13949
|
<xsl:template name="refine_figure-style">
|
13921
13950
|
</xsl:template>
|
13922
13951
|
|
13952
|
+
<xsl:attribute-set name="figure-number-style">
|
13953
|
+
</xsl:attribute-set>
|
13954
|
+
|
13955
|
+
<xsl:template name="refine_figure-number-style">
|
13956
|
+
</xsl:template>
|
13957
|
+
|
13923
13958
|
<xsl:attribute-set name="figure-name-style">
|
13924
13959
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
13925
13960
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -16018,7 +16053,7 @@
|
|
16018
16053
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
16019
16054
|
</xsl:if>
|
16020
16055
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
16021
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
16056
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
|
16022
16057
|
</xsl:template> <!-- refine_fn-reference-style -->
|
16023
16058
|
|
16024
16059
|
<xsl:attribute-set name="fn-style">
|
@@ -16029,7 +16064,9 @@
|
|
16029
16064
|
</xsl:template>
|
16030
16065
|
|
16031
16066
|
<xsl:attribute-set name="fn-num-style">
|
16067
|
+
<xsl:attribute name="role">Reference</xsl:attribute>
|
16032
16068
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
16069
|
+
<xsl:attribute name="font-size">65%</xsl:attribute>
|
16033
16070
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
16034
16071
|
<!--<xsl:attribute name="vertical-align">super</xsl:attribute> -->
|
16035
16072
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
@@ -16123,26 +16160,9 @@
|
|
16123
16160
|
<xsl:variable name="ref_id" select="@target"/>
|
16124
16161
|
|
16125
16162
|
<xsl:variable name="footnote_inline">
|
16126
|
-
<fo:inline
|
16163
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
16127
16164
|
|
16128
|
-
<xsl:
|
16129
|
-
<xsl:choose>
|
16130
|
-
<xsl:when test="ancestor::mn:bibitem">
|
16131
|
-
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
16132
|
-
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
16133
|
-
</fn_styles>
|
16134
|
-
</xsl:when>
|
16135
|
-
<xsl:otherwise>
|
16136
|
-
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
16137
|
-
<xsl:call-template name="refine_fn-num-style"/>
|
16138
|
-
</fn_styles>
|
16139
|
-
</xsl:otherwise>
|
16140
|
-
</xsl:choose>
|
16141
|
-
</xsl:variable>
|
16142
|
-
|
16143
|
-
<xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
|
16144
|
-
<xsl:copy-of select="."/>
|
16145
|
-
</xsl:for-each>
|
16165
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
16146
16166
|
|
16147
16167
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
16148
16168
|
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
@@ -16152,7 +16172,7 @@
|
|
16152
16172
|
<xsl:attribute name="font-size">70%</xsl:attribute>
|
16153
16173
|
</xsl:if>
|
16154
16174
|
|
16155
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
16175
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
|
16156
16176
|
|
16157
16177
|
<xsl:call-template name="insert_basic_link">
|
16158
16178
|
<xsl:with-param name="element">
|
@@ -16457,32 +16477,6 @@
|
|
16457
16477
|
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
16458
16478
|
</xsl:template>
|
16459
16479
|
|
16460
|
-
<!-- footnote reference number for bibitem, in the text -->
|
16461
|
-
<xsl:attribute-set name="bibitem-note-fn-style">
|
16462
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
16463
|
-
<xsl:attribute name="font-size">65%</xsl:attribute>
|
16464
|
-
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
16465
|
-
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
16466
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
16467
|
-
|
16468
|
-
<xsl:template name="refine_bibitem-note-fn-style">
|
16469
|
-
</xsl:template>
|
16470
|
-
|
16471
|
-
<!-- footnote number on the page bottom -->
|
16472
|
-
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
16473
|
-
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
16474
|
-
<xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
|
16475
|
-
<xsl:attribute name="padding-right">3mm</xsl:attribute>
|
16476
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
16477
|
-
|
16478
|
-
<!-- footnote body (text) on the page bottom -->
|
16479
|
-
<xsl:attribute-set name="bibitem-note-fn-body-style">
|
16480
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
16481
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
16482
|
-
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
16483
|
-
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
16484
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
16485
|
-
|
16486
16480
|
<xsl:attribute-set name="references-non-normative-style">
|
16487
16481
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
16488
16482
|
|
@@ -18856,10 +18850,28 @@
|
|
18856
18850
|
</xsl:choose>
|
18857
18851
|
</xsl:template>
|
18858
18852
|
|
18853
|
+
<xsl:attribute-set name="clause-style">
|
18854
|
+
|
18855
|
+
</xsl:attribute-set>
|
18856
|
+
|
18857
|
+
<xsl:template name="refine_clause-style">
|
18858
|
+
<!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
|
18859
|
+
<!-- <xsl:if test="$namespace = 'rsd'">
|
18860
|
+
<xsl:variable name="level">
|
18861
|
+
<xsl:call-template name="getLevel">
|
18862
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
18863
|
+
</xsl:call-template>
|
18864
|
+
</xsl:variable>
|
18865
|
+
<xsl:if test="$level >= 4">
|
18866
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
18867
|
+
</xsl:if>
|
18868
|
+
</xsl:if> -->
|
18869
|
+
</xsl:template>
|
18870
|
+
|
18859
18871
|
<!-- main sections -->
|
18860
18872
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
18861
18873
|
<xsl:call-template name="setNamedDestination"/>
|
18862
|
-
<fo:block>
|
18874
|
+
<fo:block role="Sect">
|
18863
18875
|
<xsl:call-template name="setId"/>
|
18864
18876
|
|
18865
18877
|
<xsl:call-template name="sections_element_style"/>
|
@@ -18999,6 +19011,10 @@
|
|
18999
19011
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
19000
19012
|
</xsl:template>
|
19001
19013
|
|
19014
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
19015
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
19016
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
19017
|
+
|
19002
19018
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
19003
19019
|
<xsl:template name="insert_basic_link">
|
19004
19020
|
<xsl:param name="element"/>
|
@@ -1082,7 +1082,7 @@
|
|
1082
1082
|
<xsl:when test="$layoutVersion = '1972' or $layoutVersion = '1979' or $layoutVersion = '1987' or ($layoutVersion = '1989' and $revision_date_num <= 19981231)"><!-- copyright renders in the footer footer-preface-first_1987-1998--></xsl:when>
|
1083
1083
|
<xsl:otherwise>
|
1084
1084
|
|
1085
|
-
<xsl:call-template name="
|
1085
|
+
<xsl:call-template name="inner-cover-page"/>
|
1086
1086
|
|
1087
1087
|
</xsl:otherwise>
|
1088
1088
|
</xsl:choose>
|
@@ -2849,7 +2849,8 @@
|
|
2849
2849
|
</xsl:if> <!-- $isGenerateTableIF = 'false' -->
|
2850
2850
|
</xsl:template> <!-- END cover-page -->
|
2851
2851
|
|
2852
|
-
|
2852
|
+
<!-- copyright-statement -->
|
2853
|
+
<xsl:template name="inner-cover-page">
|
2853
2854
|
<xsl:if test="normalize-space(/mn:metanorma/mn:boilerplate/mn:copyright-statement) != ''">
|
2854
2855
|
|
2855
2856
|
<fo:page-sequence format="i" force-page-count="no-force">
|
@@ -6104,6 +6105,7 @@
|
|
6104
6105
|
<xsl:variable name="en_dash">–</xsl:variable>
|
6105
6106
|
<xsl:variable name="em_dash">—</xsl:variable>
|
6106
6107
|
<xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
|
6108
|
+
<xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
|
6107
6109
|
<xsl:variable name="cr"> </xsl:variable>
|
6108
6110
|
<xsl:variable name="lf">
|
6109
6111
|
</xsl:variable>
|
@@ -6670,6 +6672,7 @@
|
|
6670
6672
|
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
|
6671
6673
|
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
|
6672
6674
|
<xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6675
|
+
<xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
|
6673
6676
|
<!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
|
6674
6677
|
<xsl:template match="mn:preferred" mode="update_xml_step1"/>
|
6675
6678
|
<!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
|
@@ -6684,10 +6687,10 @@
|
|
6684
6687
|
|
6685
6688
|
<xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
|
6686
6689
|
|
6687
|
-
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
|
6690
|
+
<xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]]" mode="update_xml_step1">
|
6688
6691
|
<xsl:copy>
|
6689
6692
|
<xsl:apply-templates select="@*" mode="update_xml_step1"/>
|
6690
|
-
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
|
6693
|
+
<xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
|
6691
6694
|
<xsl:apply-templates select="node()" mode="update_xml_step1"/>
|
6692
6695
|
</xsl:copy>
|
6693
6696
|
</xsl:template>
|
@@ -7713,7 +7716,6 @@
|
|
7713
7716
|
</xsl:attribute-set> <!-- feedback-statement-title-style -->
|
7714
7717
|
|
7715
7718
|
<xsl:template name="refine_feedback-statement-title-style">
|
7716
|
-
|
7717
7719
|
</xsl:template>
|
7718
7720
|
|
7719
7721
|
<xsl:attribute-set name="feedback-statement-p-style">
|
@@ -7984,6 +7986,12 @@
|
|
7984
7986
|
<xsl:template name="refine_sourcecode-style">
|
7985
7987
|
</xsl:template> <!-- refine_sourcecode-style -->
|
7986
7988
|
|
7989
|
+
<xsl:attribute-set name="sourcecode-number-style">
|
7990
|
+
</xsl:attribute-set>
|
7991
|
+
|
7992
|
+
<xsl:template name="refine_sourcecode-number-style">
|
7993
|
+
</xsl:template>
|
7994
|
+
|
7987
7995
|
<xsl:attribute-set name="sourcecode-name-style">
|
7988
7996
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
7989
7997
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -9392,6 +9400,12 @@
|
|
9392
9400
|
<xsl:template name="refine_term-name-style">
|
9393
9401
|
</xsl:template>
|
9394
9402
|
|
9403
|
+
<xsl:attribute-set name="preferred-style">
|
9404
|
+
</xsl:attribute-set> <!-- preferred-style -->
|
9405
|
+
|
9406
|
+
<xsl:template name="refine_preferred-style">
|
9407
|
+
</xsl:template>
|
9408
|
+
|
9395
9409
|
<xsl:attribute-set name="preferred-block-style">
|
9396
9410
|
<xsl:attribute name="line-height">1.1</xsl:attribute>
|
9397
9411
|
</xsl:attribute-set> <!-- preferred-block-style -->
|
@@ -10086,6 +10100,12 @@
|
|
10086
10100
|
<xsl:call-template name="setBordersTableArray"/>
|
10087
10101
|
</xsl:template> <!-- refine_table-style -->
|
10088
10102
|
|
10103
|
+
<xsl:attribute-set name="table-number-style">
|
10104
|
+
</xsl:attribute-set>
|
10105
|
+
|
10106
|
+
<xsl:template name="refine_table-number-style">
|
10107
|
+
</xsl:template>
|
10108
|
+
|
10089
10109
|
<xsl:attribute-set name="table-name-style">
|
10090
10110
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
10091
10111
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
@@ -10624,7 +10644,7 @@
|
|
10624
10644
|
|
10625
10645
|
</fo:block>
|
10626
10646
|
|
10627
|
-
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10647
|
+
<!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
|
10628
10648
|
<xsl:if test="$continued = 'true'">
|
10629
10649
|
|
10630
10650
|
<!-- to prevent the error 'THead element may contain only TR elements' -->
|
@@ -13807,15 +13827,22 @@
|
|
13807
13827
|
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
13808
13828
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
13809
13829
|
</xsl:if>
|
13810
|
-
</xsl:template>
|
13830
|
+
</xsl:template> <!-- refine_quote-style -->
|
13811
13831
|
|
13812
13832
|
<xsl:attribute-set name="quote-source-style">
|
13813
13833
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
13814
|
-
</xsl:attribute-set>
|
13834
|
+
</xsl:attribute-set> <!-- quote-source-style -->
|
13815
13835
|
|
13816
13836
|
<xsl:template name="refine_quote-source-style">
|
13817
13837
|
</xsl:template>
|
13818
13838
|
|
13839
|
+
<xsl:attribute-set name="source-style">
|
13840
|
+
</xsl:attribute-set> <!-- source-style -->
|
13841
|
+
|
13842
|
+
<xsl:template name="refine_source-style">
|
13843
|
+
|
13844
|
+
</xsl:template> <!-- refine_source-style -->
|
13845
|
+
|
13819
13846
|
<!-- ====== -->
|
13820
13847
|
<!-- quote -->
|
13821
13848
|
<!-- source -->
|
@@ -13863,7 +13890,9 @@
|
|
13863
13890
|
</xsl:if>
|
13864
13891
|
<xsl:choose>
|
13865
13892
|
<xsl:when test="not(parent::quote)">
|
13866
|
-
<fo:block>
|
13893
|
+
<fo:block xsl:use-attribute-sets="source-style">
|
13894
|
+
<xsl:call-template name="refine_source-style"/>
|
13895
|
+
|
13867
13896
|
<xsl:call-template name="insert_basic_link">
|
13868
13897
|
<xsl:with-param name="element">
|
13869
13898
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
@@ -13920,6 +13949,12 @@
|
|
13920
13949
|
<xsl:template name="refine_figure-style">
|
13921
13950
|
</xsl:template>
|
13922
13951
|
|
13952
|
+
<xsl:attribute-set name="figure-number-style">
|
13953
|
+
</xsl:attribute-set>
|
13954
|
+
|
13955
|
+
<xsl:template name="refine_figure-number-style">
|
13956
|
+
</xsl:template>
|
13957
|
+
|
13923
13958
|
<xsl:attribute-set name="figure-name-style">
|
13924
13959
|
<xsl:attribute name="role">Caption</xsl:attribute>
|
13925
13960
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
@@ -16018,7 +16053,7 @@
|
|
16018
16053
|
<xsl:attribute name="baseline-shift">15%</xsl:attribute>
|
16019
16054
|
</xsl:if>
|
16020
16055
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
16021
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
16056
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
|
16022
16057
|
</xsl:template> <!-- refine_fn-reference-style -->
|
16023
16058
|
|
16024
16059
|
<xsl:attribute-set name="fn-style">
|
@@ -16029,7 +16064,9 @@
|
|
16029
16064
|
</xsl:template>
|
16030
16065
|
|
16031
16066
|
<xsl:attribute-set name="fn-num-style">
|
16067
|
+
<xsl:attribute name="role">Reference</xsl:attribute>
|
16032
16068
|
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
16069
|
+
<xsl:attribute name="font-size">65%</xsl:attribute>
|
16033
16070
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
16034
16071
|
<!--<xsl:attribute name="vertical-align">super</xsl:attribute> -->
|
16035
16072
|
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
@@ -16123,26 +16160,9 @@
|
|
16123
16160
|
<xsl:variable name="ref_id" select="@target"/>
|
16124
16161
|
|
16125
16162
|
<xsl:variable name="footnote_inline">
|
16126
|
-
<fo:inline
|
16163
|
+
<fo:inline xsl:use-attribute-sets="fn-num-style">
|
16127
16164
|
|
16128
|
-
<xsl:
|
16129
|
-
<xsl:choose>
|
16130
|
-
<xsl:when test="ancestor::mn:bibitem">
|
16131
|
-
<fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
|
16132
|
-
<xsl:call-template name="refine_bibitem-note-fn-style"/>
|
16133
|
-
</fn_styles>
|
16134
|
-
</xsl:when>
|
16135
|
-
<xsl:otherwise>
|
16136
|
-
<fn_styles xsl:use-attribute-sets="fn-num-style">
|
16137
|
-
<xsl:call-template name="refine_fn-num-style"/>
|
16138
|
-
</fn_styles>
|
16139
|
-
</xsl:otherwise>
|
16140
|
-
</xsl:choose>
|
16141
|
-
</xsl:variable>
|
16142
|
-
|
16143
|
-
<xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
|
16144
|
-
<xsl:copy-of select="."/>
|
16145
|
-
</xsl:for-each>
|
16165
|
+
<xsl:call-template name="refine_fn-num-style"/>
|
16146
16166
|
|
16147
16167
|
<!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
|
16148
16168
|
<!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
|
@@ -16152,7 +16172,7 @@
|
|
16152
16172
|
<xsl:attribute name="font-size">70%</xsl:attribute>
|
16153
16173
|
</xsl:if>
|
16154
16174
|
|
16155
|
-
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]"
|
16175
|
+
<xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
|
16156
16176
|
|
16157
16177
|
<xsl:call-template name="insert_basic_link">
|
16158
16178
|
<xsl:with-param name="element">
|
@@ -16457,32 +16477,6 @@
|
|
16457
16477
|
<xsl:template name="refine_bibitem-non-normative-list-body-style">
|
16458
16478
|
</xsl:template>
|
16459
16479
|
|
16460
|
-
<!-- footnote reference number for bibitem, in the text -->
|
16461
|
-
<xsl:attribute-set name="bibitem-note-fn-style">
|
16462
|
-
<xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
|
16463
|
-
<xsl:attribute name="font-size">65%</xsl:attribute>
|
16464
|
-
<xsl:attribute name="font-size">8pt</xsl:attribute>
|
16465
|
-
<xsl:attribute name="baseline-shift">30%</xsl:attribute>
|
16466
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-style -->
|
16467
|
-
|
16468
|
-
<xsl:template name="refine_bibitem-note-fn-style">
|
16469
|
-
</xsl:template>
|
16470
|
-
|
16471
|
-
<!-- footnote number on the page bottom -->
|
16472
|
-
<xsl:attribute-set name="bibitem-note-fn-number-style">
|
16473
|
-
<xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
|
16474
|
-
<xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
|
16475
|
-
<xsl:attribute name="padding-right">3mm</xsl:attribute>
|
16476
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
|
16477
|
-
|
16478
|
-
<!-- footnote body (text) on the page bottom -->
|
16479
|
-
<xsl:attribute-set name="bibitem-note-fn-body-style">
|
16480
|
-
<xsl:attribute name="font-size">10pt</xsl:attribute>
|
16481
|
-
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
16482
|
-
<xsl:attribute name="start-indent">0pt</xsl:attribute>
|
16483
|
-
<xsl:attribute name="margin-bottom">4pt</xsl:attribute>
|
16484
|
-
</xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
|
16485
|
-
|
16486
16480
|
<xsl:attribute-set name="references-non-normative-style">
|
16487
16481
|
</xsl:attribute-set> <!-- references-non-normative-style -->
|
16488
16482
|
|
@@ -18856,10 +18850,28 @@
|
|
18856
18850
|
</xsl:choose>
|
18857
18851
|
</xsl:template>
|
18858
18852
|
|
18853
|
+
<xsl:attribute-set name="clause-style">
|
18854
|
+
|
18855
|
+
</xsl:attribute-set>
|
18856
|
+
|
18857
|
+
<xsl:template name="refine_clause-style">
|
18858
|
+
<!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
|
18859
|
+
<!-- <xsl:if test="$namespace = 'rsd'">
|
18860
|
+
<xsl:variable name="level">
|
18861
|
+
<xsl:call-template name="getLevel">
|
18862
|
+
<xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
|
18863
|
+
</xsl:call-template>
|
18864
|
+
</xsl:variable>
|
18865
|
+
<xsl:if test="$level >= 4">
|
18866
|
+
<xsl:attribute name="margin-left">13mm</xsl:attribute>
|
18867
|
+
</xsl:if>
|
18868
|
+
</xsl:if> -->
|
18869
|
+
</xsl:template>
|
18870
|
+
|
18859
18871
|
<!-- main sections -->
|
18860
18872
|
<xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
|
18861
18873
|
<xsl:call-template name="setNamedDestination"/>
|
18862
|
-
<fo:block>
|
18874
|
+
<fo:block role="Sect">
|
18863
18875
|
<xsl:call-template name="setId"/>
|
18864
18876
|
|
18865
18877
|
<xsl:call-template name="sections_element_style"/>
|
@@ -18999,6 +19011,10 @@
|
|
18999
19011
|
<xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
|
19000
19012
|
</xsl:template>
|
19001
19013
|
|
19014
|
+
<!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
|
19015
|
+
<xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
|
19016
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
19017
|
+
|
19002
19018
|
<!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
|
19003
19019
|
<xsl:template name="insert_basic_link">
|
19004
19020
|
<xsl:param name="element"/>
|
@@ -84,7 +84,8 @@ module IsoDoc
|
|
84
84
|
super
|
85
85
|
end
|
86
86
|
|
87
|
-
|
87
|
+
# KILL
|
88
|
+
def middle_titlex(docxml)
|
88
89
|
@meta.get[:doctitlemain].nil? || @meta.get[:doctitlemain].empty? and
|
89
90
|
return
|
90
91
|
s = docxml.at(ns("//sections")) or return
|
@@ -92,7 +93,8 @@ module IsoDoc
|
|
92
93
|
s.add_first_child ret
|
93
94
|
end
|
94
95
|
|
95
|
-
|
96
|
+
# KILL
|
97
|
+
def middle_title_mainx
|
96
98
|
ret = "<span class='boldtitle'>#{@meta.get[:doctitleintro]}"
|
97
99
|
@meta.get[:doctitleintro] && @meta.get[:doctitlemain] and
|
98
100
|
ret += " — "
|
@@ -104,7 +106,17 @@ module IsoDoc
|
|
104
106
|
"<p class='zzSTDTitle1'>#{ret}</p>"
|
105
107
|
end
|
106
108
|
|
107
|
-
def
|
109
|
+
def middle_title_main
|
110
|
+
<<~OUTPUT
|
111
|
+
<p class='zzSTDTitle1'><span class='boldtitle'>{{ doctitleintro -}}
|
112
|
+
{% if doctitleintro and doctitlemain %} — {% endif %}{{ doctitlemain -}}
|
113
|
+
{% if doctitlemain %}{% if doctitlepart or doctitlecomplementary %} — {% endif %}{% endif -%}
|
114
|
+
</span>#{middle_title_part}</p>
|
115
|
+
OUTPUT
|
116
|
+
end
|
117
|
+
|
118
|
+
# KILL
|
119
|
+
def middle_title_partx
|
108
120
|
ret = ""
|
109
121
|
if a = @meta.get[:doctitlecomplementary]
|
110
122
|
ret += "<span class='boldtitle'>#{a}</span>"
|
@@ -116,7 +128,17 @@ module IsoDoc
|
|
116
128
|
ret
|
117
129
|
end
|
118
130
|
|
119
|
-
def
|
131
|
+
def middle_title_part
|
132
|
+
<<~OUTPUT.strip
|
133
|
+
{% if doctitlecomplementary %}<span class='boldtitle'>{{ doctitlecomplementary }}</span>
|
134
|
+
{% elsif doctitlepart -%}
|
135
|
+
{% if doctitlepartlabel %}<span class='nonboldtitle'>{{ doctitlepartlabel }}:</span>{% endif -%}
|
136
|
+
<span class='boldtitle'>{{ doctitlepart }}</span>{% endif %}
|
137
|
+
OUTPUT
|
138
|
+
end
|
139
|
+
|
140
|
+
# KILL
|
141
|
+
def middle_title_amdx
|
120
142
|
ret = ""
|
121
143
|
if a = @meta.get[:doctitleamdlabel]
|
122
144
|
ret += "<p class='zzSTDTitle2'>#{a}"
|
@@ -128,6 +150,19 @@ module IsoDoc
|
|
128
150
|
ret
|
129
151
|
end
|
130
152
|
|
153
|
+
def middle_title_amd
|
154
|
+
<<~OUTPUT
|
155
|
+
{% if doctitleamdlabel %}<p class='zzSTDTitle2'>{{ doctitleamdlabel -}}
|
156
|
+
{% if doctitleamd %}: {{doctitleamd}}{% endif -%}
|
157
|
+
</p>{% endif %}
|
158
|
+
{% if doctitlecorrlabel %}<p class='zzSTDTitle2'>{{ doctitlecorrlabel }}</p>{% endif %}
|
159
|
+
OUTPUT
|
160
|
+
end
|
161
|
+
|
162
|
+
def middle_title_template
|
163
|
+
middle_title_main + middle_title_amd
|
164
|
+
end
|
165
|
+
|
131
166
|
def move_norm_ref_to_sections(docxml)
|
132
167
|
amd?(docxml) or super
|
133
168
|
end
|