metanorma-iso 3.4.9 → 3.4.10

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: 0d0ba1cf92d2fdda919d052eca80c7390d433ec3ca8846691b0d873167b8f201
4
- data.tar.gz: 62fe9ac86defc396612e7ebbd6be246b2ff2eb7a31962a801f83e7d6ea94a20b
3
+ metadata.gz: 1cacd06dc2b504fd301477d5eab0df9056ee68bfb2c1b741305ba4c427a81344
4
+ data.tar.gz: 81b8e3f42191ffe46cd04547bb3447197d19bdf759c5eccd90c779b42cf813e5
5
5
  SHA512:
6
- metadata.gz: '0529aff473717fe20ae265bf436938f69b6d7f0bdbdc3c548f2ad99238d036eac9ba16fa195d7318ba85eb22a20b0fff9d1fd86cd833236c8748214591dbede6'
7
- data.tar.gz: 8034436590df5ac775e87eb42b50e7d9968b5ab01472a56c5a65c2721d901571cdf57320d27bd1e23e39ca36cc55d8f63d32cf42369c754f1d76a3bd0ce525b8
6
+ metadata.gz: c45471643d222cd6368b5241a6257bf840d3522ca2d5ae310888ca001cb1487147ae5981b00ccdfdddb04ed476fed60a446568234bbf66f63de6d7ca3d5e8d20
7
+ data.tar.gz: 6606f740dc33c4498b95fc03fd91c43108fb8326e0acb15a398c78ed4a0a8f6f996da065baa17877813b87b97f4ff9c349fbba05d24112df7b900364b27a52f2
@@ -137,6 +137,10 @@ dl dd {
137
137
  grid-column-start: 2;
138
138
  }
139
139
 
140
+ dl:has(dt .stem) {
141
+ grid-template-columns: fit-content(8em) auto;
142
+ }
143
+
140
144
  b, strong {
141
145
  font-weight: bold;
142
146
  }
@@ -137,6 +137,10 @@ dl dd {
137
137
  grid-column-start: 2;
138
138
  }
139
139
 
140
+ dl:has(dt .stem) {
141
+ grid-template-columns: fit-content(8em) auto;
142
+ }
143
+
140
144
  b, strong {
141
145
  font-weight: bold;
142
146
  }
@@ -4962,7 +4962,9 @@
4962
4962
 
4963
4963
  <xsl:call-template name="setBlockSpanAll"/>
4964
4964
 
4965
- <xsl:call-template name="refine_clause_style"/>
4965
+ <xsl:call-template name="addTagElementT"/>
4966
+
4967
+ <xsl:call-template name="refine_clause-style"/>
4966
4968
 
4967
4969
  <xsl:call-template name="addReviewHelper"/>
4968
4970
 
@@ -6530,6 +6532,7 @@
6530
6532
 
6531
6533
  <!-- Characters -->
6532
6534
  <xsl:variable name="linebreak">&#8232;</xsl:variable>
6535
+ <xsl:variable name="em_space"> </xsl:variable>
6533
6536
  <xsl:variable name="tab_zh"> </xsl:variable>
6534
6537
  <xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
6535
6538
  <xsl:variable name="thin_space"> </xsl:variable>
@@ -10104,7 +10107,15 @@
10104
10107
  <!-- END requirement, recommendation, permission table -->
10105
10108
  <!-- ========== -->
10106
10109
 
10110
+ <xsl:attribute-set name="terms-style">
10111
+ <xsl:attribute name="role">Sect</xsl:attribute>
10112
+ </xsl:attribute-set>
10113
+
10114
+ <xsl:template name="refine_terms-style">
10115
+ </xsl:template>
10116
+
10107
10117
  <xsl:attribute-set name="term-style">
10118
+ <xsl:attribute name="role">Sect</xsl:attribute>
10108
10119
  <xsl:attribute name="margin-bottom">10pt</xsl:attribute>
10109
10120
  </xsl:attribute-set> <!-- term-style -->
10110
10121
 
@@ -10203,7 +10214,10 @@
10203
10214
  <xsl:template match="mn:terms">
10204
10215
  <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
10205
10216
  <xsl:call-template name="setNamedDestination"/>
10206
- <fo:block id="{@id}">
10217
+ <fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
10218
+ <xsl:call-template name="refine_terms-style"/>
10219
+ <xsl:call-template name="addTagElementT"/>
10220
+
10207
10221
  <xsl:apply-templates/>
