metanorma-ogc 2.8.3 → 2.8.4

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: ea093927e84e5a18c74db7fff71c9c838244289fffeeb417bd6ecb0995f05c1c
4
- data.tar.gz: e0d62e8f3bd652a3db1b610ed0b932305abf5109650783a97d49a264580e8b48
3
+ metadata.gz: b2aad826f9661d5781bd1e872196cd554ec20130e9eac612fef253761e883618
4
+ data.tar.gz: 79a6aab4493044a5ca744e0c369bc0f1db8e68989f9a4377c64319f8259d216b
5
5
  SHA512:
6
- metadata.gz: 34164ffb97dd59028ac42002d9534899735e350c048a3819fc82cf16b02532de7b67ca6fb01ef0a725fc8dbab077655f98e22a560ddc2568329f8b947a94c926
7
- data.tar.gz: 020134e9ad9cf9ef3d810a4e0c8dc2e78884cbcf0d5e0ee3ccdf4ed8f78d49a31cd46420319ce871542c6a53e9fd97831369696aa694f6c876413bcc0cffb4df
6
+ metadata.gz: 876c893712449f502f934d6e39bb874655636fb3bdf25c91cb8c6af4ef94e60ae8534744ab1127dba79f7c51791ed779e30d905b98d82ff79f95eabffddfac8c
7
+ data.tar.gz: 7c0310ad8f9d78c95e3189a19c35d0f3bf41e543b503331d3e5bec0bbd3590105a575b49861bfdd44aa25c954fd5f263fc9dd0cba5af2bc212eca626ce216db8
@@ -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;
@@ -906,12 +896,6 @@ dl pre {
906
896
  list-style-type: none;
907
897
  }
908
898
 
