metanorma-itu 2.7.4 → 2.7.5

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: 158cbb29c6757d123636c505d9ed550694b834f347630eb571a1f63c927d3c73
4
+ data.tar.gz: 6a904ea8c0a540edac4ad1da46cce585da9f8f0d01f930c13afbb3d7a87345dc
5
5
  SHA512:
6
- metadata.gz: 5eb078cdc7ff1ca8e65df4136decbe59d9e4dcd2806471491d906552cb22ffd88919bcbbacf91006ce2290712bf711bf8194f7b3b128efaa43be618748bcf8ac
7
- data.tar.gz: 3988356edbc783a6ed52d1fb15b6ee1466edf08c4c0deb2bf43b93680096d03e01b943f598952711a93183b157f725db8e6ff12a7d8e93d07c5002580849338b
6
+ metadata.gz: 5c4a42c2abd0ccee5168911ab62cf52f451af0e21da12bfaac5405904057de581d653d4fda8f1b8a5bc21eb91de46fa70e7ced8e53874b71bab6d78a3d877c01
7
+ data.tar.gz: fd8dd2f4c22f84f69a20f1cdef91ffb731f8b241e8218fcc1f4c8e4c2c35289e2d0b68d8599a3c5da2dba9d063e4aeb6fa2b7a2ed921729ec627a56ffb0b3d47
@@ -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
@@ -3290,6 +3290,7 @@
3290
3290
  <xsl:variable name="en_dash">–</xsl:variable>
3291
3291
  <xsl:variable name="em_dash">—</xsl:variable>
3292
3292
  <xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
3293
+ <xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
3293
3294
  <xsl:variable name="cr">&#13;</xsl:variable>
3294
3295
  <xsl:variable name="lf">
3295
3296
  </xsl:variable>
@@ -3832,6 +3833,7 @@
3832
3833
  <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
3833
3834
  <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
3834
3835
  <xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3836
+ <xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3835
3837
  <!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
3836
3838
  <xsl:template match="mn:preferred" mode="update_xml_step1"/>
3837
3839
  <!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
@@ -3846,10 +3848,10 @@
3846
3848
 
3847
3849
  <xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
3848
3850
 
3849
- <xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
3851
+ <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
3852
  <xsl:copy>
3851
3853
  <xsl:apply-templates select="@*" mode="update_xml_step1"/>
3852
- <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
3854
+ <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
3853
3855
  <xsl:apply-templates select="node()" mode="update_xml_step1"/>
3854
3856
  </xsl:copy>
3855
3857
  </xsl:template>
@@ -4965,6 +4967,12 @@
4965
4967
  <xsl:template name="refine_sourcecode-style">
4966
4968
  </xsl:template> <!-- refine_sourcecode-style -->
4967
4969
 
4970
+ <xsl:attribute-set name="sourcecode-number-style">
4971
+ </xsl:attribute-set>
4972
+
4973
+ <xsl:template name="refine_sourcecode-number-style">
4974
+ </xsl:template>
4975
+
4968
4976
  <xsl:attribute-set name="sourcecode-name-style">
4969
4977
  <xsl:attribute name="font-size">11pt</xsl:attribute>
4970
4978
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -6353,6 +6361,12 @@
6353
6361
  <xsl:template name="refine_term-name-style">
6354
6362
  </xsl:template>
6355
6363
 
6364
+ <xsl:attribute-set name="preferred-style">
6365
+ </xsl:attribute-set> <!-- preferred-style -->
6366
+
6367
+ <xsl:template name="refine_preferred-style">
6368
+ </xsl:template>
6369
+
6356
6370
  <xsl:attribute-set name="preferred-block-style">
6357
6371
  </xsl:attribute-set> <!-- preferred-block-style -->
6358
6372
 
@@ -6987,6 +7001,12 @@
6987
7001
  </xsl:if>
6988
7002
  </xsl:template> <!-- refine_table-style -->
6989
7003
 
7004
+ <xsl:attribute-set name="table-number-style">
7005
+ </xsl:attribute-set>
7006
+
7007
+ <xsl:template name="refine_table-number-style">
7008
+ </xsl:template>
7009
+
6990
7010
  <xsl:attribute-set name="table-name-style">