10208
10222
  </fo:block>
10209
10223
  </xsl:template>
@@ -10212,6 +10226,7 @@
10212
10226
  <xsl:call-template name="setNamedDestination"/>
10213
10227
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
10214
10228
  <xsl:call-template name="refine_term-style"/>
10229
+ <xsl:call-template name="addTagElementT"/>
10215
10230
 
10216
10231
  <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
10217
10232
  </fo:block>
@@ -10442,7 +10457,9 @@
10442
10457
 
10443
10458
  <xsl:template match="mn:definitions">
10444
10459
  <xsl:call-template name="setNamedDestination"/>
10445
- <fo:block id="{@id}">
10460
+ <fo:block id="{@id}" role="Sect">
10461
+ <xsl:call-template name="addTagElementT"/>
10462
+
10446
10463
  <xsl:apply-templates/>
10447
10464
  </fo:block>
10448
10465
  </xsl:template>
@@ -10551,6 +10568,7 @@
10551
10568
  <xsl:template match="mn:termexample/mn:p">
10552
10569
  <xsl:variable name="element">inline
10553
10570
 
10571
+ <xsl:value-of select="$example_display_in"/>
10554
10572
  </xsl:variable>
10555
10573
  <xsl:choose>
10556
10574
  <xsl:when test="contains($element, 'block')">
@@ -11059,6 +11077,9 @@
11059
11077
  </xsl:attribute-set><!-- table-note-style -->
11060
11078
 
11061
11079
  <xsl:template name="refine_table-note-style">
11080
+ <xsl:if test="self::mn:note">
11081
+ <xsl:attribute name="role">Note</xsl:attribute>
11082
+ </xsl:if>
11062
11083
  </xsl:template> <!-- refine_table-note-style -->
11063
11084
 
11064
11085
  <xsl:attribute-set name="table-fn-style">
@@ -12449,7 +12470,7 @@
12449
12470
  </xsl:template> <!-- table/note -->
12450
12471
 
12451
12472
  <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">
12452
- <xsl:apply-templates/>
12473
+ <fo:inline role="P"><xsl:apply-templates/></fo:inline>
12453
12474
  </xsl:template>
12454
12475
 
12455
12476
  <!-- ============================ -->
@@ -13378,6 +13399,7 @@
13378
13399
  <!-- ========================== -->
13379
13400
 
13380
13401
  <xsl:attribute-set name="dl-block-style">
13402
+ <xsl:attribute name="role">SKIP</xsl:attribute>
13381
13403
  </xsl:attribute-set>
13382
13404
 
13383
13405
  <xsl:template name="refine_dl-block-style">
@@ -13387,18 +13409,21 @@
13387
13409
  </xsl:template>
13388
13410
 
13389
13411
  <xsl:attribute-set name="dt-row-style">
13412
+ <xsl:attribute name="role">LI</xsl:attribute>
13390
13413
  </xsl:attribute-set>
13391
13414
 
13392
13415
  <xsl:template name="refine_dt-row-style">
13393
13416
  </xsl:template>
13394
13417
 
13395
13418
  <xsl:attribute-set name="dt-cell-style">
13419
+ <xsl:attribute name="role">Lbl</xsl:attribute>
13396
13420
  </xsl:attribute-set>
13397
13421
 
13398
13422
  <xsl:template name="refine_dt-cell-style">
13399
13423
  </xsl:template> <!-- refine_dt-cell-style -->
13400
13424
 
13401
13425
  <xsl:attribute-set name="dt-block-style">
13426
+ <xsl:attribute name="role">SKIP</xsl:attribute>
13402
13427
  <xsl:attribute name="margin-top">0pt</xsl:attribute>
13403
13428
  <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
13404
13429
  </xsl:attribute-set>
@@ -13422,6 +13447,7 @@
13422
13447
  </xsl:template>
13423
13448
 
13424
13449
  <xsl:attribute-set name="dd-cell-style">
13450
+ <xsl:attribute name="role">LBody</xsl:attribute>
13425
13451
  <xsl:attribute name="padding-left">2mm</xsl:attribute>
13426
13452
  </xsl:attribute-set>
13427
13453
 
@@ -13457,7 +13483,7 @@
13457
13483
  <xsl:variable name="isAdded" select="@added"/>
13458
13484
  <xsl:variable name="isDeleted" select="@deleted"/>
