metanorma-cc 2.8.10 → 2.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fe64bc652ee4d4faee03d8d6a49c08ee041232a7b8165fb24d8a737ebf3638b
4
- data.tar.gz: d9dac22b9636b91df75eb13b27add51e5812a64becad8b5dbca27afa630c7d0e
3
+ metadata.gz: 98ce3944ca66867d78ec838a11becca97a761833b289edbd163a2bdd49ce0ed8
4
+ data.tar.gz: d2f1a5e45c3cce9a1630991e4cc11409169ff5cf2571c828d4d0d188e0825927
5
5
  SHA512:
6
- metadata.gz: 1f72c9331c18ab8c63508bc03047cf700f8038b9ee592b665d2569e145a4a5d07c57b7364c89e95c614c0e46f9f0424f5aa63b6d200af69b9f826ce94fe5001e
7
- data.tar.gz: a15b116455d643d1963818d0f68616957ec9396c173f65e213b2632b16b8d9a44b4af9c9249ffe5a5d9641a0c8e07a308146c04438d2d440f16eaa0976fe65cb
6
+ metadata.gz: f61c7e1d1ac2bf99dab81accb1f183388d3464df020ff48f45da2e6bba55255a2a79f0a419219a805f68d02901c7ba99a7dbdde044d7c6f5053fe57b125fc5de
7
+ data.tar.gz: 7bffcdf95f9b4df56c77b336e00b3cc5f1b1900294f97879564f51f0901d9618b7e7e3f15186b5759bf160a3e10eda2fa8e65e12f30e4e62394e752af498f38a
@@ -991,6 +991,7 @@
991
991
 
992
992
  <!-- Characters -->
993
993
  <xsl:variable name="linebreak">&#8232;</xsl:variable>
994
+ <xsl:variable name="em_space"> </xsl:variable>
994
995
  <xsl:variable name="tab_zh"> </xsl:variable>
995
996
  <xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
996
997
  <xsl:variable name="thin_space"> </xsl:variable>
@@ -4352,7 +4353,15 @@
4352
4353
  <!-- END requirement, recommendation, permission table -->
4353
4354
  <!-- ========== -->
4354
4355
 
4356
+ <xsl:attribute-set name="terms-style">
4357
+ <xsl:attribute name="role">Sect</xsl:attribute>
4358
+ </xsl:attribute-set>
4359
+
4360
+ <xsl:template name="refine_terms-style">
4361
+ </xsl:template>
4362
+
4355
4363
  <xsl:attribute-set name="term-style">
4364
+ <xsl:attribute name="role">Sect</xsl:attribute>
4356
4365
  </xsl:attribute-set> <!-- term-style -->
4357
4366
 
4358
4367
  <xsl:template name="refine_term-style">
@@ -4448,7 +4457,10 @@
4448
4457
  <xsl:template match="mn:terms">
4449
4458
  <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
4450
4459
  <xsl:call-template name="setNamedDestination"/>
4451
- <fo:block id="{@id}">
4460
+ <fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
4461
+ <xsl:call-template name="refine_terms-style"/>
4462
+ <xsl:call-template name="addTagElementT"/>
4463
+
4452
4464
  <xsl:apply-templates/>
4453
4465
  </fo:block>
4454
4466
  </xsl:template>
@@ -4457,6 +4469,7 @@
4457
4469
  <xsl:call-template name="setNamedDestination"/>
4458
4470
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
4459
4471
  <xsl:call-template name="refine_term-style"/>
4472
+ <xsl:call-template name="addTagElementT"/>
4460
4473
 
4461
4474
  <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
4462
4475
  </fo:block>
@@ -4692,7 +4705,9 @@
4692
4705
 
4693
4706
  <xsl:template match="mn:definitions">
4694
4707
  <xsl:call-template name="setNamedDestination"/>
4695
- <fo:block id="{@id}">
4708
+ <fo:block id="{@id}" role="Sect">
4709
+ <xsl:call-template name="addTagElementT"/>
4710
+
4696
4711
  <xsl:apply-templates/>
4697
4712
  </fo:block>
4698
4713
  </xsl:template>