6991
7011
  <xsl:attribute name="role">Caption</xsl:attribute>
6992
7012
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -7470,7 +7490,7 @@
7470
7490
 
7471
7491
  </fo:block>
7472
7492
 
7473
- <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
7493
+ <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
7474
7494
  <xsl:if test="$continued = 'true'">
7475
7495
 
7476
7496
  <!-- to prevent the error 'THead element may contain only TR elements' -->
@@ -10659,6 +10679,12 @@
10659
10679
  <xsl:template name="refine_figure-style">
10660
10680
  </xsl:template>
10661
10681
 
10682
+ <xsl:attribute-set name="figure-number-style">
10683
+ </xsl:attribute-set>
10684
+
10685
+ <xsl:template name="refine_figure-number-style">
10686
+ </xsl:template>
10687
+
10662
10688
  <xsl:attribute-set name="figure-name-style">
10663
10689
  <xsl:attribute name="role">Caption</xsl:attribute>
10664
10690
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -15555,10 +15581,17 @@
15555
15581
  </xsl:choose>
15556
15582
  </xsl:template>
15557
15583
 
15584
+ <xsl:attribute-set name="clause-style">
15585
+
15586
+ </xsl:attribute-set>
15587
+
15588
+ <xsl:template name="refine_clause-style">
15589
+ </xsl:template>
15590
+
15558
15591
  <!-- main sections -->
15559
15592
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
15560
15593
  <xsl:call-template name="setNamedDestination"/>
15561
- <fo:block>
15594
+ <fo:block role="Sect">
15562
15595
  <xsl:call-template name="setId"/>
15563
15596
 
15564
15597
  <xsl:call-template name="sections_element_style"/>
@@ -15691,6 +15724,10 @@
15691
15724
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
15692
15725
  </xsl:template>
15693
15726
 
15727
+ <!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
15728
+ <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
15729
+ <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
15730
+
15694
15731
  <!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
15695
15732
  <xsl:template name="insert_basic_link">
15696
15733
  <xsl:param name="element"/>
@@ -3290,6 +3290,7 @@
3290
3290
  <xsl:variable name="en_dash">–</xsl:variable>
3291
3291
  <xsl:variable name="em_dash">—</xsl:variable>
3292
3292
  <xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
3293
+ <xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
3293
3294
  <xsl:variable name="cr">&#13;</xsl:variable>
3294
3295
  <xsl:variable name="lf">
3295
3296
  </xsl:variable>
@@ -3832,6 +3833,7 @@
3832
3833
  <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
3833
3834
  <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
3834
3835
  <xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3836
+ <xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3835
3837
  <!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
3836
3838
  <xsl:template match="mn:preferred" mode="update_xml_step1"/>
3837
3839
  <!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
@@ -3846,10 +3848,10 @@
3846
3848
 
3847
3849
  <xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
3848
3850
 
3849
- <xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
3851
+ <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
3852
  <xsl:copy>
3851
3853
  <xsl:apply-templates select="@*" mode="update_xml_step1"/>
3852
- <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
3854
+ <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
3853
3855
  <xsl:apply-templates select="node()" mode="update_xml_step1"/>
3854
3856
  </xsl:copy>
3855
3857
  </xsl:template>
@@ -4965,6 +4967,12 @@
4965
4967
  <xsl:template name="refine_sourcecode-style">
4966
4968
  </xsl:template> <!-- refine_sourcecode-style -->
4967
4969
 
4970
+ <xsl:attribute-set name="sourcecode-number-style">
4971
+ </xsl:attribute-set>
4972
+
4973
+ <xsl:template name="refine_sourcecode-number-style">
4974
+ </xsl:template>
4975
+
4968
4976
  <xsl:attribute-set name="sourcecode-name-style">
4969
4977
  <xsl:attribute name="font-size">11pt</xsl:attribute>
4970
4978
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -6353,6 +6361,12 @@
6353
6361
  <xsl:template name="refine_term-name-style">
6354
6362
  </xsl:template>
6355
6363
 