13459
13485
  <!-- <dl><xsl:copy-of select="."/></dl> -->
13460
- <fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
13486
+ <fo:block-container xsl:use-attribute-sets="dl-block-style">
13461
13487
 
13462
13488
  <xsl:call-template name="refine_dl-block-style"/>
13463
13489
 
@@ -13579,7 +13605,7 @@
13579
13605
  <fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
13580
13606
  </xsl:if>
13581
13607
 
13582
- <fo:table width="95%" table-layout="fixed">
13608
+ <fo:table width="95%" table-layout="fixed" role="L">
13583
13609
 
13584
13610
  <xsl:if test="$isGenerateTableIF = 'true'">
13585
13611
  <xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
@@ -13648,7 +13674,7 @@
13648
13674
  <xsl:with-param name="table_or_dl">dl</xsl:with-param>
13649
13675
  </xsl:apply-templates>
13650
13676
 
13651
- </xsl:when>
13677
+ </xsl:when> <!-- $isGenerateTableIF = 'true' -->
13652
13678
  <xsl:otherwise>
13653
13679
 
13654
13680
  <xsl:variable name="simple-table">
@@ -13705,7 +13731,7 @@
13705
13731
  <xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
13706
13732
  </xsl:call-template>
13707
13733
 
13708
- <fo:table-body>
13734
+ <fo:table-body role="SKIP">
13709
13735
 
13710
13736
  <!-- DEBUG -->
13711
13737
  <xsl:if test="$table_if_debug = 'true'">
@@ -13919,8 +13945,8 @@
13919
13945
  <td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
13920
13946
  </tr>
13921
13947
  -->
13922
- <fo:table-row>
13923
- <fo:table-cell number-columns-spanned="2">
13948
+ <fo:table-row role="SKIP">
13949
+ <fo:table-cell number-columns-spanned="2" role="SKIP">
13924
13950
  <fo:block role="SKIP">
13925
13951
  <xsl:call-template name="note"/>
13926
13952
  </fo:block>
@@ -13984,7 +14010,7 @@
13984
14010
  <xsl:call-template name="refine_dt-cell-style"/>
13985
14011
 
13986
14012
  <xsl:call-template name="setNamedDestination"/>
13987
- <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
14013
+ <fo:block xsl:use-attribute-sets="dt-block-style">
13988
14014
 
13989
14015
  <xsl:choose>
13990
14016
  <xsl:when test="$isGenerateTableIF = 'true'">
@@ -14073,7 +14099,7 @@
14073
14099
  </xsl:variable>
14074
14100
  <xsl:choose>
14075
14101
  <xsl:when test="$is_inline_element_after_where = 'true'">
14076
- <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
14102
+ <fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
14077
14103
  </xsl:when>
14078
14104
  <xsl:otherwise>
14079
14105
  <xsl:apply-templates select="."/>
@@ -14345,6 +14371,7 @@
14345
14371
  <!-- ====== -->
14346
14372
 
14347
14373
  <xsl:attribute-set name="note-style">
14374
+ <xsl:attribute name="role">Note</xsl:attribute>
14348
14375
  <xsl:attribute name="font-size">10pt</xsl:attribute>
14349
14376
  <xsl:attribute name="margin-top">8pt</xsl:attribute>
14350
14377
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
@@ -14395,6 +14422,7 @@
14395
14422
  <xsl:variable name="note-body-indent-table">5mm</xsl:variable>
14396
14423
 
14397
14424
  <xsl:attribute-set name="note-name-style">
14425
+ <xsl:attribute name="role">Lbl</xsl:attribute>
14398
14426
  <xsl:attribute name="padding-right">6mm</xsl:attribute>
14399
14427
  </xsl:attribute-set> <!-- note-name-style -->
14400
14428
 
@@ -14430,9 +14458,13 @@
14430
14458
  </xsl:attribute-set>
14431
14459
 
14432
14460
  <xsl:template name="refine_table-note-name-style">
14461
+ <xsl:if test="self::mn:note">
14462
+ <xsl:attribute name="role">Lbl</xsl:attribute>
14463
+ </xsl:if>
14433
14464
  </xsl:template> <!-- refine_table-note-name-style -->
14434
14465
 
14435
14466
  <xsl:attribute-set name="note-p-style">
14467
+ <xsl:attribute name="role">P</xsl:attribute>
14436
14468
  <xsl:attribute name="margin-top">8pt</xsl:attribute>
