metanorma-bipm 2.8.11 → 2.8.12

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: c8cace5f622ac07370af170dffc8f8805ba518f96656928c189f1f664e0696df
4
- data.tar.gz: 8ec8533476e550db921c7980b6824e261ede18831b929b81d9a5572837958ef7
3
+ metadata.gz: ac11763bf2b9640057d0fa72fdf2be51fe8da9e19b280d651977602fda86850b
4
+ data.tar.gz: 7eecd3131b02dae5c762c25d186ef320be0d29e769400c7ca589614453fdf01b
5
5
  SHA512:
6
- metadata.gz: e1f225138b83840c80db446bb0508e6e0363e8b4f2278ffc541b2d06c83026e28e5fe2f92dff5729bf72c7e439e488b4fa36f0f45ad7d49c097aea0c39a07844
7
- data.tar.gz: 5da4df7467f48769b214f7284e36c1fb3322cfa93577bbfde6e0e94d52fffc58bb196dc37744264d5284985f0427157a828225809aa287ad13d927aee53e914b
6
+ metadata.gz: b8c387f804bfa77e21221ed581ea607fd58d654401a702f72d9fccbd63e8114964ac5471406ac2e57c9c7fe9733c0a6956d42ded29e7bf6da79b6b9f6361aa27
7
+ data.tar.gz: 88675ffeb679f623b4afeb2a068fee507fabb4618fe3da5ed8f139a2f35e70678c9af837de9bffff1d428c9e908f700542f90a786048c49a0a4d2393c11f99ff
@@ -4015,6 +4015,7 @@
4015
4015
 
4016
4016
  <!-- Characters -->
4017
4017
  <xsl:variable name="linebreak">&#8232;</xsl:variable>
4018
+ <xsl:variable name="em_space"> </xsl:variable>
4018
4019
  <xsl:variable name="tab_zh"> </xsl:variable>
4019
4020
  <xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
4020
4021
  <xsl:variable name="thin_space"> </xsl:variable>
@@ -7370,7 +7371,15 @@
7370
7371
  <!-- END requirement, recommendation, permission table -->
7371
7372
  <!-- ========== -->
7372
7373
 
7374
+ <xsl:attribute-set name="terms-style">
7375
+ <xsl:attribute name="role">Sect</xsl:attribute>
7376
+ </xsl:attribute-set>
7377
+
7378
+ <xsl:template name="refine_terms-style">
7379
+ </xsl:template>
7380
+
7373
7381
  <xsl:attribute-set name="term-style">
7382
+ <xsl:attribute name="role">Sect</xsl:attribute>
7374
7383
  </xsl:attribute-set> <!-- term-style -->
7375
7384
 
7376
7385
  <xsl:template name="refine_term-style">
@@ -7464,7 +7473,10 @@
7464
7473
  <xsl:template match="mn:terms">
7465
7474
  <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
7466
7475
  <xsl:call-template name="setNamedDestination"/>
7467
- <fo:block id="{@id}">
7476
+ <fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
7477
+ <xsl:call-template name="refine_terms-style"/>
7478
+ <xsl:call-template name="addTagElementT"/>
7479
+
7468
7480
  <xsl:apply-templates/>
7469
7481
  </fo:block>
7470
7482
  </xsl:template>
@@ -7473,6 +7485,7 @@
7473
7485
  <xsl:call-template name="setNamedDestination"/>
7474
7486
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
7475
7487
  <xsl:call-template name="refine_term-style"/>
7488
+ <xsl:call-template name="addTagElementT"/>
7476
7489
 
7477
7490
  <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
7478
7491
  </fo:block>
@@ -7703,7 +7716,9 @@
7703
7716
 
7704
7717
  <xsl:template match="mn:definitions">
7705
7718
  <xsl:call-template name="setNamedDestination"/>
7706
- <fo:block id="{@id}">
7719
+ <fo:block id="{@id}" role="Sect">
7720
+ <xsl:call-template name="addTagElementT"/>
7721
+
7707
7722
  <xsl:apply-templates/>
7708
7723
  </fo:block>
7709
7724
  </xsl:template>
@@ -7775,6 +7790,7 @@
7775
7790
  <xsl:template match="mn:termexample/mn:p">