6364
+ <xsl:attribute-set name="preferred-style">
6365
+ </xsl:attribute-set> <!-- preferred-style -->
6366
+
6367
+ <xsl:template name="refine_preferred-style">
6368
+ </xsl:template>
6369
+
6356
6370
  <xsl:attribute-set name="preferred-block-style">
6357
6371
  </xsl:attribute-set> <!-- preferred-block-style -->
6358
6372
 
@@ -6987,6 +7001,12 @@
6987
7001
  </xsl:if>
6988
7002
  </xsl:template> <!-- refine_table-style -->
6989
7003
 
7004
+ <xsl:attribute-set name="table-number-style">
7005
+ </xsl:attribute-set>
7006
+
7007
+ <xsl:template name="refine_table-number-style">
7008
+ </xsl:template>
7009
+
6990
7010
  <xsl:attribute-set name="table-name-style">
6991
7011
  <xsl:attribute name="role">Caption</xsl:attribute>
6992
7012
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -7470,7 +7490,7 @@
7470
7490
 
7471
7491
  </fo:block>
7472
7492
 
7473
- <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
7493
+ <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
7474
7494
  <xsl:if test="$continued = 'true'">
7475
7495
 
7476
7496
  <!-- to prevent the error 'THead element may contain only TR elements' -->
@@ -10659,6 +10679,12 @@
10659
10679
  <xsl:template name="refine_figure-style">
10660
10680
  </xsl:template>
10661
10681
 
10682
+ <xsl:attribute-set name="figure-number-style">
10683
+ </xsl:attribute-set>
10684
+
10685
+ <xsl:template name="refine_figure-number-style">
10686
+ </xsl:template>
10687
+
10662
10688
  <xsl:attribute-set name="figure-name-style">
10663
10689
  <xsl:attribute name="role">Caption</xsl:attribute>
10664
10690
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -15555,10 +15581,17 @@
15555
15581
  </xsl:choose>
15556
15582
  </xsl:template>
15557
15583
 
15584
+ <xsl:attribute-set name="clause-style">
15585
+
15586
+ </xsl:attribute-set>
15587
+
15588
+ <xsl:template name="refine_clause-style">
15589
+ </xsl:template>
15590
+
15558
15591
  <!-- main sections -->
15559
15592
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
15560
15593
  <xsl:call-template name="setNamedDestination"/>
15561
- <fo:block>
15594
+ <fo:block role="Sect">
15562
15595
  <xsl:call-template name="setId"/>
15563
15596
 
15564
15597
  <xsl:call-template name="sections_element_style"/>
@@ -15691,6 +15724,10 @@
15691
15724
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
15692
15725
  </xsl:template>
15693
15726
 
15727
+ <!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
15728
+ <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
15729
+ <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
15730
+
15694
15731
  <!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
15695
15732
  <xsl:template name="insert_basic_link">
15696
15733
  <xsl:param name="element"/>
@@ -3290,6 +3290,7 @@
3290
3290
  <xsl:variable name="en_dash">–</xsl:variable>
3291
3291
  <xsl:variable name="em_dash">—</xsl:variable>
3292
3292
  <xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
3293
+ <xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
3293
3294
  <xsl:variable name="cr">&#13;</xsl:variable>
3294
3295
  <xsl:variable name="lf">
3295
3296
  </xsl:variable>
@@ -3832,6 +3833,7 @@
3832
3833
  <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
3833
3834
  <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
3834
3835
  <xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3836
+ <xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3835
3837
  <!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
3836
3838
  <xsl:template match="mn:preferred" mode="update_xml_step1"/>
3837
3839
  <!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
@@ -3846,10 +3848,10 @@
3846
3848
 
3847
3849
  <xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
3848
3850
 
3849
- <xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
3851
+ <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
3852
  <xsl:copy>
3851
3853
  <xsl:apply-templates select="@*" mode="update_xml_step1"/>
3852
- <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
3854
+ <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
3853
3855
  <xsl:apply-templates select="node()" mode="update_xml_step1"/>
3854
3856
  </xsl:copy>
3855
3857
  </xsl:template>
@@ -4965,6 +4967,12 @@
4965
4967
  <xsl:template name="refine_sourcecode-style">
4966
4968
  </xsl:template> <!-- refine_sourcecode-style -->
4967
4969
 
