metanorma-itu 2.7.4 → 2.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de022940207ba868d42ba651c9fdde285192df719b62657246b0a9b53494a273
4
- data.tar.gz: a8bb44c9f30e989b25a6a9da48f5f768fc05c5518d01262e2099f21098760d96
3
+ metadata.gz: 282a34b0dd9ed3f5e5f3177ef65bc3603e955652599e48cacaef408590b2f93f
4
+ data.tar.gz: 36ffc7157a62c8fd0a33ac4a0df6d288ad45e2db77f32294d5ac7c36ecf59aaa
5
5
  SHA512:
6
- metadata.gz: 5eb078cdc7ff1ca8e65df4136decbe59d9e4dcd2806471491d906552cb22ffd88919bcbbacf91006ce2290712bf711bf8194f7b3b128efaa43be618748bcf8ac
7
- data.tar.gz: 3988356edbc783a6ed52d1fb15b6ee1466edf08c4c0deb2bf43b93680096d03e01b943f598952711a93183b157f725db8e6ff12a7d8e93d07c5002580849338b
6
+ metadata.gz: 7099927dd940ede4df3868e3d436d701036140916f81bc1c0f9ad2445ade4ecfe7c24841e53e30fca0f75c0025ecdbdcc0d7eaf71ab739ef8eb585bbc44aaea5
7
+ data.tar.gz: 42fb8dcaec81137cff25cb353b5780fede4bf0ad70d9c28cb23fdad64b23c0edb63e9320d41908367f329955606afe719c021dd71c404ff8a6bce3667d661f38
@@ -138,16 +138,6 @@ div.document-stage-band, div.document-type-band {
138
138
  background-color: #333333;
139
139
  }
140
140
 
141
- a.FootnoteRef + a.FootnoteRef::before {
142
- content: ", ";
143
- vertical-align: super;
144
- }
145
-
146
- a.TableFootnoteRef + a.TableFootnoteRef::before {
147
- content: ", ";
148
- vertical-align: super;
149
- }
150
-
151
141
  a.TableFootnoteRef, span.TableFootnoteRef,
152
142
  a.FootnoteRef, span.FootnoteRef {
153
143
  vertical-align: super;
@@ -138,16 +138,6 @@ div.document-stage-band, div.document-type-band {
138
138
  background-color: #333333;
139
139
  }
140
140
 
141
- a.FootnoteRef + a.FootnoteRef::before {
142
- content: ", ";
143
- vertical-align: super;
144
- }
145
-
146
- a.TableFootnoteRef + a.TableFootnoteRef::before {
147
- content: ", ";
148
- vertical-align: super;
149
- }
150
-
151
141
  a.TableFootnoteRef, span.TableFootnoteRef,
152
142
  a.FootnoteRef, span.FootnoteRef {
153
143
  vertical-align: super;
@@ -863,16 +853,6 @@ nav #toc {
863
853
  margin: 0;
864
854
  }
865
855
  }
866
- .figure {
867
- line-height: 1.6em;
868
- padding: 1.5em;
869
- margin: 2em 0 1em 0;
870
- overflow: auto;
871
- font-family: {{monospacefont}};
872
- font-variant-ligatures: none;
873
- background-color: #f6f6f6;
874
- font-size: {{monospacefontsize}};
875
- }
876
856
  .figure .FigureTitle, .figure .figure-title {
877
857
  font-weight: 700;
878
858
  font-size: 1em;
@@ -885,6 +865,16 @@ nav #toc {
885
865
  max-width: 100%;
886
866
  height: auto;
887
867
  }
868
+ .figure {
869
+ line-height: 1.6em;
870
+ padding: 1.5em;
871
+ margin: 2em 0 1em 0;
872
+ overflow: auto;
873
+ font-family: {{monospacefont}};
874
+ font-variant-ligatures: none;
875
+ background-color: #f6f6f6;
876
+ font-size: {{monospacefontsize}};
877
+ }
888
878
 