7776
7791
  <xsl:variable name="element">inline
7777
7792
 
7793
+ <xsl:value-of select="$example_display_in"/>
7778
7794
  </xsl:variable>
7779
7795
  <xsl:choose>
7780
7796
  <xsl:when test="contains($element, 'block')">
@@ -8191,6 +8207,9 @@
8191
8207
  </xsl:attribute-set><!-- table-note-style -->
8192
8208
 
8193
8209
  <xsl:template name="refine_table-note-style">
8210
+ <xsl:if test="self::mn:note">
8211
+ <xsl:attribute name="role">Note</xsl:attribute>
8212
+ </xsl:if>
8194
8213
  <xsl:if test="ancestor::mn:preface">
8195
8214
  <xsl:attribute name="margin-top">18pt</xsl:attribute>
8196
8215
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
@@ -9509,7 +9528,7 @@
9509
9528
 
9510
9529
  </fo:inline>
9511
9530
  <xsl:if test="ancestor::mn:preface">
9512
- <fo:block> </fo:block>
9531
+ <fo:block role="SKIP"> </fo:block>
9513
9532
  </xsl:if>
9514
9533
 
9515
9534
  <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
@@ -9517,7 +9536,7 @@
9517
9536
  </xsl:template> <!-- table/note -->
9518
9537
 
9519
9538
  <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">
9520
- <xsl:apply-templates/>
9539
+ <fo:inline role="P"><xsl:apply-templates/></fo:inline>
9521
9540
  </xsl:template>
9522
9541
 
9523
9542
  <!-- ============================ -->
@@ -10450,6 +10469,7 @@
10450
10469
  <!-- ========================== -->
10451
10470
 
10452
10471
  <xsl:attribute-set name="dl-block-style">
10472
+ <xsl:attribute name="role">SKIP</xsl:attribute>
10453
10473
  </xsl:attribute-set>
10454
10474
 
10455
10475
  <xsl:template name="refine_dl-block-style">
@@ -10459,18 +10479,21 @@
10459
10479
  </xsl:template>
10460
10480
 
10461
10481
  <xsl:attribute-set name="dt-row-style">
10482
+ <xsl:attribute name="role">LI</xsl:attribute>
10462
10483
  </xsl:attribute-set>
10463
10484
 
10464
10485
  <xsl:template name="refine_dt-row-style">
10465
10486
  </xsl:template>
10466
10487
 
10467
10488
  <xsl:attribute-set name="dt-cell-style">
10489
+ <xsl:attribute name="role">Lbl</xsl:attribute>
10468
10490
  </xsl:attribute-set>
10469
10491
 
10470
10492
  <xsl:template name="refine_dt-cell-style">
10471
10493
  </xsl:template> <!-- refine_dt-cell-style -->
10472
10494
 
10473
10495
  <xsl:attribute-set name="dt-block-style">
10496
+ <xsl:attribute name="role">SKIP</xsl:attribute>
10474
10497
  <xsl:attribute name="margin-top">0pt</xsl:attribute>
10475
10498
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
10476
10499
  </xsl:attribute-set>
@@ -10488,6 +10511,7 @@
10488
10511
  </xsl:template>
10489
10512
 
10490
10513
  <xsl:attribute-set name="dd-cell-style">
10514
+ <xsl:attribute name="role">LBody</xsl:attribute>
10491
10515
  <xsl:attribute name="padding-left">2mm</xsl:attribute>
10492
10516
  </xsl:attribute-set>
10493
10517
 
@@ -10523,7 +10547,7 @@
10523
10547
  <xsl:variable name="isAdded" select="@added"/>
10524
10548
  <xsl:variable name="isDeleted" select="@deleted"/>
10525
10549
  <!-- <dl><xsl:copy-of select="."/></dl> -->
10526
- <fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
10550
+ <fo:block-container xsl:use-attribute-sets="dl-block-style">
10527
10551
 
10528
10552
  <xsl:call-template name="refine_dl-block-style"/>
10529
10553
 
@@ -10645,7 +10669,7 @@
10645
10669
  <fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
10646
10670
  </xsl:if>
10647
10671
 