@@ -4769,6 +4784,7 @@
4769
4784
  <xsl:template match="mn:termexample/mn:p">
4770
4785
  <xsl:variable name="element">inline
4771
4786
 
4787
+ <xsl:value-of select="$example_display_in"/>
4772
4788
  </xsl:variable>
4773
4789
  <xsl:choose>
4774
4790
  <xsl:when test="contains($element, 'block')">
@@ -5144,6 +5160,9 @@
5144
5160
  </xsl:attribute-set><!-- table-note-style -->
5145
5161
 
5146
5162
  <xsl:template name="refine_table-note-style">
5163
+ <xsl:if test="self::mn:note">
5164
+ <xsl:attribute name="role">Note</xsl:attribute>
5165
+ </xsl:if>
5147
5166
  </xsl:template> <!-- refine_table-note-style -->
5148
5167
 
5149
5168
  <xsl:attribute-set name="table-fn-style">
@@ -6445,7 +6464,7 @@
6445
6464
  </xsl:template> <!-- table/note -->
6446
6465
 
6447
6466
  <xsl:template match="mn:table/*[self::mn:note or self::mn:example]/mn:p | mn:table/mn:tfoot//*[self::mn:note or self::mn:example]/mn:p" priority="2">
6448
- <xsl:apply-templates/>
6467
+ <fo:inline role="P"><xsl:apply-templates/></fo:inline>
6449
6468
  </xsl:template>
6450
6469
 
6451
6470
  <!-- ============================ -->
@@ -7374,6 +7393,7 @@
7374
7393
  <!-- ========================== -->
7375
7394
 
7376
7395
  <xsl:attribute-set name="dl-block-style">
7396
+ <xsl:attribute name="role">SKIP</xsl:attribute>
7377
7397
  </xsl:attribute-set>
7378
7398
 
7379
7399
  <xsl:template name="refine_dl-block-style">
@@ -7383,18 +7403,21 @@
7383
7403
  </xsl:template>
7384
7404
 
7385
7405
  <xsl:attribute-set name="dt-row-style">
7406
+ <xsl:attribute name="role">LI</xsl:attribute>
7386
7407
  </xsl:attribute-set>
7387
7408
 
7388
7409
  <xsl:template name="refine_dt-row-style">
7389
7410
  </xsl:template>
7390
7411
 
7391
7412
  <xsl:attribute-set name="dt-cell-style">
7413
+ <xsl:attribute name="role">Lbl</xsl:attribute>
7392
7414
  </xsl:attribute-set>
7393
7415
 
7394
7416
  <xsl:template name="refine_dt-cell-style">
7395
7417
  </xsl:template> <!-- refine_dt-cell-style -->
7396
7418
 
7397
7419
  <xsl:attribute-set name="dt-block-style">
7420
+ <xsl:attribute name="role">SKIP</xsl:attribute>
7398
7421
  <xsl:attribute name="margin-top">0pt</xsl:attribute>
7399
7422
  <xsl:attribute name="margin-left">7mm</xsl:attribute>
7400
7423
  </xsl:attribute-set>
@@ -7412,6 +7435,7 @@
7412
7435
  </xsl:template>
7413
7436
 
7414
7437
  <xsl:attribute-set name="dd-cell-style">
7438
+ <xsl:attribute name="role">LBody</xsl:attribute>
7415
7439
  <xsl:attribute name="padding-left">2mm</xsl:attribute>
7416
7440
  </xsl:attribute-set>
7417
7441
 
@@ -7447,7 +7471,7 @@
7447
7471
  <xsl:variable name="isAdded" select="@added"/>
7448
7472
  <xsl:variable name="isDeleted" select="@deleted"/>
7449
7473
  <!-- <dl><xsl:copy-of select="."/></dl> -->
7450
- <fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
7474
+ <fo:block-container xsl:use-attribute-sets="dl-block-style">
7451
7475
 
7452
7476
  <xsl:call-template name="refine_dl-block-style"/>
7453
7477
 
@@ -7567,7 +7591,7 @@
7567
7591
  <fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
7568
7592
  </xsl:if>