14437
14469
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
14438
14470
  </xsl:attribute-set> <!-- note-p-style -->
@@ -14444,6 +14476,7 @@
14444
14476
  </xsl:template>
14445
14477
 
14446
14478
  <xsl:attribute-set name="termnote-style">
14479
+ <xsl:attribute name="role">Note</xsl:attribute>
14447
14480
  <xsl:attribute name="font-size">10pt</xsl:attribute>
14448
14481
  <xsl:attribute name="margin-top">8pt</xsl:attribute>
14449
14482
  <xsl:attribute name="margin-bottom">8pt</xsl:attribute>
@@ -14466,12 +14499,14 @@
14466
14499
  </xsl:template> <!-- refine_termnote-style -->
14467
14500
 
14468
14501
  <xsl:attribute-set name="termnote-name-style">
14502
+ <xsl:attribute name="role">Lbl</xsl:attribute>
14469
14503
  </xsl:attribute-set> <!-- termnote-name-style -->
14470
14504
 
14471
14505
  <xsl:template name="refine_termnote-name-style">
14472
14506
  </xsl:template>
14473
14507
 
14474
14508
  <xsl:attribute-set name="termnote-p-style">
14509
+ <xsl:attribute name="role">P</xsl:attribute>
14475
14510
  </xsl:attribute-set>
14476
14511
 
14477
14512
  <xsl:template name="refine_termnote-p-style">
@@ -14486,7 +14521,7 @@
14486
14521
 
14487
14522
  <xsl:call-template name="setNamedDestination"/>
14488
14523
 
14489
- <fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
14524
+ <fo:block-container xsl:use-attribute-sets="note-style">
14490
14525
  <xsl:if test="not(parent::mn:references)">
14491
14526
  <xsl:copy-of select="@id"/>
14492
14527
  </xsl:if>
@@ -14496,11 +14531,11 @@
14496
14531
  <xsl:call-template name="refine_note-style"/>
14497
14532
 
14498
14533
  <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
14499
- <fo:block>
14534
+ <fo:block role="SKIP">
14500
14535
 
14501
14536
  <xsl:call-template name="refine_note_block_style"/>
14502
14537
 
14503
- <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
14538
+ <fo:inline xsl:use-attribute-sets="note-name-style">
14504
14539
 
14505
14540
  <xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
14506
14541
 
@@ -14523,7 +14558,15 @@
14523
14558
 
14524
14559
  </fo:inline>
14525
14560
 
14526
- <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
14561
+ <xsl:choose>
14562
+ <xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
14563
+ <fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
14564
+ </xsl:when>
14565
+ <xsl:otherwise>
14566
+ <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
14567
+ </xsl:otherwise>
14568
+ </xsl:choose>
14569
+
14527
14570
  </fo:block>
14528
14571
  </fo:block-container>
14529
14572
  </fo:block-container>
@@ -14536,7 +14579,7 @@
14536
14579
  <xsl:if test="$layoutVersion = '1951' or $layoutVersion = '1987'">
14537
14580
  <xsl:if test="following-sibling::*[1][self::mn:note] and not(preceding-sibling::*[1][self::mn:note])">
14538
14581
  <!-- NOTES -->
14539
- <fo:block font-size="9.5pt" keep-with-next="always" margin-bottom="6pt" text-transform="uppercase">
14582
+ <fo:block font-size="9.5pt" keep-with-next="always" margin-bottom="6pt" text-transform="uppercase" role="Lbl">
14540
14583
  <xsl:variable name="i18n_notes">
14541
14584
  <xsl:call-template name="getLocalizedString">
14542
14585
  <xsl:with-param name="key">Note.pl</xsl:with-param>
@@ -14561,13 +14604,13 @@
14561
14604
  <xsl:variable name="num"><xsl:number/></xsl:variable>
14562
14605
  <xsl:choose>
14563
14606
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
14564
- <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
14607
+ <fo:inline xsl:use-attribute-sets="note-p-style">
14565
14608
  <xsl:call-template name="refine_note-p-style"/>
14566
14609
  <xsl:apply-templates/>
14567
14610
  </fo:inline>
14568
14611
  </xsl:when>
14569
14612
  <xsl:otherwise>
14570
- <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
14613
+ <fo:block xsl:use-attribute-sets="note-p-style">
14571
14614
  <xsl:call-template name="refine_note-p-style"/>