10648
- <fo:table width="95%" table-layout="fixed">
10672
+ <fo:table width="95%" table-layout="fixed" role="L">
10649
10673
 
10650
10674
  <xsl:if test="$isGenerateTableIF = 'true'">
10651
10675
  <xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
@@ -10713,7 +10737,7 @@
10713
10737
  <xsl:with-param name="table_or_dl">dl</xsl:with-param>
10714
10738
  </xsl:apply-templates>
10715
10739
 
10716
- </xsl:when>
10740
+ </xsl:when> <!-- $isGenerateTableIF = 'true' -->
10717
10741
  <xsl:otherwise>
10718
10742
 
10719
10743
  <xsl:variable name="simple-table">
@@ -10768,7 +10792,7 @@
10768
10792
  <xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
10769
10793
  </xsl:call-template>
10770
10794
 
10771
- <fo:table-body>
10795
+ <fo:table-body role="SKIP">
10772
10796
 
10773
10797
  <!-- DEBUG -->
10774
10798
  <xsl:if test="$table_if_debug = 'true'">
@@ -10977,8 +11001,8 @@
10977
11001
  <td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
10978
11002
  </tr>
10979
11003
  -->
10980
- <fo:table-row>
10981
- <fo:table-cell number-columns-spanned="2">
11004
+ <fo:table-row role="SKIP">
11005
+ <fo:table-cell number-columns-spanned="2" role="SKIP">
10982
11006
  <fo:block role="SKIP">
10983
11007
  <xsl:call-template name="note"/>
10984
11008
  </fo:block>
@@ -11042,7 +11066,7 @@
11042
11066
  <xsl:call-template name="refine_dt-cell-style"/>
11043
11067
 
11044
11068
  <xsl:call-template name="setNamedDestination"/>
11045
- <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
11069
+ <fo:block xsl:use-attribute-sets="dt-block-style">
11046
11070
 
11047
11071
  <xsl:choose>
11048
11072
  <xsl:when test="$isGenerateTableIF = 'true'">
@@ -11131,7 +11155,7 @@
11131
11155
  </xsl:variable>
11132
11156
  <xsl:choose>
11133
11157
  <xsl:when test="$is_inline_element_after_where = 'true'">
11134
- <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
11158
+ <fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
11135
11159
  </xsl:when>
11136
11160
  <xsl:otherwise>
11137
11161
  <xsl:apply-templates select="."/>
@@ -11400,6 +11424,7 @@
11400
11424
  <!-- ====== -->
11401
11425
 
11402
11426
  <xsl:attribute-set name="note-style">
11427
+ <xsl:attribute name="role">Note</xsl:attribute>
11403
11428
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
11404
11429
  <xsl:attribute name="text-align">justify</xsl:attribute>
11405
11430
  </xsl:attribute-set> <!-- note-style -->
@@ -11415,6 +11440,7 @@
11415
11440
  <xsl:variable name="note-body-indent-table">5mm</xsl:variable>
11416
11441
 
11417
11442
  <xsl:attribute-set name="note-name-style">
11443
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11418
11444
  </xsl:attribute-set> <!-- note-name-style -->
11419
11445
 
11420
11446
  <xsl:template name="refine_note-name-style">
@@ -11426,12 +11452,16 @@
11426
11452
  </xsl:attribute-set>
11427
11453
 
11428
11454
  <xsl:template name="refine_table-note-name-style">
11455
+ <xsl:if test="self::mn:note">
11456
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11457
+ </xsl:if>
11429
11458
  <xsl:if test="ancestor::mn:preface">
11430
11459
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
11431
11460
  </xsl:if>
11432
11461
  </xsl:template> <!-- refine_table-note-name-style -->
11433
11462
 
11434
11463
  <xsl:attribute-set name="note-p-style">
11464
+ <xsl:attribute name="role">P</xsl:attribute>
11435
11465
  <xsl:attribute name="text-align">justify</xsl:attribute>
11436
11466
  </xsl:attribute-set> <!-- note-p-style -->
11437
11467
 
@@ -11439,6 +11469,7 @@
11439
11469
  </xsl:template>
11440
11470
 
11441
11471
  <xsl:attribute-set name="termnote-style">