7569
7593
 
7570
- <fo:table width="95%" table-layout="fixed">
7594
+ <fo:table width="95%" table-layout="fixed" role="L">
7571
7595
 
7572
7596
  <xsl:if test="$isGenerateTableIF = 'true'">
7573
7597
  <xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
@@ -7635,7 +7659,7 @@
7635
7659
  <xsl:with-param name="table_or_dl">dl</xsl:with-param>
7636
7660
  </xsl:apply-templates>
7637
7661
 
7638
- </xsl:when>
7662
+ </xsl:when> <!-- $isGenerateTableIF = 'true' -->
7639
7663
  <xsl:otherwise>
7640
7664
 
7641
7665
  <xsl:variable name="simple-table">
@@ -7690,7 +7714,7 @@
7690
7714
  <xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
7691
7715
  </xsl:call-template>
7692
7716
 
7693
- <fo:table-body>
7717
+ <fo:table-body role="SKIP">
7694
7718
 
7695
7719
  <!-- DEBUG -->
7696
7720
  <xsl:if test="$table_if_debug = 'true'">
@@ -7899,8 +7923,8 @@
7899
7923
  <td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
7900
7924
  </tr>
7901
7925
  -->
7902
- <fo:table-row>
7903
- <fo:table-cell number-columns-spanned="2">
7926
+ <fo:table-row role="SKIP">
7927
+ <fo:table-cell number-columns-spanned="2" role="SKIP">
7904
7928
  <fo:block role="SKIP">
7905
7929
  <xsl:call-template name="note"/>
7906
7930
  </fo:block>
@@ -7964,7 +7988,7 @@
7964
7988
  <xsl:call-template name="refine_dt-cell-style"/>
7965
7989
 
7966
7990
  <xsl:call-template name="setNamedDestination"/>
7967
- <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
7991
+ <fo:block xsl:use-attribute-sets="dt-block-style">
7968
7992
 
7969
7993
  <xsl:choose>
7970
7994
  <xsl:when test="$isGenerateTableIF = 'true'">
@@ -8053,7 +8077,7 @@
8053
8077
  </xsl:variable>
8054
8078
  <xsl:choose>
8055
8079
  <xsl:when test="$is_inline_element_after_where = 'true'">
8056
- <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
8080
+ <fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
8057
8081
  </xsl:when>
8058
8082
  <xsl:otherwise>
8059
8083
  <xsl:apply-templates select="."/>
@@ -8341,6 +8365,7 @@
8341
8365
  <!-- ====== -->
8342
8366
 
8343
8367
  <xsl:attribute-set name="note-style">
8368
+ <xsl:attribute name="role">Note</xsl:attribute>
8344
8369
  <xsl:attribute name="font-size">10pt</xsl:attribute>
8345
8370
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
8346
8371
  </xsl:attribute-set> <!-- note-style -->
@@ -8352,6 +8377,7 @@
8352
8377
  <xsl:variable name="note-body-indent-table">5mm</xsl:variable>
8353
8378
 
8354
8379
  <xsl:attribute-set name="note-name-style">
8380
+ <xsl:attribute name="role">Lbl</xsl:attribute>
8355
8381
  <xsl:attribute name="padding-right">6mm</xsl:attribute>
8356
8382
  </xsl:attribute-set> <!-- note-name-style -->
8357
8383
 
@@ -8363,9 +8389,13 @@
8363
8389
  </xsl:attribute-set>
8364
8390
 
8365
8391
  <xsl:template name="refine_table-note-name-style">
8392
+ <xsl:if test="self::mn:note">
8393
+ <xsl:attribute name="role">Lbl</xsl:attribute>
8394
+ </xsl:if>
8366
8395
  </xsl:template> <!-- refine_table-note-name-style -->
8367
8396
 
8368
8397
  <xsl:attribute-set name="note-p-style">
8398
+ <xsl:attribute name="role">P</xsl:attribute>
8369
8399
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
8370
8400
  </xsl:attribute-set> <!-- note-p-style -->
8371
8401
 
@@ -8373,6 +8403,7 @@
8373
8403
  </xsl:template>