4970
+ <xsl:attribute-set name="sourcecode-number-style">
4971
+ </xsl:attribute-set>
4972
+
4973
+ <xsl:template name="refine_sourcecode-number-style">
4974
+ </xsl:template>
4975
+
4968
4976
  <xsl:attribute-set name="sourcecode-name-style">
4969
4977
  <xsl:attribute name="font-size">11pt</xsl:attribute>
4970
4978
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -6353,6 +6361,12 @@
6353
6361
  <xsl:template name="refine_term-name-style">
6354
6362
  </xsl:template>
6355
6363
 
6364
+ <xsl:attribute-set name="preferred-style">
6365
+ </xsl:attribute-set> <!-- preferred-style -->
6366
+
6367
+ <xsl:template name="refine_preferred-style">
6368
+ </xsl:template>
6369
+
6356
6370
  <xsl:attribute-set name="preferred-block-style">
6357
6371
  </xsl:attribute-set> <!-- preferred-block-style -->
6358
6372
 
@@ -6987,6 +7001,12 @@
6987
7001
  </xsl:if>
6988
7002
  </xsl:template> <!-- refine_table-style -->
6989
7003
 
7004
+ <xsl:attribute-set name="table-number-style">
7005
+ </xsl:attribute-set>
7006
+
7007
+ <xsl:template name="refine_table-number-style">
7008
+ </xsl:template>
7009
+
6990
7010
  <xsl:attribute-set name="table-name-style">
6991
7011
  <xsl:attribute name="role">Caption</xsl:attribute>
6992
7012
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -7470,7 +7490,7 @@
7470
7490
 
7471
7491
  </fo:block>
7472
7492
 
7473
- <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
7493
+ <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
7474
7494
  <xsl:if test="$continued = 'true'">
7475
7495
 
7476
7496
  <!-- to prevent the error 'THead element may contain only TR elements' -->
@@ -10659,6 +10679,12 @@
10659
10679
  <xsl:template name="refine_figure-style">
10660
10680
  </xsl:template>
10661
10681
 
10682
+ <xsl:attribute-set name="figure-number-style">
10683
+ </xsl:attribute-set>
10684
+
10685
+ <xsl:template name="refine_figure-number-style">
10686
+ </xsl:template>
10687
+
10662
10688
  <xsl:attribute-set name="figure-name-style">
10663
10689
  <xsl:attribute name="role">Caption</xsl:attribute>
10664
10690
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -15555,10 +15581,17 @@
15555
15581
  </xsl:choose>
15556
15582
  </xsl:template>
15557
15583
 
15584
+ <xsl:attribute-set name="clause-style">
15585
+
15586
+ </xsl:attribute-set>
15587
+
15588
+ <xsl:template name="refine_clause-style">
15589
+ </xsl:template>
15590
+
15558
15591
  <!-- main sections -->
15559
15592
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
15560
15593
  <xsl:call-template name="setNamedDestination"/>
15561
- <fo:block>
15594
+ <fo:block role="Sect">
15562
15595
  <xsl:call-template name="setId"/>
15563
15596
 
15564
15597
  <xsl:call-template name="sections_element_style"/>
@@ -15691,6 +15724,10 @@
15691
15724
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
15692
15725
  </xsl:template>
15693
15726
 
15727
+ <!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
15728
+ <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
15729
+ <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
15730
+
15694
15731
  <!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
15695
15732
  <xsl:template name="insert_basic_link">
15696
15733
  <xsl:param name="element"/>
@@ -3290,6 +3290,7 @@
3290
3290
  <xsl:variable name="en_dash">–</xsl:variable>
3291
3291
  <xsl:variable name="em_dash">—</xsl:variable>
3292
3292
  <xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
3293
+ <xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
3293
3294
  <xsl:variable name="cr">&#13;</xsl:variable>
3294
3295
  <xsl:variable name="lf">
3295
3296
  </xsl:variable>
@@ -3832,6 +3833,7 @@
3832
3833
  <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
3833
3834
  <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
3834
3835
  <xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3836
+ <xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
3835
3837
  <!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
3836
3838
  <xsl:template match="mn:preferred" mode="update_xml_step1"/>
3837
3839
  <!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