14572
14615
  <xsl:apply-templates/>
14573
14616
  </fo:block>
@@ -15241,7 +15284,8 @@
15241
15284
 
15242
15285
  <!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
15243
15286
 
15244
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
15287
+ <fo:external-graphic src="{$src}" vertical-align="middle">
15288
+ <xsl:call-template name="addAltText"/>
15245
15289
 
15246
15290
  <xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
15247
15291
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -15305,11 +15349,12 @@
15305
15349
  <xsl:choose>
15306
15350
  <xsl:when test="$isDeleted = 'true'">
15307
15351
  <!-- enclose in svg -->
15308
- <fo:instream-foreign-object fox:alt-text="Image {@alt}">
15352
+ <fo:instream-foreign-object>
15309
15353
  <xsl:attribute name="width">100%</xsl:attribute>
15310
15354
  <xsl:attribute name="content-height">100%</xsl:attribute>
15311
15355
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
15312
15356
  <xsl:attribute name="scaling">uniform</xsl:attribute>
15357
+ <xsl:call-template name="addAltText"/>
15313
15358
 
15314
15359
  <xsl:apply-templates select="." mode="cross_image"/>
15315
15360
 
@@ -15325,7 +15370,8 @@
15325
15370
  <xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
15326
15371
  </fo:block> -->
15327
15372
 
15328
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}">
15373
+ <fo:external-graphic src="{$src}">
15374
+ <xsl:call-template name="addAltText"/>
15329
15375
 
15330
15376
  <xsl:choose>
15331
15377
  <!-- default -->
@@ -15385,6 +15431,25 @@
15385
15431
  </xsl:choose>
15386
15432
  </xsl:template>
15387
15433
 
15434
+ <xsl:template name="addAltText">
15435
+ <xsl:param name="name">Image</xsl:param>
15436
+ <xsl:variable name="alt-text">
15437
+ <xsl:choose>
15438
+ <xsl:when test="self::mn:image and normalize-space(@alt) != ''">
15439
+ <xsl:value-of select="@alt"/>
15440
+ </xsl:when>
15441
+ <xsl:when test="normalize-space(../@alt) != ''">
15442
+ <xsl:value-of select="../@alt"/>
15443
+ </xsl:when>
15444
+ <xsl:when test="normalize-space(../mn:fmt-name) != ''">
15445
+ <xsl:value-of select="../mn:fmt-name"/>
15446
+ </xsl:when>
15447
+ <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
15448
+ </xsl:choose>
15449
+ </xsl:variable>
15450
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
15451
+ </xsl:template>
15452
+
15388
15453
  <xsl:template name="setImageWidth">
15389
15454
  <xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
15390
15455
  <xsl:value-of select="@width"/>
@@ -15573,6 +15638,9 @@
15573
15638
 
15574
15639
  <xsl:variable name="alt-text">
15575
15640
  <xsl:choose>
15641
+ <xsl:when test="normalize-space(../@alt) != ''">
15642
+ <xsl:value-of select="../@alt"/>
15643
+ </xsl:when>
15576
15644
  <xsl:when test="normalize-space(../mn:fmt-name) != ''">
15577
15645
  <xsl:value-of select="../mn:fmt-name"/>
15578
15646
  </xsl:when>
@@ -17288,6 +17356,7 @@
17288
17356
 
17289
17357
  <!-- admonition -->
17290
17358
  <xsl:attribute-set name="admonition-style">
17359
+ <xsl:attribute name="role">Note</xsl:attribute>
17291
17360
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
17292
17361
  <xsl:attribute name="font-weight">bold</xsl:attribute>
17293
17362
  </xsl:attribute-set> <!-- admonition-style -->
@@ -17296,6 +17365,7 @@
17296
17365
  </xsl:template>
17297
17366
 
17298
17367
  <xsl:attribute-set name="admonition-container-style">
17368
+ <xsl:attribute name="role">SKIP</xsl:attribute>
17299
17369
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
17300
17370
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
17301
17371
  </xsl:attribute-set> <!-- admonition-container-style -->
@@ -17304,6 +17374,7 @@
17304
17374
  </xsl:template>
17305
17375
 
17306
17376
  <xsl:attribute-set name="admonition-name-style">
17377
+ <xsl:attribute name="role">Lbl</xsl:attribute>
17307
17378
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
17308
17379
  </xsl:attribute-set> <!-- admonition-name-style -->