8374
8404
 
8375
8405
  <xsl:attribute-set name="termnote-style">
8406
+ <xsl:attribute name="role">Note</xsl:attribute>
8376
8407
  <xsl:attribute name="font-size">10pt</xsl:attribute>
8377
8408
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
8378
8409
  </xsl:attribute-set> <!-- termnote-style -->
@@ -8381,12 +8412,14 @@
8381
8412
  </xsl:template> <!-- refine_termnote-style -->
8382
8413
 
8383
8414
  <xsl:attribute-set name="termnote-name-style">
8415
+ <xsl:attribute name="role">Lbl</xsl:attribute>
8384
8416
  </xsl:attribute-set> <!-- termnote-name-style -->
8385
8417
 
8386
8418
  <xsl:template name="refine_termnote-name-style">
8387
8419
  </xsl:template>
8388
8420
 
8389
8421
  <xsl:attribute-set name="termnote-p-style">
8422
+ <xsl:attribute name="role">P</xsl:attribute>
8390
8423
  </xsl:attribute-set>
8391
8424
 
8392
8425
  <xsl:template name="refine_termnote-p-style">
@@ -8401,7 +8434,7 @@
8401
8434
 
8402
8435
  <xsl:call-template name="setNamedDestination"/>
8403
8436
 
8404
- <fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
8437
+ <fo:block-container xsl:use-attribute-sets="note-style">
8405
8438
  <xsl:if test="not(parent::mn:references)">
8406
8439
  <xsl:copy-of select="@id"/>
8407
8440
  </xsl:if>
@@ -8411,11 +8444,11 @@
8411
8444
  <xsl:call-template name="refine_note-style"/>
8412
8445
 
8413
8446
  <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
8414
- <fo:block>
8447
+ <fo:block role="SKIP">
8415
8448
 
8416
8449
  <xsl:call-template name="refine_note_block_style"/>
8417
8450
 
8418
- <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
8451
+ <fo:inline xsl:use-attribute-sets="note-name-style">
8419
8452
 
8420
8453
  <xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
8421
8454
 
@@ -8438,7 +8471,15 @@
8438
8471
 
8439
8472
  </fo:inline>
8440
8473
 
8441
- <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
8474
+ <xsl:choose>
8475
+ <xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
8476
+ <fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
8477
+ </xsl:when>
8478
+ <xsl:otherwise>
8479
+ <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
8480
+ </xsl:otherwise>
8481
+ </xsl:choose>
8482
+
8442
8483
  </fo:block>
8443
8484
  </fo:block-container>
8444
8485
  </fo:block-container>
@@ -8451,13 +8492,13 @@
8451
8492
  <xsl:variable name="num"><xsl:number/></xsl:variable>
8452
8493
  <xsl:choose>
8453
8494
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
8454
- <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
8495
+ <fo:inline xsl:use-attribute-sets="note-p-style">
8455
8496
  <xsl:call-template name="refine_note-p-style"/>
8456
8497
  <xsl:apply-templates/>
8457
8498
  </fo:inline>
8458
8499
  </xsl:when>
8459
8500
  <xsl:otherwise>
8460
- <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
8501
+ <fo:block xsl:use-attribute-sets="note-p-style">
8461
8502
  <xsl:call-template name="refine_note-p-style"/>
8462
8503
  <xsl:apply-templates/>
8463
8504
  </fo:block>
@@ -9103,7 +9144,8 @@
9103
9144
 
9104
9145
  <!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
9105
9146
 
9106
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
9147
+ <fo:external-graphic src="{$src}" vertical-align="middle">
9148
+ <xsl:call-template name="addAltText"/>
9107
9149
 
9108
9150
  <xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
9109
9151
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -9167,11 +9209,12 @@
9167
9209
  <xsl:choose>
9168
9210
  <xsl:when test="$isDeleted = 'true'">
9169
9211
  <!-- enclose in svg -->
9170
- <fo:instream-foreign-object fox:alt-text="Image {@alt}">
9212
+ <fo:instream-foreign-object>
9171
9213
  <xsl:attribute name="width">100%</xsl:attribute>