@@ -3846,10 +3848,10 @@
3846
3848
 
3847
3849
  <xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
3848
3850
 
3849
- <xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
3851
+ <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
3852
  <xsl:copy>
3851
3853
  <xsl:apply-templates select="@*" mode="update_xml_step1"/>
3852
- <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
3854
+ <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
3853
3855
  <xsl:apply-templates select="node()" mode="update_xml_step1"/>
3854
3856
  </xsl:copy>
3855
3857
  </xsl:template>
@@ -4965,6 +4967,12 @@
4965
4967
  <xsl:template name="refine_sourcecode-style">
4966
4968
  </xsl:template> <!-- refine_sourcecode-style -->
4967
4969
 
4970
+ <xsl:attribute-set name="sourcecode-number-style">
4971
+ </xsl:attribute-set>
4972
+
4973
+ <xsl:template name="refine_sourcecode-number-style">
4974
+ </xsl:template>
4975
+
4968
4976
  <xsl:attribute-set name="sourcecode-name-style">
4969
4977
  <xsl:attribute name="font-size">11pt</xsl:attribute>
4970
4978
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -6353,6 +6361,12 @@
6353
6361
  <xsl:template name="refine_term-name-style">
6354
6362
  </xsl:template>
6355
6363
 
6364
+ <xsl:attribute-set name="preferred-style">
6365
+ </xsl:attribute-set> <!-- preferred-style -->
6366
+
6367
+ <xsl:template name="refine_preferred-style">
6368
+ </xsl:template>
6369
+
6356
6370
  <xsl:attribute-set name="preferred-block-style">
6357
6371
  </xsl:attribute-set> <!-- preferred-block-style -->
6358
6372
 
@@ -6987,6 +7001,12 @@
6987
7001
  </xsl:if>
6988
7002
  </xsl:template> <!-- refine_table-style -->
6989
7003
 
7004
+ <xsl:attribute-set name="table-number-style">
7005
+ </xsl:attribute-set>
7006
+
7007
+ <xsl:template name="refine_table-number-style">
7008
+ </xsl:template>
7009
+
6990
7010
  <xsl:attribute-set name="table-name-style">
6991
7011
  <xsl:attribute name="role">Caption</xsl:attribute>
6992
7012
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -7470,7 +7490,7 @@
7470
7490
 
7471
7491
  </fo:block>
7472
7492
 
7473
- <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
7493
+ <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
7474
7494
  <xsl:if test="$continued = 'true'">
7475
7495
 
7476
7496
  <!-- to prevent the error 'THead element may contain only TR elements' -->
@@ -10659,6 +10679,12 @@
10659
10679
  <xsl:template name="refine_figure-style">
10660
10680
  </xsl:template>
10661
10681
 
10682
+ <xsl:attribute-set name="figure-number-style">
10683
+ </xsl:attribute-set>
10684
+
10685
+ <xsl:template name="refine_figure-number-style">
10686
+ </xsl:template>
10687
+
10662
10688
  <xsl:attribute-set name="figure-name-style">
10663
10689
  <xsl:attribute name="role">Caption</xsl:attribute>
10664
10690
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -15555,10 +15581,17 @@
15555
15581
  </xsl:choose>
15556
15582
  </xsl:template>
15557
15583
 
15584
+ <xsl:attribute-set name="clause-style">
15585
+
15586
+ </xsl:attribute-set>
15587
+
15588
+ <xsl:template name="refine_clause-style">
15589
+ </xsl:template>
15590
+
15558
15591
  <!-- main sections -->
15559
15592
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
15560
15593
  <xsl:call-template name="setNamedDestination"/>
15561
- <fo:block>
15594
+ <fo:block role="Sect">
15562
15595
  <xsl:call-template name="setId"/>
15563
15596
 
15564
15597
  <xsl:call-template name="sections_element_style"/>
@@ -15691,6 +15724,10 @@
15691
15724
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
15692
15725
  </xsl:template>
15693
15726
 
15727
+ <!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
15728
+ <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
15729
+ <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
15730
+
15694
15731
  <!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
15695
15732
  <xsl:template name="insert_basic_link">
15696
15733
  <xsl:param name="element"/>