909
- .figure {
910
- line-height: 1.6em;
911
- padding: 1.5em;
912
- margin: 2em 0 1em 0;
913
- overflow: auto;
914
- }
915
899
  .figure .FigureTitle, .figure .figure-title {
916
900
  font-weight: 700;
917
901
  font-size: 1em;
@@ -924,6 +908,12 @@ dl pre {
924
908
  max-width: 100%;
925
909
  height: auto;
926
910
  }
911
+ .figure {
912
+ line-height: 1.6em;
913
+ padding: 1.5em;
914
+ margin: 2em 0 1em 0;
915
+ overflow: auto;
916
+ }
927
917
 
928
918
  table div.figure {
929
919
  padding: 0;
@@ -1065,6 +1055,14 @@ h4, .h4 {
1065
1055
  font-size: 1.4em;
1066
1056
  }
1067
1057
 
1058
+ .contact-info a:hover {
1059
+ text-decoration: underline;
1060
+ background: none;
1061
+ box-shadow: 0 0 0 0;
1062
+ }
1063
+ .contact-info a, .contact-info a:hover {
1064
+ color: #00335b;
1065
+ }
1068
1066
  .contact-info {
1069
1067
  padding: 2em;
1070
1068
  margin-top: 5em;
@@ -1074,14 +1072,6 @@ h4, .h4 {
1074
1072
  color: #00335b !important;
1075
1073
  border-radius: 25px;
1076
1074
  }
1077
- .contact-info a:hover {
1078
- text-decoration: underline;
1079
- background: none;
1080
- box-shadow: 0 0 0 0;
1081
- }
1082
- .contact-info a, .contact-info a:hover {
1083
- color: #00335b;
1084
- }
1085
1075
  .contact-info p, .contact-info a {
1086
1076
  font-family: {{monospacefont}};
1087
1077
  font-variant-ligatures: none;
@@ -1138,7 +1128,6 @@ table {
1138
1128
  margin-left: auto;
1139
1129
  margin-right: auto;
1140
1130
  padding-right: 2em;
1141
- /*color: #010d16;*/
1142
1131
  }
1143
1132
  table, table th, table td {
1144
1133
  border: 1px solid black;
@@ -1150,6 +1139,9 @@ table th, table td {
1150
1139
  table td.header {
1151
1140
  font-weight: 400;
1152
1141
  }
1142
+ table {
1143
+ /*color: #010d16;*/
1144
+ }
1153
1145
  table thead tr th {
1154
1146
  background-color: #5d99d6;
1155
1147
  }
@@ -1173,7 +1165,6 @@ table.modspec {
1173
1165
  margin-left: auto;
1174
1166
  margin-right: auto;
1175
1167
  padding-right: 2em;
1176
- color: #010d16;
1177
1168
  }
1178
1169
  table.modspec, table.modspec th, table.modspec td {
1179
1170
  border: none !important;
@@ -1185,6 +1176,9 @@ table.modspec th, table.modspec td {
1185
1176
  table.modspec td.header {
1186
1177
  font-weight: 400;
1187
1178
  }
1179
+ table.modspec {
1180
+ color: #010d16;
1181
+ }
1188
1182
  table.modspec tr:nth-child(even) {
1189
1183
  background: #ffffff;
1190
1184
  }
@@ -1297,6 +1291,11 @@ pre, .sourcecode {
1297
1291
  font-variant-ligatures: none;
1298
1292
  }
1299
1293
 
1294
+ .Admonition .AdmonitionTitle {
1295
+ font-weight: 700;
1296
+ font-size: 1em;
1297
+ text-align: center;
1298
+ }
1300
1299
  .Admonition {
1301
1300
  padding: 1em 1.2em 1.2em 1.2em;
1302
1301
  margin: 1em 0 1em 0;
@@ -1304,11 +1303,6 @@ pre, .sourcecode {
1304
1303
  border-top: 10px solid #eb5a06;
1305
1304
  color: #290404;
1306
1305
  }
1307
- .Admonition .AdmonitionTitle {
1308
- font-weight: 700;
1309
- font-size: 1em;
1310
- text-align: center;
1311
- }
1312
1306
  .Admonition.Important {
1313
1307
  background-color: #f58cff;
1314
1308
  color: #5d1364;
@@ -870,7 +870,8 @@
870
870
 
871
871
  <xsl:if test="count(*) = 1 and mn:fmt-title"> <!-- if there isn't user ToC -->
872
872
 
873
- <fo:block-container line-height="130%">
873
+ <fo:block-container xsl:use-attribute-sets="toc-style">
874
+ <xsl:call-template name="refine_toc-style"/>
874
875
  <fo:block role="TOC">
875
876
  <xsl:for-each select="$contents//mnx:item[@display = 'true' and normalize-space(@id) != '']">
876
877
 
@@ -1263,11 +1264,9 @@
1263
1264
  </xsl:template>
1264
1265
 
1265
1266
  <xsl:template match="mn:legal-statement//mn:fmt-title" priority="2">
1266
- <xsl:variable name="level">
1267
- <xsl:call-template name="getLevel"/>
1268
- </xsl:variable>
1269
1267
  <!-- inline title -->
1270
- <fo:inline font-weight="bold" role="H{$level}">
1268
+ <fo:inline xsl:use-attribute-sets="legal-statement-title-style">
1269
+ <xsl:call-template name="refine_legal-statement-title-style"/>
1271
1270
  <xsl:apply-templates/><xsl:text>: </xsl:text>
1272
1271
  </fo:inline>
1273
1272
  </xsl:template>
@@ -1279,7 +1278,8 @@
1279
1278
  </xsl:template>
1280
1279
 
1281
1280
  <xsl:template match="mn:legal-statement//mn:p" priority="2">
1282
- <fo:inline>
1281
+ <fo:inline xsl:use-attribute-sets="legal-statement-p-style">
1282
+ <xsl:call-template name="refine_legal-statement-p-style"/>
1283
1283
  <xsl:apply-templates/>
1284
1284
  </fo:inline>
1285
1285
  <xsl:if test="following-sibling::mn:p">
@@ -1435,11 +1435,7 @@
1435
1435
  </xsl:choose>
1436
1436
  </xsl:variable>
1437
1437
  <xsl:element name="{$element-name}">
1438
- <xsl:if test="@id">
1439
- <xsl:attribute name="id">
1440
- <xsl:value-of select="@id"/>
1441
- </xsl:attribute>
1442
- </xsl:if>
1438
+ <xsl:copy-of select="@id"/>
1443
1439
 
1444
1440
  <xsl:call-template name="setBlockAttributes"/>
1445
1441
 
@@ -1493,21 +1489,8 @@
1493
1489
  </xsl:if>
1494
1490
  <fo:block-container margin-left="0mm">
1495
1491
  <fo:list-block xsl:use-attribute-sets="list-style">
1496
- <xsl:if test="self::mn:ul">
1497
- <xsl:attribute name="provisional-distance-between-starts"><xsl:value-of select="$ul_indent"/>mm</xsl:attribute>
1498
- </xsl:if>
1499
- <xsl:if test="ancestor::mn:table">
1500
- <xsl:attribute name="provisional-distance-between-starts">5mm</xsl:attribute>
1501
- </xsl:if>
1502
- <xsl:if test="ancestor::mn:ul | ancestor::mn:ol">
1503
- <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
1504
- <xsl:if test="ancestor::mn:table[not(@class)]">
1505
- <xsl:attribute name="space-after">1mm</xsl:attribute>
1506
- </xsl:if>
1507
- </xsl:if>
1508
- <xsl:if test="following-sibling::*[1][self::mn:ul or self::mn:ol]">
1509
- <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
1510
- </xsl:if>
1492
+ <xsl:call-template name="refine_list-style"/>
1493
+
1511
1494
  <xsl:apply-templates>
1512
1495
  <xsl:with-param name="indent" select="$indent + $ul_indent"/>
1513
1496
  </xsl:apply-templates>
@@ -1529,10 +1512,8 @@
1529
1512
  </xsl:template>
1530
1513
 
1531
1514
  <xsl:template match="mn:term/mn:fmt-name" priority="2">
1532
- <xsl:variable name="levelTerm">
1533
- <xsl:call-template name="getLevelTermName"/>
1534
- </xsl:variable>
1535
- <fo:block space-before="36pt" margin-bottom="10pt" keep-with-next="always" role="H{$levelTerm}">
1515
+ <fo:block xsl:use-attribute-sets="term-name-style">
1516
+ <xsl:call-template name="refine_term-name-style"/>
1536
1517
  <fo:list-block color="{$color_text_title}" keep-with-next="always" provisional-distance-between-starts="{string-length()*3.25}mm">
1537
1518
  <fo:list-item>
1538
1519
  <fo:list-item-label end-indent="label-end()">
@@ -1553,7 +1534,7 @@
1553
1534
 
1554
1535
  <!-- first preferred displays on the same line as term/name -->
1555
1536
  <xsl:template match="mn:fmt-preferred[not(preceding-sibling::mn:fmt-preferred)]" mode="term_name" priority="2">
1556
- <fo:inline font-size="18pt" padding-right="3mm"><xsl:call-template name="refine_preferred-term-style"/><xsl:apply-templates/></fo:inline>
1537
+ <fo:inline xsl:use-attribute-sets="preferred-term-style"><xsl:call-template name="refine_preferred-term-style"/><xsl:apply-templates/></fo:inline>
1557
1538
  <fo:inline padding-right="2mm"> </fo:inline>
1558
1539
  </xsl:template>
1559
1540
 
@@ -2177,6 +2158,7 @@
2177
2158
  <xsl:variable name="en_dash">–</xsl:variable>
2178
2159
  <xsl:variable name="em_dash">—</xsl:variable>
2179
2160
  <xsl:variable name="nonbreak_space_em_dash_space"> — </xsl:variable>
2161
+ <xsl:variable name="nonbreak_space_em_dash"> —</xsl:variable>
2180
2162
  <xsl:variable name="cr">&#13;</xsl:variable>
2181
2163
  <xsl:variable name="lf">
2182
2164
  </xsl:variable>
@@ -2720,6 +2702,7 @@
2720
2702
  <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]" mode="update_xml_step1"/>
2721
2703
  <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]" mode="update_xml_step1"/>
2722
2704
  <xsl:template match="mn:section-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
2705
+ <xsl:template match="mn:floating-title[following-sibling::*[1][self::mn:p][@type = 'section-title' or @type = 'floating-title']]" mode="update_xml_step1"/>
2723
2706
  <!-- <xsl:template match="mn:preferred[following-sibling::*[not(local-name() = 'preferred')][1][local-name() = 'fmt-preferred']]" mode="update_xml_step1"/> -->
2724
2707
  <xsl:template match="mn:preferred" mode="update_xml_step1"/>
2725
2708
  <!-- <xsl:template match="mn:admitted[following-sibling::*[not(local-name() = 'admitted')][1][local-name() = 'fmt-admitted']]" mode="update_xml_step1"/> -->
@@ -2734,10 +2717,10 @@
2734
2717
 
2735
2718
  <xsl:template match="mn:term[@unnumbered = 'true'][not(.//*[starts-with(local-name(), 'fmt-')])]" mode="update_xml_step1"/>
2736
2719
 
2737
- <xsl:template match="mn:p[@type = 'section-title' or @type = 'floating-title'][preceding-sibling::*[1][self::mn:section-title]]" mode="update_xml_step1">
2720
+ <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">
2738
2721
  <xsl:copy>
2739
2722
  <xsl:apply-templates select="@*" mode="update_xml_step1"/>
2740
- <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title]/@depth"/>
2723
+ <xsl:copy-of select="preceding-sibling::*[1][self::mn:section-title or self::mn:floating-title]/@depth"/>
2741
2724
  <xsl:apply-templates select="node()" mode="update_xml_step1"/>
2742
2725
  </xsl:copy>
2743
2726
  </xsl:template>
@@ -3564,9 +3547,14 @@
3564
3547
 
3565
3548
  <xsl:attribute-set name="legal-statement-title-style">
3566
3549
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
3550
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
3567
3551
  </xsl:attribute-set> <!-- legal-statement-title-style -->
3568
3552
 
3569
3553
  <xsl:template name="refine_legal-statement-title-style">
3554
+ <xsl:variable name="level">
3555
+ <xsl:call-template name="getLevel"/>
3556
+ </xsl:variable>
3557
+ <xsl:attribute name="role">H<xsl:value-of select="$level"/></xsl:attribute>
3570
3558
  </xsl:template>
3571
3559
 
3572
3560
  <xsl:attribute-set name="legal-statement-p-style">
@@ -3874,6 +3862,12 @@
3874
3862
  </xsl:if>
3875
3863
  </xsl:template> <!-- refine_sourcecode-style -->
3876
3864
 
3865
+ <xsl:attribute-set name="sourcecode-number-style">
3866
+ </xsl:attribute-set>
3867
+
3868
+ <xsl:template name="refine_sourcecode-number-style">
3869
+ </xsl:template>
3870
+
3877
3871
  <xsl:attribute-set name="sourcecode-name-style">
3878
3872
  <xsl:attribute name="font-size">11pt</xsl:attribute>
3879
3873
  <xsl:attribute name="font-weight">bold</xsl:attribute>
@@ -5319,9 +5313,23 @@
5319
5313
  <xsl:attribute-set name="term-name-style">
5320
5314
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
5321
5315
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5316
+ <xsl:attribute name="font-weight">normal</xsl:attribute>
5317
+ <xsl:attribute name="space-before">36pt</xsl:attribute>
5318
+ <xsl:attribute name="margin-bottom">10pt</xsl:attribute>
5319
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
5322
5320
  </xsl:attribute-set> <!-- term-name-style -->
5323
5321
 
5324
5322
  <xsl:template name="refine_term-name-style">
5323
+ <xsl:variable name="levelTerm">
5324
+ <xsl:call-template name="getLevelTermName"/>
5325
+ </xsl:variable>
5326
+ <xsl:attribute name="role">H<xsl:value-of select="$levelTerm"/></xsl:attribute>
5327
+ </xsl:template>
5328
+
5329
+ <xsl:attribute-set name="preferred-style">
5330
+ </xsl:attribute-set> <!-- preferred-style -->
5331
+
5332
+ <xsl:template name="refine_preferred-style">
5325
5333
  </xsl:template>
5326
5334
 
5327
5335
  <xsl:attribute-set name="preferred-block-style">
@@ -5333,6 +5341,8 @@
5333
5341
  <xsl:attribute-set name="preferred-term-style">
5334
5342
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
5335
5343
  <xsl:attribute name="font-weight">bold</xsl:attribute>
5344
+ <xsl:attribute name="font-size">18pt</xsl:attribute>
5345
+ <xsl:attribute name="padding-right">3mm</xsl:attribute>
5336
5346
  </xsl:attribute-set> <!-- preferred-term-style -->
5337
5347
 
5338
5348
  <xsl:template name="refine_preferred-term-style">
@@ -5958,6 +5968,12 @@
5958
5968
  <xsl:call-template name="setBordersTableArray"/>
5959
5969
  </xsl:template> <!-- refine_table-style -->
5960
5970
 
5971
+ <xsl:attribute-set name="table-number-style">
5972
+ </xsl:attribute-set>
5973
+
5974
+ <xsl:template name="refine_table-number-style">
5975
+ </xsl:template>
5976
+
5961
5977
  <xsl:attribute-set name="table-name-style">
5962
5978
  <xsl:attribute name="role">Caption</xsl:attribute>
5963
5979
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
@@ -6425,7 +6441,7 @@
6425
6441
 
6426
6442
  </fo:block>
6427
6443
 
6428
- <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'iec' or $namespace = 'iso'"> -->
6444
+ <!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas' or $namespace = 'iec' or $namespace = 'iso'"> -->
6429
6445
  <xsl:if test="$continued = 'true'">
6430
6446
 
6431
6447
  <!-- to prevent the error 'THead element may contain only TR elements' -->
@@ -9591,6 +9607,12 @@
9591
9607
  <xsl:template name="refine_figure-style">
9592
9608
  </xsl:template>
9593
9609
 
9610
+ <xsl:attribute-set name="figure-number-style">
9611
+ </xsl:attribute-set>
9612
+
9613
+ <xsl:template name="refine_figure-number-style">
9614
+ </xsl:template>
9615
+
9594
9616
  <xsl:attribute-set name="figure-name-style">
9595
9617
  <xsl:attribute name="role">Caption</xsl:attribute>
9596
9618
  <xsl:attribute name="color"><xsl:value-of select="$color_text_title"/></xsl:attribute>
@@ -11244,6 +11266,22 @@
11244
11266
  </xsl:attribute-set> <!-- list-style -->
11245
11267
 
11246
11268
  <xsl:template name="refine_list-style">
11269
+ <xsl:variable name="ul_indent">6</xsl:variable>
11270
+ <xsl:if test="self::mn:ul">
11271
+ <xsl:attribute name="provisional-distance-between-starts"><xsl:value-of select="$ul_indent"/>mm</xsl:attribute>
11272
+ </xsl:if>
11273
+ <xsl:if test="ancestor::mn:table">
11274
+ <xsl:attribute name="provisional-distance-between-starts">5mm</xsl:attribute>
11275
+ </xsl:if>
11276
+ <xsl:if test="ancestor::mn:ul | ancestor::mn:ol">
11277
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
11278
+ <xsl:if test="ancestor::mn:table[not(@class)]">
11279
+ <xsl:attribute name="space-after">1mm</xsl:attribute>
11280
+ </xsl:if>
11281
+ </xsl:if>
11282
+ <xsl:if test="following-sibling::*[1][self::mn:ul or self::mn:ol]">
11283
+ <xsl:attribute name="margin-bottom">0pt</xsl:attribute>
11284
+ </xsl:if>
11247
11285
  </xsl:template> <!-- refine_list-style -->
11248
11286
 
11249
11287
  <xsl:attribute-set name="list-name-style">
@@ -12175,7 +12213,7 @@
12175
12213
 
12176
12214
  <fo:list-item>
12177
12215
  <fo:list-item-label end-indent="label-end()">
12178
- <fo:block role="SKIP">
12216
+ <fo:block role="SKIP" id="__internal_layout__bibitem_{@id}_{generate-id()}">
12179
12217
  <fo:inline role="SKIP">
12180
12218
  <xsl:apply-templates select="mn:biblio-tag">
12181
12219
  <xsl:with-param name="biblio_tag_part">first</xsl:with-param>
@@ -12828,6 +12866,7 @@
12828
12866
  <!-- =================== -->
12829
12867
 
12830
12868
  <xsl:attribute-set name="toc-style">
12869
+ <xsl:attribute name="line-height">130%</xsl:attribute>
12831
12870
  </xsl:attribute-set>
12832
12871
 
12833
12872
  <xsl:template name="refine_toc-style">
@@ -14423,10 +14462,17 @@
14423
14462
  </xsl:choose>
14424
14463
  </xsl:template>
14425
14464
 
14465
+ <xsl:attribute-set name="clause-style">
14466
+
14467
+ </xsl:attribute-set>
14468
+
14469
+ <xsl:template name="refine_clause-style">
14470
+ </xsl:template>
14471
+
14426
14472
  <!-- main sections -->
14427
14473
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
14428
14474
  <xsl:call-template name="setNamedDestination"/>
14429
- <fo:block>
14475
+ <fo:block role="Sect">
14430
14476
  <xsl:call-template name="setId"/>
14431
14477
 
14432
14478
  <xsl:call-template name="sections_element_style"/>
@@ -14554,6 +14600,10 @@
14554
14600
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
14555
14601
  </xsl:template>
14556
14602
 
14603
+ <!-- for case when update_xml_step1 (common.updatexml.xsl) doesn't apply when $table_if = 'true' -->
14604
+ <xsl:template match="mn:title[following-sibling::*[1][self::mn:fmt-title]]"/>
14605
+ <xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
14606
+
14557
14607
  <!-- insert fo:basic-link, if external-destination or internal-destination is non-empty, otherwise insert fo:inline -->
14558
14608
  <xsl:template name="insert_basic_link">
14559
14609
  <xsl:param name="element"/>