11472
+ <xsl:attribute name="role">Note</xsl:attribute>
11442
11473
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
11443
11474
  <xsl:attribute name="text-align">justify</xsl:attribute>
11444
11475
  </xsl:attribute-set> <!-- termnote-style -->
@@ -11447,6 +11478,7 @@
11447
11478
  </xsl:template> <!-- refine_termnote-style -->
11448
11479
 
11449
11480
  <xsl:attribute-set name="termnote-name-style">
11481
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11450
11482
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
11451
11483
  </xsl:attribute-set> <!-- termnote-name-style -->
11452
11484
 
@@ -11454,6 +11486,7 @@
11454
11486
  </xsl:template>
11455
11487
 
11456
11488
  <xsl:attribute-set name="termnote-p-style">
11489
+ <xsl:attribute name="role">P</xsl:attribute>
11457
11490
  <xsl:attribute name="text-align">justify</xsl:attribute>
11458
11491
  </xsl:attribute-set>
11459
11492
 
@@ -11469,7 +11502,7 @@
11469
11502
 
11470
11503
  <xsl:call-template name="setNamedDestination"/>
11471
11504
 
11472
- <fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
11505
+ <fo:block-container xsl:use-attribute-sets="note-style">
11473
11506
  <xsl:if test="not(parent::mn:references)">
11474
11507
  <xsl:copy-of select="@id"/>
11475
11508
  </xsl:if>
@@ -11479,11 +11512,11 @@
11479
11512
  <xsl:call-template name="refine_note-style"/>
11480
11513
 
11481
11514
  <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
11482
- <fo:block>
11515
+ <fo:block role="SKIP">
11483
11516
 
11484
11517
  <xsl:call-template name="refine_note_block_style"/>
11485
11518
 
11486
- <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
11519
+ <fo:inline xsl:use-attribute-sets="note-name-style">
11487
11520
 
11488
11521
  <xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
11489
11522
 
@@ -11506,7 +11539,15 @@
11506
11539
 
11507
11540
  </fo:inline>
11508
11541
 
11509
- <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
11542
+ <xsl:choose>
11543
+ <xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
11544
+ <fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
11545
+ </xsl:when>
11546
+ <xsl:otherwise>
11547
+ <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
11548
+ </xsl:otherwise>
11549
+ </xsl:choose>
11550
+
11510
11551
  </fo:block>
11511
11552
  </fo:block-container>
11512
11553
  </fo:block-container>
@@ -11525,13 +11566,13 @@
11525
11566
  <xsl:variable name="num"><xsl:number/></xsl:variable>
11526
11567
  <xsl:choose>
11527
11568
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
11528
- <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
11569
+ <fo:inline xsl:use-attribute-sets="note-p-style">
11529
11570
  <xsl:call-template name="refine_note-p-style"/>
11530
11571
  <xsl:apply-templates/>
11531
11572
  </fo:inline>
11532
11573
  </xsl:when>
11533
11574
  <xsl:otherwise>
11534
- <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
11575
+ <fo:block xsl:use-attribute-sets="note-p-style">
11535
11576
  <xsl:call-template name="refine_note-p-style"/>
11536
11577
  <xsl:apply-templates/>
11537
11578
  </fo:block>
@@ -12190,7 +12231,8 @@
12190
12231
 
12191
12232
  <!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
12192
12233
 
12193
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
12234
+ <fo:external-graphic src="{$src}" vertical-align="middle">
12235
+ <xsl:call-template name="addAltText"/>
12194
12236
 
12195
12237
  <xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
12196
12238
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -12254,11 +12296,12 @@
12254
12296
  <xsl:choose>
12255
12297
  <xsl:when test="$isDeleted = 'true'">
12256
12298
  <!-- enclose in svg -->
12257
- <fo:instream-foreign-object fox:alt-text="Image {@alt}">
12299
+ <fo:instream-foreign-object>
12258
12300
  <xsl:attribute name="width">100%</xsl:attribute>
12259
12301
  <xsl:attribute name="content-height">100%</xsl:attribute>
12260
12302
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
12261
12303
  <xsl:attribute name="scaling">uniform</xsl:attribute>
12304
+ <xsl:call-template name="addAltText"/>
12262
12305
 