17309
17380
 
@@ -18187,9 +18258,9 @@
18187
18258
  <xsl:template name="fo_inline_bookmark">
18188
18259
  <xsl:param name="bookmark_id"/>
18189
18260
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
18190
- <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>
18261
+ <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>
18191
18262
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
18192
- <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
18263
+ <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>
18193
18264
  </xsl:template>
18194
18265
  <!-- =================== -->
18195
18266
  <!-- End of Index processing -->
@@ -18357,6 +18428,13 @@
18357
18428
  <!-- End Form's elements processing -->
18358
18429
  <!-- =================== -->
18359
18430
 
18431
+ <xsl:attribute-set name="toc-container-style">
18432
+ <xsl:attribute name="role">Sect</xsl:attribute>
18433
+ </xsl:attribute-set>
18434
+
18435
+ <xsl:template name="refine_toc-container-style">
18436
+ </xsl:template>
18437
+
18360
18438
  <xsl:attribute-set name="toc-style">
18361
18439
  <xsl:attribute name="font-weight">bold</xsl:attribute>
18362
18440
  </xsl:attribute-set>
@@ -19793,6 +19871,13 @@
19793
19871
  <!-- ===================================== -->
19794
19872
  <!-- ===================================== -->
19795
19873
 
19874
+ <xsl:attribute-set name="annex-style">
19875
+ <xsl:attribute name="role">Sect</xsl:attribute>
19876
+ </xsl:attribute-set>
19877
+
19878
+ <xsl:template name="refine_annex-style">
19879
+ </xsl:template>
19880
+
19796
19881
  <xsl:attribute-set name="annex-title-style">
19797
19882
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
19798
19883
  <xsl:attribute name="font-size">16pt</xsl:attribute>
@@ -19817,6 +19902,40 @@
19817
19902
  </xsl:if>
19818
19903
  </xsl:template>
19819
19904
 
19905
+ <xsl:template match="mn:annex[normalize-space() != '']">
19906
+ <xsl:choose>
19907
+ <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
19908
+ <fo:block role="SKIP">
19909
+ <xsl:apply-templates/>
19910
+ </fo:block>
19911
+ </xsl:when>
19912
+ <xsl:otherwise>
19913
+
19914
+ <fo:block break-after="page"/>
19915
+ <xsl:call-template name="setNamedDestination"/>
19916
+
19917
+ <fo:block xsl:use-attribute-sets="annex-style">
19918
+
19919
+ <xsl:call-template name="setId"/>
19920
+
19921
+ <!-- <xsl:if test="$namespace = 'iso'"> -->
19922
+ <xsl:call-template name="addTagElementT"/>
19923
+ <!-- </xsl:if> -->
19924
+
19925
+ <xsl:call-template name="setBlockSpanAll"/>
19926
+
19927
+ <xsl:call-template name="refine_annex-style"/>
19928
+
19929
+ <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
19930
+
19931
+ <fo:block role="SKIP">
19932
+ <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
19933
+ </fo:block>
19934
+ </fo:block>
19935
+ </xsl:otherwise>
19936
+ </xsl:choose>
19937
+ </xsl:template>
19938
+
19820
19939
  <xsl:attribute-set name="p-zzSTDTitle1-style">
19821
19940
  </xsl:attribute-set>
19822
19941
 
@@ -20497,22 +20616,14 @@
20497
20616
  </xsl:attribute-set>
20498
20617
 
20499
20618
  <xsl:attribute-set name="clause-style">
20500
-
20619
+ <xsl:attribute name="role">Sect</xsl:attribute>
20501
20620
  </xsl:attribute-set>
20502
20621
 
20503
20622
  <xsl:template name="refine_clause-style">
20504
- <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
20505
- <!-- <xsl:if test="$namespace = 'rsd'">
20506
- <xsl:variable name="level">
20507
- <xsl:call-template name="getLevel">
20508
- <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
20509
- </xsl:call-template>
20510
- </xsl:variable>
20511
- <xsl:if test="$level &gt;= 4">
20512
- <xsl:attribute name="margin-left">13mm</xsl:attribute>
20513
- </xsl:if>
20514
- </xsl:if> -->
20515
- </xsl:template>
20623
+ <xsl:if test="parent::mn:copyright-statement">
20624
+ <xsl:attribute name="role">SKIP</xsl:attribute>
20625
+ </xsl:if>
20626
+ </xsl:template> <!-- refine_clause-style -->
20516
20627
 