9172
9214
  <xsl:attribute name="content-height">100%</xsl:attribute>
9173
9215
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
9174
9216
  <xsl:attribute name="scaling">uniform</xsl:attribute>
9217
+ <xsl:call-template name="addAltText"/>
9175
9218
 
9176
9219
  <xsl:apply-templates select="." mode="cross_image"/>
9177
9220
 
@@ -9187,7 +9230,8 @@
9187
9230
  <xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
9188
9231
  </fo:block> -->
9189
9232
 
9190
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}">
9233
+ <fo:external-graphic src="{$src}">
9234
+ <xsl:call-template name="addAltText"/>
9191
9235
 
9192
9236
  <xsl:choose>
9193
9237
  <!-- default -->
@@ -9247,6 +9291,25 @@
9247
9291
  </xsl:choose>
9248
9292
  </xsl:template>
9249
9293
 
9294
+ <xsl:template name="addAltText">
9295
+ <xsl:param name="name">Image</xsl:param>
9296
+ <xsl:variable name="alt-text">
9297
+ <xsl:choose>
9298
+ <xsl:when test="self::mn:image and normalize-space(@alt) != ''">
9299
+ <xsl:value-of select="@alt"/>
9300
+ </xsl:when>
9301
+ <xsl:when test="normalize-space(../@alt) != ''">
9302
+ <xsl:value-of select="../@alt"/>
9303
+ </xsl:when>
9304
+ <xsl:when test="normalize-space(../mn:fmt-name) != ''">
9305
+ <xsl:value-of select="../mn:fmt-name"/>
9306
+ </xsl:when>
9307
+ <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
9308
+ </xsl:choose>
9309
+ </xsl:variable>
9310
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
9311
+ </xsl:template>
9312
+
9250
9313
  <xsl:template name="setImageWidth">
9251
9314
  <xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
9252
9315
  <xsl:value-of select="@width"/>
@@ -9435,6 +9498,9 @@
9435
9498
 
9436
9499
  <xsl:variable name="alt-text">
9437
9500
  <xsl:choose>
9501
+ <xsl:when test="normalize-space(../@alt) != ''">
9502
+ <xsl:value-of select="../@alt"/>
9503
+ </xsl:when>
9438
9504
  <xsl:when test="normalize-space(../mn:fmt-name) != ''">
9439
9505
  <xsl:value-of select="../mn:fmt-name"/>
9440
9506
  </xsl:when>
@@ -11027,6 +11093,7 @@
11027
11093
 
11028
11094
  <!-- admonition -->
11029
11095
  <xsl:attribute-set name="admonition-style">
11096
+ <xsl:attribute name="role">Note</xsl:attribute>
11030
11097
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
11031
11098
  <xsl:attribute name="font-weight">bold</xsl:attribute>
11032
11099
  </xsl:attribute-set> <!-- admonition-style -->
@@ -11035,6 +11102,7 @@
11035
11102
  </xsl:template>
11036
11103
 
11037
11104
  <xsl:attribute-set name="admonition-container-style">
11105
+ <xsl:attribute name="role">SKIP</xsl:attribute>
11038
11106
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
11039
11107
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
11040
11108
  </xsl:attribute-set> <!-- admonition-container-style -->
@@ -11043,6 +11111,7 @@
11043
11111
  </xsl:template>
11044
11112
 
11045
11113
  <xsl:attribute-set name="admonition-name-style">
11114
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11046
11115
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
11047
11116
  </xsl:attribute-set> <!-- admonition-name-style -->
11048
11117
 
@@ -11904,9 +11973,9 @@
11904
11973
  <xsl:template name="fo_inline_bookmark">
11905
11974
  <xsl:param name="bookmark_id"/>
11906
11975
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
11907
- <fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
11976
+ <fo:inline id="{@id}" font-size="1pt" role="SKIP"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><fo:wrapper role="artifact"><xsl:value-of select="$hair_space"/></fo:wrapper></fo:inline>
11908
11977
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
11909
- <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
11978
+ <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt" role="SKIP"><fo:wrapper role="artifact"> </fo:wrapper></fo:inline></xsl:if>
11910
11979
  </xsl:template>