12263
12306
  <xsl:apply-templates select="." mode="cross_image"/>
12264
12307
 
@@ -12274,7 +12317,8 @@
12274
12317
  <xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
12275
12318
  </fo:block> -->
12276
12319
 
12277
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}">
12320
+ <fo:external-graphic src="{$src}">
12321
+ <xsl:call-template name="addAltText"/>
12278
12322
 
12279
12323
  <xsl:choose>
12280
12324
  <!-- default -->
@@ -12334,6 +12378,25 @@
12334
12378
  </xsl:choose>
12335
12379
  </xsl:template>
12336
12380
 
12381
+ <xsl:template name="addAltText">
12382
+ <xsl:param name="name">Image</xsl:param>
12383
+ <xsl:variable name="alt-text">
12384
+ <xsl:choose>
12385
+ <xsl:when test="self::mn:image and normalize-space(@alt) != ''">
12386
+ <xsl:value-of select="@alt"/>
12387
+ </xsl:when>
12388
+ <xsl:when test="normalize-space(../@alt) != ''">
12389
+ <xsl:value-of select="../@alt"/>
12390
+ </xsl:when>
12391
+ <xsl:when test="normalize-space(../mn:fmt-name) != ''">
12392
+ <xsl:value-of select="../mn:fmt-name"/>
12393
+ </xsl:when>
12394
+ <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
12395
+ </xsl:choose>
12396
+ </xsl:variable>
12397
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
12398
+ </xsl:template>
12399
+
12337
12400
  <xsl:template name="setImageWidth">
12338
12401
  <xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
12339
12402
  <xsl:value-of select="@width"/>
@@ -12522,6 +12585,9 @@
12522
12585
 
12523
12586
  <xsl:variable name="alt-text">
12524
12587
  <xsl:choose>
12588
+ <xsl:when test="normalize-space(../@alt) != ''">
12589
+ <xsl:value-of select="../@alt"/>
12590
+ </xsl:when>
12525
12591
  <xsl:when test="normalize-space(../mn:fmt-name) != ''">
12526
12592
  <xsl:value-of select="../mn:fmt-name"/>
12527
12593
  </xsl:when>
@@ -14151,6 +14217,7 @@
14151
14217
 
14152
14218
  <!-- admonition -->
14153
14219
  <xsl:attribute-set name="admonition-style">
14220
+ <xsl:attribute name="role">Note</xsl:attribute>
14154
14221
  <xsl:attribute name="border">0.25pt solid black</xsl:attribute>
14155
14222
  <xsl:attribute name="margin-left">16mm</xsl:attribute>
14156
14223
  <xsl:attribute name="margin-right">16mm</xsl:attribute>
@@ -14161,6 +14228,7 @@
14161
14228
  </xsl:template>
14162
14229
 
14163
14230
  <xsl:attribute-set name="admonition-container-style">
14231
+ <xsl:attribute name="role">SKIP</xsl:attribute>
14164
14232
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
14165
14233
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
14166
14234
  <xsl:attribute name="padding">2mm</xsl:attribute>
@@ -14171,6 +14239,7 @@
14171
14239
  </xsl:template>
14172
14240
 
14173
14241
  <xsl:attribute-set name="admonition-name-style">
14242
+ <xsl:attribute name="role">Lbl</xsl:attribute>
14174
14243
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
14175
14244
  <xsl:attribute name="font-size">11pt</xsl:attribute>
14176
14245
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
@@ -14201,7 +14270,7 @@
14201
14270
  <xsl:call-template name="refine_admonition-style"/>
14202
14271
 
14203
14272
  <xsl:call-template name="setBlockSpanAll"/>
14204
- <fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
14273
+ <fo:block-container xsl:use-attribute-sets="admonition-container-style">
14205
14274
 
14206
14275
  <xsl:call-template name="refine_admonition-container-style"/>
14207
14276
  <fo:block xsl:use-attribute-sets="admonition-name-style">
@@ -15018,9 +15087,9 @@
15018
15087
  <xsl:template name="fo_inline_bookmark">
15019
15088
  <xsl:param name="bookmark_id"/>
15020
15089
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
15021
- <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>
15090
+ <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>
15022
15091
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
15023
- <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
15092
+ <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>
15024
15093
  </xsl:template>