20517
20628
  <!-- main sections -->
20518
20629
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
@@ -20522,6 +20633,10 @@
20522
20633
 
20523
20634
  <xsl:call-template name="sections_element_style"/>
20524
20635
 
20636
+ <!-- <xsl:if test="$namespace = 'rsd'"> -->
20637
+ <xsl:call-template name="addTagElementT"/>
20638
+ <!-- </xsl:if> -->
20639
+
20525
20640
  <xsl:call-template name="addReviewHelper"/>
20526
20641
 
20527
20642
  <xsl:apply-templates/>
@@ -20604,16 +20719,15 @@
20604
20719
 
20605
20720
  <xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
20606
20721
  <xsl:call-template name="setNamedDestination"/>
20607
- <fo:block>
20608
- <xsl:if test="parent::mn:copyright-statement">
20609
- <xsl:attribute name="role">SKIP</xsl:attribute>
20610
- </xsl:if>
20722
+ <fo:block role="Sect">
20611
20723
 
20612
20724
  <xsl:call-template name="setId"/>
20613
20725
 
20726
+ <xsl:call-template name="addTagElementT"/>
20727
+
20614
20728
  <xsl:call-template name="setBlockSpanAll"/>
20615
20729
 
20616
- <xsl:call-template name="refine_clause_style"/>
20730
+ <xsl:call-template name="refine_clause-style"/>
20617
20731
 
20618
20732
  <xsl:call-template name="addReviewHelper"/>
20619
20733
 
@@ -20621,43 +20735,6 @@
20621
20735
  </fo:block>
20622
20736
  </xsl:template>
20623
20737
 
20624
- <xsl:template name="refine_clause_style">
20625
- </xsl:template> <!-- refine_clause_style -->
20626
-
20627
- <xsl:template match="mn:annex[normalize-space() != '']">
20628
- <xsl:choose>
20629
- <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
20630
- <fo:block>
20631
- <xsl:apply-templates/>
20632
- </fo:block>
20633
- </xsl:when>
20634
- <xsl:otherwise>
20635
-
20636
- <fo:block break-after="page"/>
20637
- <xsl:call-template name="setNamedDestination"/>
20638
-
20639
- <fo:block id="{@id}">
20640
- <xsl:attribute name="role">Sect</xsl:attribute>
20641
- <xsl:call-template name="addTagElementT"/>
20642
-
20643
- <xsl:call-template name="setBlockSpanAll"/>
20644
-
20645
- <xsl:call-template name="refine_annex_style"/>
20646
-
20647
- </fo:block>
20648
-
20649
- <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
20650
-
20651
- <fo:block>
20652
- <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
20653
- </fo:block>
20654
- </xsl:otherwise>
20655
- </xsl:choose>
20656
- </xsl:template>
20657
-
20658
- <xsl:template name="refine_annex_style">
20659
- </xsl:template>
20660
-
20661
20738
  <xsl:template match="mn:name/text() | mn:fmt-name/text()">
20662
20739
  <!-- 0xA0 to space replacement -->
20663
20740
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
@@ -20773,6 +20850,13 @@
20773
20850
  <xsl:template name="addTagElementT">
20774
20851
  <xsl:variable name="title_">
20775
20852
  <xsl:apply-templates select="mn:fmt-title"/>
20853
+ <xsl:if test="not(mn:fmt-title) and self::mn:term">
20854
+ <name>
20855
+ <xsl:apply-templates select="mn:fmt-name"/>
20856
+ <xsl:text> </xsl:text>
20857
+ <xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
20858
+ </name>
20859
+ </xsl:if>
20776
20860
  </xsl:variable>
20777
20861
  <xsl:variable name="title__">
20778
20862
  <xsl:for-each select="xalan:nodeset($title_)/*/node()">
@@ -20782,7 +20866,7 @@
20782
20866
  </xsl:choose>
20783
20867
  </xsl:for-each>
20784
20868
  </xsl:variable>
20785
- <xsl:variable name="title" select="normalize-space($title__)"/>
20869
+ <xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' &#8232;'), ' '))"/>
20786
20870
  <xsl:if test="$title != ''">
20787
20871
  <xsl:attribute name="fox:title">
20788
20872
  <xsl:if test="ancestor::mn:sections">