11911
11980
  <!-- =================== -->
11912
11981
  <!-- End of Index processing -->
@@ -12074,6 +12143,13 @@
12074
12143
  <!-- End Form's elements processing -->
12075
12144
  <!-- =================== -->
12076
12145
 
12146
+ <xsl:attribute-set name="toc-container-style">
12147
+ <xsl:attribute name="role">Sect</xsl:attribute>
12148
+ </xsl:attribute-set>
12149
+
12150
+ <xsl:template name="refine_toc-container-style">
12151
+ </xsl:template>
12152
+
12077
12153
  <xsl:attribute-set name="toc-style">
12078
12154
  <xsl:attribute name="font-weight">bold</xsl:attribute>
12079
12155
  <xsl:attribute name="line-height">115%</xsl:attribute>
@@ -13473,6 +13549,13 @@
13473
13549
  <!-- ===================================== -->
13474
13550
  <!-- ===================================== -->
13475
13551
 
13552
+ <xsl:attribute-set name="annex-style">
13553
+ <xsl:attribute name="role">Sect</xsl:attribute>
13554
+ </xsl:attribute-set>
13555
+
13556
+ <xsl:template name="refine_annex-style">
13557
+ </xsl:template>
13558
+
13476
13559
  <xsl:attribute-set name="annex-title-style">
13477
13560
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
13478
13561
  </xsl:attribute-set> <!-- annex-title-style -->
@@ -13480,6 +13563,40 @@
13480
13563
  <xsl:template name="refine_annex-title-style">
13481
13564
  </xsl:template>
13482
13565
 
13566
+ <xsl:template match="mn:annex[normalize-space() != '']">
13567
+ <xsl:choose>
13568
+ <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
13569
+ <fo:block role="SKIP">
13570
+ <xsl:apply-templates/>
13571
+ </fo:block>
13572
+ </xsl:when>
13573
+ <xsl:otherwise>
13574
+
13575
+ <fo:block break-after="page"/>
13576
+ <xsl:call-template name="setNamedDestination"/>
13577
+
13578
+ <fo:block xsl:use-attribute-sets="annex-style">
13579
+
13580
+ <xsl:call-template name="setId"/>
13581
+
13582
+ <!-- <xsl:if test="$namespace = 'iso'"> -->
13583
+ <xsl:call-template name="addTagElementT"/>
13584
+ <!-- </xsl:if> -->
13585
+
13586
+ <xsl:call-template name="setBlockSpanAll"/>
13587
+
13588
+ <xsl:call-template name="refine_annex-style"/>
13589
+
13590
+ <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
13591
+
13592
+ <fo:block role="SKIP">
13593
+ <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
13594
+ </fo:block>
13595
+ </fo:block>
13596
+ </xsl:otherwise>
13597
+ </xsl:choose>
13598
+ </xsl:template>
13599
+
13483
13600
  <xsl:attribute-set name="p-zzSTDTitle1-style">
13484
13601
  </xsl:attribute-set>
13485
13602
 
@@ -13936,22 +14053,14 @@
13936
14053
  </xsl:attribute-set>
13937
14054
 
13938
14055
  <xsl:attribute-set name="clause-style">
13939
-
14056
+ <xsl:attribute name="role">Sect</xsl:attribute>
13940
14057
  </xsl:attribute-set>
13941
14058
 
13942
14059
  <xsl:template name="refine_clause-style">
13943
- <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
13944
- <!-- <xsl:if test="$namespace = 'rsd'">
13945
- <xsl:variable name="level">
13946
- <xsl:call-template name="getLevel">
13947
- <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
13948
- </xsl:call-template>
13949
- </xsl:variable>
13950
- <xsl:if test="$level &gt;= 4">
13951
- <xsl:attribute name="margin-left">13mm</xsl:attribute>
13952
- </xsl:if>
13953
- </xsl:if> -->
13954
- </xsl:template>
14060
+ <xsl:if test="parent::mn:copyright-statement">
14061
+ <xsl:attribute name="role">SKIP</xsl:attribute>
14062
+ </xsl:if>
14063
+ </xsl:template> <!-- refine_clause-style -->
13955
14064
 