15025
15094
  <!-- =================== -->
15026
15095
  <!-- End of Index processing -->
@@ -15188,6 +15257,13 @@
15188
15257
  <!-- End Form's elements processing -->
15189
15258
  <!-- =================== -->
15190
15259
 
15260
+ <xsl:attribute-set name="toc-container-style">
15261
+ <xsl:attribute name="role">Sect</xsl:attribute>
15262
+ </xsl:attribute-set>
15263
+
15264
+ <xsl:template name="refine_toc-container-style">
15265
+ </xsl:template>
15266
+
15191
15267
  <xsl:attribute-set name="toc-style">
15192
15268
  <xsl:attribute name="line-height">135%</xsl:attribute>
15193
15269
  </xsl:attribute-set>
@@ -16625,6 +16701,13 @@
16625
16701
  <!-- ===================================== -->
16626
16702
  <!-- ===================================== -->
16627
16703
 
16704
+ <xsl:attribute-set name="annex-style">
16705
+ <xsl:attribute name="role">Sect</xsl:attribute>
16706
+ </xsl:attribute-set>
16707
+
16708
+ <xsl:template name="refine_annex-style">
16709
+ </xsl:template>
16710
+
16628
16711
  <xsl:attribute-set name="annex-title-style">
16629
16712
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
16630
16713
  </xsl:attribute-set> <!-- annex-title-style -->
@@ -16632,6 +16715,40 @@
16632
16715
  <xsl:template name="refine_annex-title-style">
16633
16716
  </xsl:template>
16634
16717
 
16718
+ <xsl:template match="mn:annex[normalize-space() != '']">
16719
+ <xsl:choose>
16720
+ <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
16721
+ <fo:block role="SKIP">
16722
+ <xsl:apply-templates/>
16723
+ </fo:block>
16724
+ </xsl:when>
16725
+ <xsl:otherwise>
16726
+
16727
+ <fo:block break-after="page"/>
16728
+ <xsl:call-template name="setNamedDestination"/>
16729
+
16730
+ <fo:block xsl:use-attribute-sets="annex-style">
16731
+
16732
+ <xsl:call-template name="setId"/>
16733
+
16734
+ <!-- <xsl:if test="$namespace = 'iso'"> -->
16735
+ <xsl:call-template name="addTagElementT"/>
16736
+ <!-- </xsl:if> -->
16737
+
16738
+ <xsl:call-template name="setBlockSpanAll"/>
16739
+
16740
+ <xsl:call-template name="refine_annex-style"/>
16741
+
16742
+ <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
16743
+
16744
+ <fo:block role="SKIP">
16745
+ <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
16746
+ </fo:block>
16747
+ </fo:block>
16748
+ </xsl:otherwise>
16749
+ </xsl:choose>
16750
+ </xsl:template>
16751
+
16635
16752
  <xsl:attribute-set name="p-zzSTDTitle1-style">
16636
16753
  </xsl:attribute-set>
16637
16754
 
@@ -17147,22 +17264,15 @@
17147
17264
  </xsl:attribute-set>
17148
17265
 
17149
17266
  <xsl:attribute-set name="clause-style">
17150
-
17267
+ <xsl:attribute name="role">Sect</xsl:attribute>
17151
17268
  </xsl:attribute-set>
17152
17269
 
17153
17270
  <xsl:template name="refine_clause-style">
17154
- <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
17155
- <!-- <xsl:if test="$namespace = 'rsd'">
17156
- <xsl:variable name="level">
17157
- <xsl:call-template name="getLevel">
17158
- <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
17159
- </xsl:call-template>
17160
- </xsl:variable>
17161
- <xsl:if test="$level &gt;= 4">
17162
- <xsl:attribute name="margin-left">13mm</xsl:attribute>
17163
- </xsl:if>
17164
- </xsl:if> -->
17165
- </xsl:template>
17271
+ <xsl:if test="parent::mn:copyright-statement">
17272
+ <xsl:attribute name="role">SKIP</xsl:attribute>
17273
+ </xsl:if>
17274
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
17275
+ </xsl:template> <!-- refine_clause-style -->
17166
17276
 