889
879
  table div.figure {
890
880
  padding: 0;
@@ -1202,11 +1192,13 @@ p.Biblio, p.NormRef {
1202
1192
  padding: 1.2em;
1203
1193
  margin: 2em 0 1em 0;
1204
1194
  text-align: left;
1205
- padding-left: 3.2em;
1206
1195
  }
1207
1196
  .example p {
1208
1197
  margin: 0;
1209
1198
  }
1199
+ .example {
1200
+ padding-left: 3.2em;
1201
+ }
1210
1202
  .example .example-title {
1211
1203
  font-weight: 700;
1212
1204
  text-transform: uppercase;
@@ -1272,7 +1264,6 @@ table:not(.biblio) {
1272
1264
  margin-left: auto;
1273
1265
  margin-right: auto;
1274
1266
  padding-right: 2em;
1275
- color: #141115;
1276
1267
  }
1277
1268
  table:not(.biblio), table:not(.biblio) th, table:not(.biblio) td {
1278
1269
  border: none;
@@ -1287,6 +1278,9 @@ table:not(.biblio) td.header {
1287
1278
  table:not(.biblio), table:not(.biblio) th, table:not(.biblio) td {
1288
1279
  border: none !important;
1289
1280
  }
1281
+ table:not(.biblio) {
1282
+ color: #141115;
1283
+ }
1290
1284
  table:not(.biblio) tr:nth-child(even) {
1291
1285
  background: #f1f8ff;
1292
1286
  }
@@ -78,7 +78,6 @@ module IsoDoc
78
78
  super
79
79
  end
80
80
 
81
-
82
81
  include BaseConvert
83
82
  include Init
84
83
  end
@@ -23,7 +23,7 @@ module IsoDoc
23
23
 
24
24
  def bibrenderer(options = {})
25
25
  ::Relaton::Render::Itu::General.new(options
26
- .merge(language: @lang, i18nhash: @i18n.get))
26
+ .merge(language: @lang, script: @script, i18nhash: @i18n.get))
27
27
  end
28
28
 
29
29
  def fileloc(loc)
@@ -326,6 +326,10 @@
326
326
  <xsl:with-param name="num" select="$num"/>
327
327
  </xsl:call-template>
328
328
 
329
+ <xsl:call-template name="inner-cover-page">
330
+ <xsl:with-param name="num" select="$num"/>
331
+ </xsl:call-template>
332
+
329
333
  <!-- <xsl:for-each select="xalan:nodeset($updated_xml)/*"> -->
330
334
 
331
335
  <!-- <xsl:for-each select="xalan:nodeset($updated_xml)//mn:metanorma">
@@ -588,6 +592,8 @@
588
592
  </xsl:for-each>
589
593
  </xsl:for-each>
590
594
 
595
+ <xsl:call-template name="back-page"/>
596
+
591
597
  </fo:root>
592
598
  </xsl:template>
593
599
 
@@ -1072,24 +1078,6 @@
1072
1078
  </fo:block-container>
1073
1079
  </fo:flow>
1074
1080
  </fo:page-sequence>
1075
- <!-- Second cover page -->
1076
- <xsl:variable name="secondCoverPageData_">
1077
- <xsl:call-template name="insertBackgroundPageImage">
1078
- <xsl:with-param name="number">2</xsl:with-param>
1079
- </xsl:call-template>
1080
- </xsl:variable>
1081
- <xsl:variable name="secondCoverPageData" select="xalan:nodeset($secondCoverPageData_)"/>
1082
- <fo:page-sequence force-page-count="no-force" master-reference="cover-page_2023">
1083
- <xsl:if test="$secondCoverPageData//*[self::fo:instream-foreign-object or self::fo:external-graphic]">
1084
- <fo:static-content flow-name="header" role="artifact" id="__internal_layout__coverpage2_header_{$num}_{generate-id()}">
1085
- <xsl:copy-of select="$secondCoverPageData"/>
1086
- </fo:static-content>
1087
- </xsl:if>
1088
- <fo:flow flow-name="xsl-region-body">
1089
- <fo:block> </fo:block>
1090
- </fo:flow>
1091
- </fo:page-sequence>
1092
- <!-- End: Second cover page -->
1093
1081
  </xsl:when> <!-- $layoutVersion = '2023' -->
1094
1082
 
1095
1083
  <xsl:otherwise>
@@ -1761,6 +1749,41 @@
1761
1749
  <!-- ============================================= -->
1762
1750
  </xsl:template>
1763
1751
 
1752
+ <xsl:template name="inner-cover-page">
1753
+ <xsl:param name="num"/>
1754
+ <xsl:variable name="document_scheme" select="normalize-space(/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = 'document-scheme']/mn:value)"/>
1755
+ <xsl:variable name="layoutVersion_">
1756
+ <xsl:choose>
1757
+ <xsl:when test="$document_scheme = '' or $document_scheme = 'current'">2023</xsl:when>
1758
+ <xsl:otherwise>default</xsl:otherwise>
1759
+ </xsl:choose>
1760
+ </xsl:variable>
1761
+ <xsl:variable name="layoutVersion" select="normalize-space($layoutVersion_)"/>
1762
+ <xsl:if test="$layoutVersion = '2023'">
1763
+ <!-- Second cover page -->
1764
+ <xsl:variable name="secondCoverPageData_">
1765
+ <xsl:call-template name="insertBackgroundPageImage">
1766
+ <xsl:with-param name="number">2</xsl:with-param>
1767
+ </xsl:call-template>
1768
+ </xsl:variable>
1769
+ <xsl:variable name="secondCoverPageData" select="xalan:nodeset($secondCoverPageData_)"/>
1770
+ <fo:page-sequence force-page-count="no-force" master-reference="cover-page_2023">
1771
+ <xsl:if test="$secondCoverPageData//*[self::fo:instream-foreign-object or self::fo:external-graphic]">
1772
+ <fo:static-content flow-name="header" role="artifact" id="__internal_layout__coverpage2_header_{$num}_{generate-id()}">
1773
+ <xsl:copy-of select="$secondCoverPageData"/>
1774
+ </fo:static-content>
1775
+ </xsl:if>
1776
+ <fo:flow flow-name="xsl-region-body">
1777
+ <fo:block> </fo:block>
1778
+ </fo:flow>
1779
+ </fo:page-sequence>
1780
+ <!-- End: Second cover page -->
1781
+ </xsl:if>
1782
+ </xsl:template> <!-- END: inner-cover-page -->
1783
+
1784
+ <xsl:template name="back-page">
1785
+ </xsl:template>
1786
+
1764
1787
  <xsl:template name="insertMeetingInfo">
1765
1788
  <fo:block><xsl:value-of select="/mn:metanorma/mn:bibdata/mn:ext/mn:meeting"/></fo:block>
1766
1789
  <fo:block>
@@ -2345,7 +2368,7 @@
2345
2368
  <!-- ====== -->
2346
2369
 
2347
2370
  <xsl:template match="mn:legal-statement//mn:p | mn:license-statement//mn:p" priority="2">
2348
- <fo:block margin-top="6pt">
2371
+ <fo:block xsl:use-attribute-sets="legal-statement-p-style">
2349
2372
  <xsl:apply-templates/>
2350
2373
  </fo:block>
2351
2374
  <xsl:if test="not(following-sibling::mn:p)"> <!-- last para -->
@@ -3290,6 +3313,7 @@
3290
3313
  <xsl:variable name="en_dash">–</xsl:variable>
3291
3314
  <xsl:variable name="em_dash">—</xsl:variable>
3292
3315
  <xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
3316
+ <xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
3293
3317
  <xsl:variable name="cr">&#13;</xsl:variable>
3294
3318
  <xsl:variable name="lf">
3295
3319
  </xsl:variable>
@@ -3832,6 +3856,7 @@
3832
3856
  <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
3833
3857
  <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
3834
3858
  <xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3859
+ <xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3835
3860
  <!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
3836
3861
  <xsl:template match="mn:preferred" mode="update_xml_step1"/>
3837
3862
  <!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
@@ -3846,10 +3871,10 @@
3846
3871
 
3847
3872
  <xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
3848
3873
 
3849
- <xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
3874
+ <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">
3850
3875
  <xsl:copy>
3851
3876
  <xsl:apply-templates select="@*" mode="update_xml_step1"/>
3852
- <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
3877
+ <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
3853
3878
  <xsl:apply-templates select="node()" mode="update_xml_step1"/>
3854
3879
  </xsl:copy>
3855
3880
  </xsl:template>
@@ -4658,6 +4683,7 @@
4658
4683
  </xsl:template>
4659
4684
 
4660
4685
  <xsl:attribute-set name="license-statement-p-style">
4686
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
4661
4687
  </xsl:attribute-set> <!-- license-statement-p-style -->
4662
4688
 
4663
4689
  <xsl:template name="refine_license-statement-p-style">
@@ -4680,6 +4706,7 @@
4680
4706
  </xsl:template>
4681
4707
 
4682
4708
  <xsl:attribute-set name="legal-statement-p-style">
4709
+ <xsl:attribute name="margin-top">6pt</xsl:attribute>
4683
4710
  </xsl:attribute-set> <!-- legal-statement-p-style -->
4684
4711
 
4685
4712
  <xsl:template name="refine_legal-statement-p-style">
@@ -4701,7 +4728,6 @@
4701
4728
  </xsl:attribute-set> <!-- feedback-statement-title-style -->
4702
4729
 
4703
4730
  <xsl:template name="refine_feedback-statement-title-style">
4704
-
4705
4731
  </xsl:template>
4706
4732
 
4707
4733
  <xsl:attribute-set name="feedback-statement-p-style">
@@ -4965,6 +4991,12 @@
4965
4991
  <xsl:template name="refine_sourcecode-style">
4966
4992
  </xsl:template> <!-- refine_sourcecode-style -->
4967
4993
 
4994
+ <xsl:attribute-set name="sourcecode-number-style">
4995
+ </xsl:attribute-set>
4996
+
4997
+ <xsl:template name="refine_sourcecode-number-style">
4998
+ </xsl:template>
4999
+
4968
5000
  <xsl:attribute-set name="sourcecode-name-style">
4969
5001
  <xsl:attribute name="font-size">11pt</xsl:attribute>
4970
5002
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -6353,6 +6385,12 @@
6353
6385
  <xsl:template name="refine_term-name-style">
6354
6386
  </xsl:template>
6355
6387
 
6388
+ <xsl:attribute-set name="preferred-style">
6389
+ </xsl:attribute-set> <!-- preferred-style -->
6390
+
6391
+ <xsl:template name="refine_preferred-style">
6392
+ </xsl:template>
6393
+
6356
6394
  <xsl:attribute-set name="preferred-block-style">
6357
6395
  </xsl:attribute-set> <!-- preferred-block-style -->
6358
6396
 
@@ -6987,6 +7025,12 @@
6987
7025
  </xsl:if>
6988
7026
  </xsl:template> <!-- refine_table-style -->
6989
7027
 
7028
+ <xsl:attribute-set name="table-number-style">
7029
+ </xsl:attribute-set>
7030
+
7031
+ <xsl:template name="refine_table-number-style">
7032
+ </xsl:template>
7033
+
6990
7034
  <xsl:attribute-set name="table-name-style">
6991
7035
  <xsl:attribute name="role">Caption</xsl:attribute>
6992
7036
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -7470,7 +7514,7 @@
7470
7514
 
7471
7515
  </fo:block>
7472
7516
 
7473
- <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
7517
+ <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
7474
7518
  <xsl:if test="$continued = 'true'">
7475
7519
 
7476
7520
  <!-- to prevent the error 'THead element may contain only TR elements' -->
@@ -10556,15 +10600,22 @@
10556
10600
  </xsl:attribute-set> <!-- quote-style -->
10557
10601
 
10558
10602
  <xsl:template name="refine_quote-style">
10559
- </xsl:template>
10603
+ </xsl:template> <!-- refine_quote-style -->
10560
10604
 
10561
10605
  <xsl:attribute-set name="quote-source-style">
10562
10606
  <xsl:attribute name="text-align">right</xsl:attribute>
10563
- </xsl:attribute-set>
10607
+ </xsl:attribute-set> <!-- quote-source-style -->
10564
10608
 
10565
10609
  <xsl:template name="refine_quote-source-style">
10566
10610
  </xsl:template>
10567
10611
 
10612
+ <xsl:attribute-set name="source-style">
10613
+ </xsl:attribute-set> <!-- source-style -->
10614
+
10615
+ <xsl:template name="refine_source-style">
10616
+
10617
+ </xsl:template> <!-- refine_source-style -->
10618
+
10568
10619
  <!-- ====== -->
10569
10620
  <!-- quote -->
10570
10621
  <!-- source -->
@@ -10612,7 +10663,9 @@
10612
10663
  </xsl:if>
10613
10664
  <xsl:choose>
10614
10665
  <xsl:when test="not(parent::quote)">
10615
- <fo:block>
10666
+ <fo:block xsl:use-attribute-sets="source-style">
10667
+ <xsl:call-template name="refine_source-style"/>
10668
+
10616
10669
  <xsl:call-template name="insert_basic_link">
10617
10670
  <xsl:with-param name="element">
10618
10671
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
@@ -10659,6 +10712,12 @@
10659
10712
  <xsl:template name="refine_figure-style">
10660
10713
  </xsl:template>
10661
10714
 
10715
+ <xsl:attribute-set name="figure-number-style">
10716
+ </xsl:attribute-set>
10717
+
10718
+ <xsl:template name="refine_figure-number-style">
10719
+ </xsl:template>
10720
+
10662
10721
  <xsl:attribute-set name="figure-name-style">
10663
10722
  <xsl:attribute name="role">Caption</xsl:attribute>
10664
10723
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -12703,7 +12762,7 @@
12703
12762
 
12704
12763
  <xsl:template name="refine_fn-reference-style">
12705
12764
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
12706
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
12765
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
12707
12766
  </xsl:template> <!-- refine_fn-reference-style -->
12708
12767
 
12709
12768
  <xsl:attribute-set name="fn-style">
@@ -12714,7 +12773,9 @@
12714
12773
  </xsl:template>
12715
12774
 
12716
12775
  <xsl:attribute-set name="fn-num-style">
12776
+ <xsl:attribute name="role">Reference</xsl:attribute>
12717
12777
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
12778
+ <xsl:attribute name="font-size">65%</xsl:attribute>
12718
12779
  <xsl:attribute name="font-size">60%</xsl:attribute>
12719
12780
  <xsl:attribute name="vertical-align">super</xsl:attribute>
12720
12781
  </xsl:attribute-set> <!-- fn-num-style -->
@@ -12793,33 +12854,16 @@
12793
12854
  <xsl:variable name="ref_id" select="@target"/>
12794
12855
 
12795
12856
  <xsl:variable name="footnote_inline">
12796
- <fo:inline role="Reference">
12857
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
12797
12858
 
12798
- <xsl:variable name="fn_styles">
12799
- <xsl:choose>
12800
- <xsl:when test="ancestor::mn:bibitem">
12801
- <fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
12802
- <xsl:call-template name="refine_bibitem-note-fn-style"/>
12803
- </fn_styles>
12804
- </xsl:when>
12805
- <xsl:otherwise>
12806
- <fn_styles xsl:use-attribute-sets="fn-num-style">
12807
- <xsl:call-template name="refine_fn-num-style"/>
12808
- </fn_styles>
12809
- </xsl:otherwise>
12810
- </xsl:choose>
12811
- </xsl:variable>
12812
-
12813
- <xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
12814
- <xsl:copy-of select="."/>
12815
- </xsl:for-each>
12859
+ <xsl:call-template name="refine_fn-num-style"/>
12816
12860
 
12817
12861
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
12818
12862
  <!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
12819
12863
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
12820
12864
  </xsl:if> -->
12821
12865
 
12822
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
12866
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
12823
12867
 
12824
12868
  <xsl:call-template name="insert_basic_link">
12825
12869
  <xsl:with-param name="element">
@@ -13128,32 +13172,6 @@
13128
13172
  <xsl:template name="refine_bibitem-non-normative-list-body-style">
13129
13173
  </xsl:template>
13130
13174
 
13131
- <!-- footnote reference number for bibitem, in the text -->
13132
- <xsl:attribute-set name="bibitem-note-fn-style">
13133
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
13134
- <xsl:attribute name="font-size">65%</xsl:attribute>
13135
- <xsl:attribute name="font-size">8pt</xsl:attribute>
13136
- <xsl:attribute name="baseline-shift">30%</xsl:attribute>
13137
- </xsl:attribute-set> <!-- bibitem-note-fn-style -->
13138
-
13139
- <xsl:template name="refine_bibitem-note-fn-style">
13140
- </xsl:template>
13141
-
13142
- <!-- footnote number on the page bottom -->
13143
- <xsl:attribute-set name="bibitem-note-fn-number-style">
13144
- <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
13145
- <xsl:attribute name="alignment-baseline">hanging</xsl:attribute>
13146
- <xsl:attribute name="padding-right">3mm</xsl:attribute>
13147
- </xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
13148
-
13149
- <!-- footnote body (text) on the page bottom -->
13150
- <xsl:attribute-set name="bibitem-note-fn-body-style">
13151
- <xsl:attribute name="font-size">10pt</xsl:attribute>
13152
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
13153
- <xsl:attribute name="start-indent">0pt</xsl:attribute>
13154
- <xsl:attribute name="margin-bottom">4pt</xsl:attribute>
13155
- </xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
13156
-
13157
13175
  <xsl:attribute-set name="references-non-normative-style">
13158
13176
  </xsl:attribute-set> <!-- references-non-normative-style -->
13159
13177
 
@@ -15555,10 +15573,28 @@
15555
15573
  </xsl:choose>
15556
15574
  </xsl:template>
15557
15575
 
15576
+ <xsl:attribute-set name="clause-style">
15577
+
15578
+ </xsl:attribute-set>
15579
+
15580
+ <xsl:template name="refine_clause-style">
15581
+ <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
15582
+ <!-- <xsl:if test="$namespace = 'rsd'">
15583
+ <xsl:variable name="level">
15584
+ <xsl:call-template name="getLevel">
15585
+ <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
15586
+ </xsl:call-template>
15587
+ </xsl:variable>
15588
+ <xsl:if test="$level &gt;= 4">
15589
+ <xsl:attribute name="margin-left">13mm</xsl:attribute>
15590
+ </xsl:if>
15591
+ </xsl:if> -->
15592
+ </xsl:template>
15593
+
15558
15594
  <!-- main sections -->
15559
15595
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
15560
15596
  <xsl:call-template name="setNamedDestination"/>
15561
- <fo:block>
15597
+ <fo:block role="Sect">
15562
15598
  <xsl:call-template name="setId"/>
15563
15599
 
15564
15600
  <xsl:call-template name="sections_element_style"/>
@@ -15691,6 +15727,10 @@
15691
15727
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
15692
15728
  </xsl:template>
15693
15729
 
15730
+ <!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
15731
+ <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
15732
+ <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
15733
+
15694
15734
  <!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
15695
15735
  <xsl:template name="insert_basic_link">
15696
15736
  <xsl:param name="element"/>