13956
14065
  <!-- main sections -->
13957
14066
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
@@ -13961,6 +14070,10 @@
13961
14070
 
13962
14071
  <xsl:call-template name="sections_element_style"/>
13963
14072
 
14073
+ <!-- <xsl:if test="$namespace = 'rsd'"> -->
14074
+ <xsl:call-template name="addTagElementT"/>
14075
+ <!-- </xsl:if> -->
14076
+
13964
14077
  <xsl:call-template name="addReviewHelper"/>
13965
14078
 
13966
14079
  <xsl:apply-templates/>
@@ -14027,16 +14140,15 @@
14027
14140
 
14028
14141
  <xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
14029
14142
  <xsl:call-template name="setNamedDestination"/>
14030
- <fo:block>
14031
- <xsl:if test="parent::mn:copyright-statement">
14032
- <xsl:attribute name="role">SKIP</xsl:attribute>
14033
- </xsl:if>
14143
+ <fo:block role="Sect">
14034
14144
 
14035
14145
  <xsl:call-template name="setId"/>
14036
14146
 
14147
+ <xsl:call-template name="addTagElementT"/>
14148
+
14037
14149
  <xsl:call-template name="setBlockSpanAll"/>
14038
14150
 
14039
- <xsl:call-template name="refine_clause_style"/>
14151
+ <xsl:call-template name="refine_clause-style"/>
14040
14152
 
14041
14153
  <xsl:call-template name="addReviewHelper"/>
14042
14154
 
@@ -14044,41 +14156,6 @@
14044
14156
  </fo:block>
14045
14157
  </xsl:template>
14046
14158
 
14047
- <xsl:template name="refine_clause_style">
14048
- </xsl:template> <!-- refine_clause_style -->
14049
-
14050
- <xsl:template match="mn:annex[normalize-space() != '']">
14051
- <xsl:choose>
14052
- <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
14053
- <fo:block>
14054
- <xsl:apply-templates/>
14055
- </fo:block>
14056
- </xsl:when>
14057
- <xsl:otherwise>
14058
-
14059
- <fo:block break-after="page"/>
14060
- <xsl:call-template name="setNamedDestination"/>
14061
-
14062
- <fo:block id="{@id}">
14063
-
14064
- <xsl:call-template name="setBlockSpanAll"/>
14065
-
14066
- <xsl:call-template name="refine_annex_style"/>
14067
-
14068
- </fo:block>
14069
-
14070
- <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
14071
-
14072
- <fo:block>
14073
- <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
14074
- </fo:block>
14075
- </xsl:otherwise>
14076
- </xsl:choose>
14077
- </xsl:template>
14078
-
14079
- <xsl:template name="refine_annex_style">
14080
- </xsl:template>
14081
-
14082
14159
  <xsl:template match="mn:name/text() | mn:fmt-name/text()">
14083
14160
  <!-- 0xA0 to space replacement -->
14084
14161
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
@@ -14194,6 +14271,13 @@
14194
14271
  <xsl:template name="addTagElementT">
14195
14272
  <xsl:variable name="title_">
14196
14273
  <xsl:apply-templates select="mn:fmt-title"/>
14274
+ <xsl:if test="not(mn:fmt-title) and self::mn:term">
14275
+ <name>
14276
+ <xsl:apply-templates select="mn:fmt-name"/>
14277
+ <xsl:text> </xsl:text>
14278
+ <xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
14279
+ </name>
14280
+ </xsl:if>
14197
14281
  </xsl:variable>
14198
14282
  <xsl:variable name="title__">
14199
14283
  <xsl:for-each select="xalan:nodeset($title_)/*/node()">
@@ -14203,7 +14287,7 @@
14203
14287
  </xsl:choose>
14204
14288
  </xsl:for-each>
14205
14289
  </xsl:variable>
14206
- <xsl:variable name="title" select="normalize-space($title__)"/>
14290
+ <xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' &#8232;'), ' '))"/>
14207
14291
  <xsl:if test="$title != ''">