17167
17277
  <!-- main sections -->
17168
17278
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
@@ -17172,6 +17282,10 @@
17172
17282
 
17173
17283
  <xsl:call-template name="sections_element_style"/>
17174
17284
 
17285
+ <!-- <xsl:if test="$namespace = 'rsd'"> -->
17286
+ <xsl:call-template name="addTagElementT"/>
17287
+ <!-- </xsl:if> -->
17288
+
17175
17289
  <xsl:call-template name="addReviewHelper"/>
17176
17290
 
17177
17291
  <xsl:apply-templates/>
@@ -17234,16 +17348,15 @@
17234
17348
 
17235
17349
  <xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
17236
17350
  <xsl:call-template name="setNamedDestination"/>
17237
- <fo:block>
17238
- <xsl:if test="parent::mn:copyright-statement">
17239
- <xsl:attribute name="role">SKIP</xsl:attribute>
17240
- </xsl:if>
17351
+ <fo:block role="Sect">
17241
17352
 
17242
17353
  <xsl:call-template name="setId"/>
17243
17354
 
17355
+ <xsl:call-template name="addTagElementT"/>
17356
+
17244
17357
  <xsl:call-template name="setBlockSpanAll"/>
17245
17358
 
17246
- <xsl:call-template name="refine_clause_style"/>
17359
+ <xsl:call-template name="refine_clause-style"/>
17247
17360
 
17248
17361
  <xsl:call-template name="addReviewHelper"/>
17249
17362
 
@@ -17251,42 +17364,6 @@
17251
17364
  </fo:block>
17252
17365
  </xsl:template>
17253
17366
 
17254
- <xsl:template name="refine_clause_style">
17255
- <xsl:attribute name="keep-with-next">always</xsl:attribute>
17256
- </xsl:template> <!-- refine_clause_style -->
17257
-
17258
- <xsl:template match="mn:annex[normalize-space() != '']">
17259
- <xsl:choose>
17260
- <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
17261
- <fo:block>
17262
- <xsl:apply-templates/>
17263
- </fo:block>
17264
- </xsl:when>
17265
- <xsl:otherwise>
17266
-
17267
- <fo:block break-after="page"/>
17268
- <xsl:call-template name="setNamedDestination"/>
17269
-
17270
- <fo:block id="{@id}">
17271
-
17272
- <xsl:call-template name="setBlockSpanAll"/>
17273
-
17274
- <xsl:call-template name="refine_annex_style"/>
17275
-
17276
- </fo:block>
17277
-
17278
- <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
17279
-
17280
- <fo:block>
17281
- <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
17282
- </fo:block>
17283
- </xsl:otherwise>
17284
- </xsl:choose>
17285
- </xsl:template>
17286
-
17287
- <xsl:template name="refine_annex_style">
17288
- </xsl:template>
17289
-
17290
17367
  <xsl:template match="mn:name/text() | mn:fmt-name/text()">
17291
17368
  <!-- 0xA0 to space replacement -->
17292
17369
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
@@ -17402,6 +17479,13 @@
17402
17479
  <xsl:template name="addTagElementT">
17403
17480
  <xsl:variable name="title_">
17404
17481
  <xsl:apply-templates select="mn:fmt-title"/>
17482
+ <xsl:if test="not(mn:fmt-title) and self::mn:term">
17483
+ <name>
17484
+ <xsl:apply-templates select="mn:fmt-name"/>
17485
+ <xsl:text> </xsl:text>
17486
+ <xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
17487
+ </name>
17488
+ </xsl:if>
17405
17489
  </xsl:variable>
17406
17490
  <xsl:variable name="title__">
17407
17491
  <xsl:for-each select="xalan:nodeset($title_)/*/node()">
@@ -17411,7 +17495,7 @@
17411
17495
  </xsl:choose>
17412
17496
  </xsl:for-each>
17413
17497
  </xsl:variable>
17414
- <xsl:variable name="title" select="normalize-space($title__)"/>
17498
+ <xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' &#8232;'), ' '))"/>
17415
17499
  <xsl:if test="$title != ''">
17416
17500
  <xsl:attribute name="fox:title">
17417
17501
  <xsl:if test="ancestor::mn:sections">