14208
14292
  <xsl:attribute name="fox:title">
14209
14293
  <xsl:if test="ancestor::mn:sections">
@@ -130,6 +130,10 @@ dl dd {
130
130
  grid-column-start: 2;
131
131
  }
132
132
 
133
+ dl:has(dt .stem) {
134
+ grid-template-columns: fit-content(8em) auto;
135
+ }
136
+
133
137
  b, strong {
134
138
  font-weight: bold;
135
139
  }
@@ -130,6 +130,10 @@ dl dd {
130
130
  grid-column-start: 2;
131
131
  }
132
132
 
133
+ dl:has(dt .stem) {
134
+ grid-template-columns: fit-content(8em) auto;
135
+ }
136
+
133
137
  b, strong {
134
138
  font-weight: bold;
135
139
  }
@@ -1527,12 +1527,16 @@ to indicate that the index range covers a range of locations between the current
1527
1527
  <ref name="index-primary">
1528
1528
  <a:documentation>Primary index term to be recorded at the current location</a:documentation>
1529
1529
  </ref>
1530
- <ref name="index-secondary">
1531
- <a:documentation>Secondary index term to be recorded at the current location</a:documentation>
1532
- </ref>
1533
- <ref name="index-tertiary">
1534
- <a:documentation>Tertiary index term to be recorded at the current </a:documentation>
1535
- </ref>
1530
+ <optional>
1531
+ <ref name="index-secondary">
1532
+ <a:documentation>Secondary index term to be recorded at the current location</a:documentation>
1533
+ </ref>
1534
+ </optional>
1535
+ <optional>
1536
+ <ref name="index-tertiary">
1537
+ <a:documentation>Tertiary index term to be recorded at the current </a:documentation>
1538
+ </ref>
1539
+ </optional>
1536
1540
  </element>
1537
1541
  </define>
1538
1542
  <define name="index-xref">
@@ -1547,12 +1551,16 @@ The text in the inline element is the primary index term to be be cross-referenc
1547
1551
  <ref name="index-primary">
1548
1552
  <a:documentation>The primary index term to be cross-referenced</a:documentation>
1549
1553
  </ref>
1550
- <ref name="index-secondary">
1551
- <a:documentation>The secondary index term to be cross-referenced</a:documentation>
1552
- </ref>
1553
- <ref name="index-tertiary">
1554
- <a:documentation>The tertiary index term to be cross-referenced</a:documentation>
1555
- </ref>
1554
+ <optional>
1555
+ <ref name="index-secondary">
1556
+ <a:documentation>The secondary index term to be cross-referenced</a:documentation>
1557
+ </ref>
1558
+ </optional>
1559
+ <optional>
1560
+ <ref name="index-tertiary">
1561
+ <a:documentation>The tertiary index term to be cross-referenced</a:documentation>
1562
+ </ref>
1563
+ </optional>
1556
1564
  <element name="target">
1557
1565
  <a:documentation>The index term to be cross-referenced to</a:documentation>
1558
1566
  <oneOrMore>
@@ -1933,7 +1941,8 @@ or as the string "auto"</a:documentation>
1933
1941
  <define name="mathml">
1934
1942
  <a:documentation>Encoding of MathML: the official W3C MathML 4 grammar (namespace
1935
1943
  http://www.w3.org/1998/Math/MathML), via the metanorma wrapper in
1936
- grammars/mathml/. See grammars/mathml/README.adoc and basicdoc-models#35.</a:documentation>
1944
+ grammars/mathml/. See grammars/mathml/README.adoc, basicdoc-models#35,
1945
+ and the MathML 3 -&gt; 4 migration: basicdoc-models#39 / metanorma#585.</a:documentation>
1937
1946
  <externalRef href="metanorma-mathml.rng"/>
1938
1947
  </define>
1939
1948
  <define name="StemAttributes">
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <!-- VERSION v2.1.6 -->
3
+ <!-- VERSION v2.2.0 -->
4
4
 
5
5
  <!--
6
6
  ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Cc
3
- VERSION = "2.8.10".freeze
3
+ VERSION = "2.8.11".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.10
4
+ version: 2.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.