metanorma-ieee 1.6.15 → 1.6.16

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: ddb0a44ce950881c6419e32522921aa3eeeac3eddd44034241ed38dc76b16780
4
- data.tar.gz: d97a19b2f181e37d71ef878dcb6166e90e277c35f119a826a9d87f5473e0f1f6
3
+ metadata.gz: 603d98e1dbba117c9af4c3da112e820f12e5f12d3feb817ce104cf9ee50dcf38
4
+ data.tar.gz: fa24186e8610a6488f893c88e83bfbf6d99c5c8f848afb97bd57b19ffd94b622
5
5
  SHA512:
6
- metadata.gz: 898d9b571436c42dae6ab55cf802d704ebc14952c556f9d5964d8482b6a3bf0bfb4902c9e321a7b68ad20723e6288244e1cdc21d7ece6e86f2b2e957d6d4718a
7
- data.tar.gz: 7c773c727f88c1222014e8665ae665d1b02c725518083cb16a7aa2137b38702ffb3718b38c2f44e95e562813403ee008efcb43fb4c82ad1080cb854a87de1d60
6
+ metadata.gz: 7258d438d5d06fd63e9aff784782f503e2a3796e3d1c6ce674c7c6f76170545abc752cf596336f3667ee8ec6d702aaaf55f2a91a4d136a353a4bb332ce4d8d1b
7
+ data.tar.gz: 6cb1690d6486f7d9e75d42caa1dfac69983de46add6fec3902135119bc00e76b9cccb5853c169393652340f8abd297ebaf943e434a2adf7ddc645842fe0f6d04
@@ -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
  }
@@ -3966,6 +3966,7 @@
3966
3966
 
3967
3967
  <!-- Characters -->
3968
3968
  <xsl:variable name="linebreak">&#8232;</xsl:variable>
3969
+ <xsl:variable name="em_space"> </xsl:variable>
3969
3970
  <xsl:variable name="tab_zh"> </xsl:variable>
3970
3971
  <xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
3971
3972
  <xsl:variable name="thin_space"> </xsl:variable>
@@ -7459,7 +7460,15 @@
7459
7460
  <!-- END requirement, recommendation, permission table -->
7460
7461
  <!-- ========== -->
7461
7462
 
7463
+ <xsl:attribute-set name="terms-style">
7464
+ <xsl:attribute name="role">Sect</xsl:attribute>
7465
+ </xsl:attribute-set>
7466
+
7467
+ <xsl:template name="refine_terms-style">
7468
+ </xsl:template>
7469
+
7462
7470
  <xsl:attribute-set name="term-style">
7471
+ <xsl:attribute name="role">Sect</xsl:attribute>
7463
7472
  </xsl:attribute-set> <!-- term-style -->
7464
7473
 
7465
7474
  <xsl:template name="refine_term-style">
@@ -7551,7 +7560,10 @@
7551
7560
  <xsl:template match="mn:terms">
7552
7561
  <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
7553
7562
  <xsl:call-template name="setNamedDestination"/>
7554
- <fo:block id="{@id}">
7563
+ <fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
7564
+ <xsl:call-template name="refine_terms-style"/>
7565
+ <xsl:call-template name="addTagElementT"/>
7566
+
7555
7567
  <xsl:apply-templates/>
7556
7568
  </fo:block>
7557
7569
  </xsl:template>
@@ -7560,6 +7572,7 @@
7560
7572
  <xsl:call-template name="setNamedDestination"/>
7561
7573
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
7562
7574
  <xsl:call-template name="refine_term-style"/>
7575
+ <xsl:call-template name="addTagElementT"/>
7563
7576
 
7564
7577
  <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
7565
7578
  </fo:block>
@@ -7790,7 +7803,9 @@
7790
7803
 
7791
7804
  <xsl:template match="mn:definitions">
7792
7805
  <xsl:call-template name="setNamedDestination"/>
7793
- <fo:block id="{@id}">
7806
+ <fo:block id="{@id}" role="Sect">
7807
+ <xsl:call-template name="addTagElementT"/>
7808
+
7794
7809
  <xsl:apply-templates/>
7795
7810
  </fo:block>
7796
7811
  </xsl:template>
@@ -7881,6 +7896,7 @@
7881
7896
  <xsl:template match="mn:termexample/mn:p">
7882
7897
  <xsl:variable name="element">inline
7883
7898
  block
7899
+ <xsl:value-of select="$example_display_in"/>
7884
7900
  </xsl:variable>
7885
7901
  <xsl:choose>
7886
7902
  <xsl:when test="contains($element, 'block')">
@@ -8290,6 +8306,9 @@
8290
8306
  </xsl:attribute-set><!-- table-note-style -->
8291
8307
 
8292
8308
  <xsl:template name="refine_table-note-style">
8309
+ <xsl:if test="self::mn:note">
8310
+ <xsl:attribute name="role">Note</xsl:attribute>
8311
+ </xsl:if>
8293
8312
  </xsl:template> <!-- refine_table-note-style -->
8294
8313
 
8295
8314
  <xsl:attribute-set name="table-fn-style">
@@ -9590,7 +9609,7 @@
9590
9609
  </xsl:template> <!-- table/note -->
9591
9610
 
9592
9611
  <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">
9593
- <xsl:apply-templates/>
9612
+ <fo:inline role="P"><xsl:apply-templates/></fo:inline>
9594
9613
  </xsl:template>
9595
9614
 
9596
9615
  <!-- ============================ -->
@@ -10519,6 +10538,7 @@
10519
10538
  <!-- ========================== -->
10520
10539
 
10521
10540
  <xsl:attribute-set name="dl-block-style">
10541
+ <xsl:attribute name="role">SKIP</xsl:attribute>
10522
10542
  </xsl:attribute-set>
10523
10543
 
10524
10544
  <xsl:template name="refine_dl-block-style">
@@ -10528,18 +10548,21 @@
10528
10548
  </xsl:template>
10529
10549
 
10530
10550
  <xsl:attribute-set name="dt-row-style">
10551
+ <xsl:attribute name="role">LI</xsl:attribute>
10531
10552
  </xsl:attribute-set>
10532
10553
 
10533
10554
  <xsl:template name="refine_dt-row-style">
10534
10555
  </xsl:template>
10535
10556
 
10536
10557
  <xsl:attribute-set name="dt-cell-style">
10558
+ <xsl:attribute name="role">Lbl</xsl:attribute>
10537
10559
  </xsl:attribute-set>
10538
10560
 
10539
10561
  <xsl:template name="refine_dt-cell-style">
10540
10562
  </xsl:template> <!-- refine_dt-cell-style -->
10541
10563
 
10542
10564
  <xsl:attribute-set name="dt-block-style">
10565
+ <xsl:attribute name="role">SKIP</xsl:attribute>
10543
10566
  <xsl:attribute name="margin-top">0pt</xsl:attribute>
10544
10567
  <xsl:attribute name="margin-left">2mm</xsl:attribute>
10545
10568
  <xsl:attribute name="line-height">1.2</xsl:attribute>
@@ -10559,6 +10582,7 @@
10559
10582
  </xsl:template>
10560
10583
 
10561
10584
  <xsl:attribute-set name="dd-cell-style">
10585
+ <xsl:attribute name="role">LBody</xsl:attribute>
10562
10586
  <xsl:attribute name="padding-left">2mm</xsl:attribute>
10563
10587
  </xsl:attribute-set>
10564
10588
 
@@ -10594,7 +10618,7 @@
10594
10618
  <xsl:variable name="isAdded" select="@added"/>
10595
10619
  <xsl:variable name="isDeleted" select="@deleted"/>
10596
10620
  <!-- <dl><xsl:copy-of select="."/></dl> -->
10597
- <fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
10621
+ <fo:block-container xsl:use-attribute-sets="dl-block-style">
10598
10622
 
10599
10623
  <xsl:call-template name="refine_dl-block-style"/>
10600
10624
 
@@ -10714,7 +10738,7 @@
10714
10738
  <fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
10715
10739
  </xsl:if>
10716
10740
 
10717
- <fo:table width="95%" table-layout="fixed">
10741
+ <fo:table width="95%" table-layout="fixed" role="L">
10718
10742
 
10719
10743
  <xsl:if test="$isGenerateTableIF = 'true'">
10720
10744
  <xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
@@ -10782,7 +10806,7 @@
10782
10806
  <xsl:with-param name="table_or_dl">dl</xsl:with-param>
10783
10807
  </xsl:apply-templates>
10784
10808
 
10785
- </xsl:when>
10809
+ </xsl:when> <!-- $isGenerateTableIF = 'true' -->
10786
10810
  <xsl:otherwise>
10787
10811
 
10788
10812
  <xsl:variable name="simple-table">
@@ -10837,7 +10861,7 @@
10837
10861
  <xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
10838
10862
  </xsl:call-template>
10839
10863
 
10840
- <fo:table-body>
10864
+ <fo:table-body role="SKIP">
10841
10865
 
10842
10866
  <!-- DEBUG -->
10843
10867
  <xsl:if test="$table_if_debug = 'true'">
@@ -11046,8 +11070,8 @@
11046
11070
  <td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
11047
11071
  </tr>
11048
11072
  -->
11049
- <fo:table-row>
11050
- <fo:table-cell number-columns-spanned="2">
11073
+ <fo:table-row role="SKIP">
11074
+ <fo:table-cell number-columns-spanned="2" role="SKIP">
11051
11075
  <fo:block role="SKIP">
11052
11076
  <xsl:call-template name="note"/>
11053
11077
  </fo:block>
@@ -11111,7 +11135,7 @@
11111
11135
  <xsl:call-template name="refine_dt-cell-style"/>
11112
11136
 
11113
11137
  <xsl:call-template name="setNamedDestination"/>
11114
- <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
11138
+ <fo:block xsl:use-attribute-sets="dt-block-style">
11115
11139
 
11116
11140
  <xsl:choose>
11117
11141
  <xsl:when test="$isGenerateTableIF = 'true'">
@@ -11200,7 +11224,7 @@
11200
11224
  </xsl:variable>
11201
11225
  <xsl:choose>
11202
11226
  <xsl:when test="$is_inline_element_after_where = 'true'">
11203
- <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
11227
+ <fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
11204
11228
  </xsl:when>
11205
11229
  <xsl:otherwise>
11206
11230
  <xsl:apply-templates select="."/>
@@ -11481,6 +11505,7 @@
11481
11505
  <!-- ====== -->
11482
11506
 
11483
11507
  <xsl:attribute-set name="note-style">
11508
+ <xsl:attribute name="role">Note</xsl:attribute>
11484
11509
  <xsl:attribute name="font-size">9pt</xsl:attribute>
11485
11510
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
11486
11511
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
@@ -11494,6 +11519,7 @@
11494
11519
  <xsl:variable name="note-body-indent-table">5mm</xsl:variable>
11495
11520
 
11496
11521
  <xsl:attribute-set name="note-name-style">
11522
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11497
11523
  </xsl:attribute-set> <!-- note-name-style -->
11498
11524
 
11499
11525
  <xsl:template name="refine_note-name-style">
@@ -11504,9 +11530,13 @@
11504
11530
  </xsl:attribute-set>
11505
11531
 
11506
11532
  <xsl:template name="refine_table-note-name-style">
11533
+ <xsl:if test="self::mn:note">
11534
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11535
+ </xsl:if>
11507
11536
  </xsl:template> <!-- refine_table-note-name-style -->
11508
11537
 
11509
11538
  <xsl:attribute-set name="note-p-style">
11539
+ <xsl:attribute name="role">P</xsl:attribute>
11510
11540
  <xsl:attribute name="text-align">justify</xsl:attribute>
11511
11541
  </xsl:attribute-set> <!-- note-p-style -->
11512
11542
 
@@ -11514,6 +11544,7 @@
11514
11544
  </xsl:template>
11515
11545
 
11516
11546
  <xsl:attribute-set name="termnote-style">
11547
+ <xsl:attribute name="role">Note</xsl:attribute>
11517
11548
  <xsl:attribute name="font-size">9pt</xsl:attribute>
11518
11549
  <xsl:attribute name="margin-top">6pt</xsl:attribute>
11519
11550
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
@@ -11530,12 +11561,14 @@
11530
11561
  </xsl:template> <!-- refine_termnote-style -->
11531
11562
 
11532
11563
  <xsl:attribute-set name="termnote-name-style">
11564
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11533
11565
  </xsl:attribute-set> <!-- termnote-name-style -->
11534
11566
 
11535
11567
  <xsl:template name="refine_termnote-name-style">
11536
11568
  </xsl:template>
11537
11569
 
11538
11570
  <xsl:attribute-set name="termnote-p-style">
11571
+ <xsl:attribute name="role">P</xsl:attribute>
11539
11572
  </xsl:attribute-set>
11540
11573
 
11541
11574
  <xsl:template name="refine_termnote-p-style">
@@ -11550,7 +11583,7 @@
11550
11583
 
11551
11584
  <xsl:call-template name="setNamedDestination"/>
11552
11585
 
11553
- <fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
11586
+ <fo:block-container xsl:use-attribute-sets="note-style">
11554
11587
  <xsl:if test="not(parent::mn:references)">
11555
11588
  <xsl:copy-of select="@id"/>
11556
11589
  </xsl:if>
@@ -11560,11 +11593,11 @@
11560
11593
  <xsl:call-template name="refine_note-style"/>
11561
11594
 
11562
11595
  <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
11563
- <fo:block>
11596
+ <fo:block role="SKIP">
11564
11597
 
11565
11598
  <xsl:call-template name="refine_note_block_style"/>
11566
11599
 
11567
- <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
11600
+ <fo:inline xsl:use-attribute-sets="note-name-style">
11568
11601
 
11569
11602
  <xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
11570
11603
 
@@ -11587,7 +11620,15 @@
11587
11620
 
11588
11621
  </fo:inline>
11589
11622
 
11590
- <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
11623
+ <xsl:choose>
11624
+ <xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
11625
+ <fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
11626
+ </xsl:when>
11627
+ <xsl:otherwise>
11628
+ <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
11629
+ </xsl:otherwise>
11630
+ </xsl:choose>
11631
+
11591
11632
  </fo:block>
11592
11633
  </fo:block-container>
11593
11634
  </fo:block-container>
@@ -11600,13 +11641,13 @@
11600
11641
  <xsl:variable name="num"><xsl:number/></xsl:variable>
11601
11642
  <xsl:choose>
11602
11643
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
11603
- <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
11644
+ <fo:inline xsl:use-attribute-sets="note-p-style">
11604
11645
  <xsl:call-template name="refine_note-p-style"/>
11605
11646
  <xsl:apply-templates/>
11606
11647
  </fo:inline>
11607
11648
  </xsl:when>
11608
11649
  <xsl:otherwise>
11609
- <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
11650
+ <fo:block xsl:use-attribute-sets="note-p-style">
11610
11651
  <xsl:call-template name="refine_note-p-style"/>
11611
11652
  <xsl:apply-templates/>
11612
11653
  </fo:block>
@@ -12256,7 +12297,8 @@
12256
12297
 
12257
12298
  <!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
12258
12299
 
12259
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
12300
+ <fo:external-graphic src="{$src}" vertical-align="middle">
12301
+ <xsl:call-template name="addAltText"/>
12260
12302
 
12261
12303
  <xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
12262
12304
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -12320,11 +12362,12 @@
12320
12362
  <xsl:choose>
12321
12363
  <xsl:when test="$isDeleted = 'true'">
12322
12364
  <!-- enclose in svg -->
12323
- <fo:instream-foreign-object fox:alt-text="Image {@alt}">
12365
+ <fo:instream-foreign-object>
12324
12366
  <xsl:attribute name="width">100%</xsl:attribute>
12325
12367
  <xsl:attribute name="content-height">100%</xsl:attribute>
12326
12368
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
12327
12369
  <xsl:attribute name="scaling">uniform</xsl:attribute>
12370
+ <xsl:call-template name="addAltText"/>
12328
12371
 
12329
12372
  <xsl:apply-templates select="." mode="cross_image"/>
12330
12373
 
@@ -12340,7 +12383,8 @@
12340
12383
  <xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
12341
12384
  </fo:block> -->
12342
12385
 
12343
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}">
12386
+ <fo:external-graphic src="{$src}">
12387
+ <xsl:call-template name="addAltText"/>
12344
12388
 
12345
12389
  <xsl:choose>
12346
12390
  <!-- default -->
@@ -12400,6 +12444,25 @@
12400
12444
  </xsl:choose>
12401
12445
  </xsl:template>
12402
12446
 
12447
+ <xsl:template name="addAltText">
12448
+ <xsl:param name="name">Image</xsl:param>
12449
+ <xsl:variable name="alt-text">
12450
+ <xsl:choose>
12451
+ <xsl:when test="self::mn:image and normalize-space(@alt) != ''">
12452
+ <xsl:value-of select="@alt"/>
12453
+ </xsl:when>
12454
+ <xsl:when test="normalize-space(../@alt) != ''">
12455
+ <xsl:value-of select="../@alt"/>
12456
+ </xsl:when>
12457
+ <xsl:when test="normalize-space(../mn:fmt-name) != ''">
12458
+ <xsl:value-of select="../mn:fmt-name"/>
12459
+ </xsl:when>
12460
+ <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
12461
+ </xsl:choose>
12462
+ </xsl:variable>
12463
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
12464
+ </xsl:template>
12465
+
12403
12466
  <xsl:template name="setImageWidth">
12404
12467
  <xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
12405
12468
  <xsl:value-of select="@width"/>
@@ -12588,6 +12651,9 @@
12588
12651
 
12589
12652
  <xsl:variable name="alt-text">
12590
12653
  <xsl:choose>
12654
+ <xsl:when test="normalize-space(../@alt) != ''">
12655
+ <xsl:value-of select="../@alt"/>
12656
+ </xsl:when>
12591
12657
  <xsl:when test="normalize-space(../mn:fmt-name) != ''">
12592
12658
  <xsl:value-of select="../mn:fmt-name"/>
12593
12659
  </xsl:when>
@@ -14241,6 +14307,7 @@
14241
14307
 
14242
14308
  <!-- admonition -->
14243
14309
  <xsl:attribute-set name="admonition-style">
14310
+ <xsl:attribute name="role">Note</xsl:attribute>
14244
14311
  <xsl:attribute name="border">0.5pt solid black</xsl:attribute>
14245
14312
  <xsl:attribute name="space-before">12pt</xsl:attribute>
14246
14313
  <xsl:attribute name="text-align">center</xsl:attribute>
@@ -14251,6 +14318,7 @@
14251
14318
  </xsl:template>
14252
14319
 
14253
14320
  <xsl:attribute-set name="admonition-container-style">
14321
+ <xsl:attribute name="role">SKIP</xsl:attribute>
14254
14322
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
14255
14323
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
14256
14324
  <xsl:attribute name="padding">1mm</xsl:attribute>
@@ -14261,6 +14329,7 @@
14261
14329
  </xsl:template>
14262
14330
 
14263
14331
  <xsl:attribute-set name="admonition-name-style">
14332
+ <xsl:attribute name="role">Lbl</xsl:attribute>
14264
14333
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
14265
14334
  </xsl:attribute-set> <!-- admonition-name-style -->
14266
14335
 
@@ -14300,7 +14369,7 @@
14300
14369
  <xsl:attribute name="font-size">9pt</xsl:attribute>
14301
14370
  <xsl:attribute name="text-align">left</xsl:attribute>
14302
14371
  </xsl:if>
14303
- <fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
14372
+ <fo:block-container xsl:use-attribute-sets="admonition-container-style">
14304
14373
 
14305
14374
  <xsl:call-template name="refine_admonition-container-style"/>
14306
14375
  <xsl:if test="@type = 'editorial' or not(@type)">
@@ -15150,9 +15219,9 @@
15150
15219
  <xsl:template name="fo_inline_bookmark">
15151
15220
  <xsl:param name="bookmark_id"/>
15152
15221
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
15153
- <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>
15222
+ <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>
15154
15223
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
15155
- <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
15224
+ <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>
15156
15225
  </xsl:template>
15157
15226
  <!-- =================== -->
15158
15227
  <!-- End of Index processing -->
@@ -15320,6 +15389,13 @@
15320
15389
  <!-- End Form's elements processing -->
15321
15390
  <!-- =================== -->
15322
15391
 
15392
+ <xsl:attribute-set name="toc-container-style">
15393
+ <xsl:attribute name="role">Sect</xsl:attribute>
15394
+ </xsl:attribute-set>
15395
+
15396
+ <xsl:template name="refine_toc-container-style">
15397
+ </xsl:template>
15398
+
15323
15399
  <xsl:attribute-set name="toc-style">
15324
15400
  </xsl:attribute-set>
15325
15401
 
@@ -16724,6 +16800,13 @@
16724
16800
  <!-- ===================================== -->
16725
16801
  <!-- ===================================== -->
16726
16802
 
16803
+ <xsl:attribute-set name="annex-style">
16804
+ <xsl:attribute name="role">Sect</xsl:attribute>
16805
+ </xsl:attribute-set>
16806
+
16807
+ <xsl:template name="refine_annex-style">
16808
+ </xsl:template>
16809
+
16727
16810
  <xsl:attribute-set name="annex-title-style">
16728
16811
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
16729
16812
  <xsl:attribute name="font-weight">normal</xsl:attribute>
@@ -16733,6 +16816,40 @@
16733
16816
  <xsl:template name="refine_annex-title-style">
16734
16817
  </xsl:template>
16735
16818
 
16819
+ <xsl:template match="mn:annex[normalize-space() != '']">
16820
+ <xsl:choose>
16821
+ <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
16822
+ <fo:block role="SKIP">
16823
+ <xsl:apply-templates/>
16824
+ </fo:block>
16825
+ </xsl:when>
16826
+ <xsl:otherwise>
16827
+
16828
+ <fo:block break-after="page"/>
16829
+ <xsl:call-template name="setNamedDestination"/>
16830
+
16831
+ <fo:block xsl:use-attribute-sets="annex-style">
16832
+
16833
+ <xsl:call-template name="setId"/>
16834
+
16835
+ <!-- <xsl:if test="$namespace = 'iso'"> -->
16836
+ <xsl:call-template name="addTagElementT"/>
16837
+ <!-- </xsl:if> -->
16838
+
16839
+ <xsl:call-template name="setBlockSpanAll"/>
16840
+
16841
+ <xsl:call-template name="refine_annex-style"/>
16842
+
16843
+ <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
16844
+
16845
+ <fo:block role="SKIP">
16846
+ <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
16847
+ </fo:block>
16848
+ </fo:block>
16849
+ </xsl:otherwise>
16850
+ </xsl:choose>
16851
+ </xsl:template>
16852
+
16736
16853
  <xsl:attribute-set name="p-zzSTDTitle1-style">
16737
16854
  <xsl:attribute name="font-family">Arial</xsl:attribute>
16738
16855
  <xsl:attribute name="font-size">23pt</xsl:attribute>
@@ -17298,22 +17415,14 @@
17298
17415
  </xsl:attribute-set>
17299
17416
 
17300
17417
  <xsl:attribute-set name="clause-style">
17301
-
17418
+ <xsl:attribute name="role">Sect</xsl:attribute>
17302
17419
  </xsl:attribute-set>
17303
17420
 
17304
17421
  <xsl:template name="refine_clause-style">
17305
- <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
17306
- <!-- <xsl:if test="$namespace = 'rsd'">
17307
- <xsl:variable name="level">
17308
- <xsl:call-template name="getLevel">
17309
- <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
17310
- </xsl:call-template>
17311
- </xsl:variable>
17312
- <xsl:if test="$level &gt;= 4">
17313
- <xsl:attribute name="margin-left">13mm</xsl:attribute>
17314
- </xsl:if>
17315
- </xsl:if> -->
17316
- </xsl:template>
17422
+ <xsl:if test="parent::mn:copyright-statement">
17423
+ <xsl:attribute name="role">SKIP</xsl:attribute>
17424
+ </xsl:if>
17425
+ </xsl:template> <!-- refine_clause-style -->
17317
17426
 
17318
17427
  <!-- main sections -->
17319
17428
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
@@ -17323,6 +17432,10 @@
17323
17432
 
17324
17433
  <xsl:call-template name="sections_element_style"/>
17325
17434
 
17435
+ <!-- <xsl:if test="$namespace = 'rsd'"> -->
17436
+ <xsl:call-template name="addTagElementT"/>
17437
+ <!-- </xsl:if> -->
17438
+
17326
17439
  <xsl:call-template name="addReviewHelper"/>
17327
17440
 
17328
17441
  <xsl:apply-templates/>
@@ -17393,16 +17506,15 @@
17393
17506
 
17394
17507
  <xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
17395
17508
  <xsl:call-template name="setNamedDestination"/>
17396
- <fo:block>
17397
- <xsl:if test="parent::mn:copyright-statement">
17398
- <xsl:attribute name="role">SKIP</xsl:attribute>
17399
- </xsl:if>
17509
+ <fo:block role="Sect">
17400
17510
 
17401
17511
  <xsl:call-template name="setId"/>
17402
17512
 
17513
+ <xsl:call-template name="addTagElementT"/>
17514
+
17403
17515
  <xsl:call-template name="setBlockSpanAll"/>
17404
17516
 
17405
- <xsl:call-template name="refine_clause_style"/>
17517
+ <xsl:call-template name="refine_clause-style"/>
17406
17518
 
17407
17519
  <xsl:call-template name="addReviewHelper"/>
17408
17520
 
@@ -17410,41 +17522,6 @@
17410
17522
  </fo:block>
17411
17523
  </xsl:template>
17412
17524
 
17413
- <xsl:template name="refine_clause_style">
17414
- </xsl:template> <!-- refine_clause_style -->
17415
-
17416
- <xsl:template match="mn:annex[normalize-space() != '']">
17417
- <xsl:choose>
17418
- <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
17419
- <fo:block>
17420
- <xsl:apply-templates/>
17421
- </fo:block>
17422
- </xsl:when>
17423
- <xsl:otherwise>
17424
-
17425
- <fo:block break-after="page"/>
17426
- <xsl:call-template name="setNamedDestination"/>
17427
-
17428
- <fo:block id="{@id}">
17429
-
17430
- <xsl:call-template name="setBlockSpanAll"/>
17431
-
17432
- <xsl:call-template name="refine_annex_style"/>
17433
-
17434
- </fo:block>
17435
-
17436
- <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
17437
-
17438
- <fo:block>
17439
- <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
17440
- </fo:block>
17441
- </xsl:otherwise>
17442
- </xsl:choose>
17443
- </xsl:template>
17444
-
17445
- <xsl:template name="refine_annex_style">
17446
- </xsl:template>
17447
-
17448
17525
  <xsl:template match="mn:name/text() | mn:fmt-name/text()">
17449
17526
  <!-- 0xA0 to space replacement -->
17450
17527
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
@@ -17560,6 +17637,13 @@
17560
17637
  <xsl:template name="addTagElementT">
17561
17638
  <xsl:variable name="title_">
17562
17639
  <xsl:apply-templates select="mn:fmt-title"/>
17640
+ <xsl:if test="not(mn:fmt-title) and self::mn:term">
17641
+ <name>
17642
+ <xsl:apply-templates select="mn:fmt-name"/>
17643
+ <xsl:text> </xsl:text>
17644
+ <xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
17645
+ </name>
17646
+ </xsl:if>
17563
17647
  </xsl:variable>
17564
17648
  <xsl:variable name="title__">
17565
17649
  <xsl:for-each select="xalan:nodeset($title_)/*/node()">
@@ -17569,7 +17653,7 @@
17569
17653
  </xsl:choose>
17570
17654
  </xsl:for-each>
17571
17655
  </xsl:variable>
17572
- <xsl:variable name="title" select="normalize-space($title__)"/>
17656
+ <xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' &#8232;'), ' '))"/>
17573
17657
  <xsl:if test="$title != ''">
17574
17658
  <xsl:attribute name="fox:title">
17575
17659
  <xsl:if test="ancestor::mn:sections">
@@ -3966,6 +3966,7 @@
3966
3966
 
3967
3967
  <!-- Characters -->
3968
3968
  <xsl:variable name="linebreak">&#8232;</xsl:variable>
3969
+ <xsl:variable name="em_space"> </xsl:variable>
3969
3970
  <xsl:variable name="tab_zh"> </xsl:variable>
3970
3971
  <xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
3971
3972
  <xsl:variable name="thin_space"> </xsl:variable>
@@ -7459,7 +7460,15 @@
7459
7460
  <!-- END requirement, recommendation, permission table -->
7460
7461
  <!-- ========== -->
7461
7462
 
7463
+ <xsl:attribute-set name="terms-style">
7464
+ <xsl:attribute name="role">Sect</xsl:attribute>
7465
+ </xsl:attribute-set>
7466
+
7467
+ <xsl:template name="refine_terms-style">
7468
+ </xsl:template>
7469
+
7462
7470
  <xsl:attribute-set name="term-style">
7471
+ <xsl:attribute name="role">Sect</xsl:attribute>
7463
7472
  </xsl:attribute-set> <!-- term-style -->
7464
7473
 
7465
7474
  <xsl:template name="refine_term-style">
@@ -7551,7 +7560,10 @@
7551
7560
  <xsl:template match="mn:terms">
7552
7561
  <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
7553
7562
  <xsl:call-template name="setNamedDestination"/>
7554
- <fo:block id="{@id}">
7563
+ <fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
7564
+ <xsl:call-template name="refine_terms-style"/>
7565
+ <xsl:call-template name="addTagElementT"/>
7566
+
7555
7567
  <xsl:apply-templates/>
7556
7568
  </fo:block>
7557
7569
  </xsl:template>
@@ -7560,6 +7572,7 @@
7560
7572
  <xsl:call-template name="setNamedDestination"/>
7561
7573
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
7562
7574
  <xsl:call-template name="refine_term-style"/>
7575
+ <xsl:call-template name="addTagElementT"/>
7563
7576
 
7564
7577
  <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
7565
7578
  </fo:block>
@@ -7790,7 +7803,9 @@
7790
7803
 
7791
7804
  <xsl:template match="mn:definitions">
7792
7805
  <xsl:call-template name="setNamedDestination"/>
7793
- <fo:block id="{@id}">
7806
+ <fo:block id="{@id}" role="Sect">
7807
+ <xsl:call-template name="addTagElementT"/>
7808
+
7794
7809
  <xsl:apply-templates/>
7795
7810
  </fo:block>
7796
7811
  </xsl:template>
@@ -7881,6 +7896,7 @@
7881
7896
  <xsl:template match="mn:termexample/mn:p">
7882
7897
  <xsl:variable name="element">inline
7883
7898
  block
7899
+ <xsl:value-of select="$example_display_in"/>
7884
7900
  </xsl:variable>
7885
7901
  <xsl:choose>
7886
7902
  <xsl:when test="contains($element, 'block')">
@@ -8290,6 +8306,9 @@
8290
8306
  </xsl:attribute-set><!-- table-note-style -->
8291
8307
 
8292
8308
  <xsl:template name="refine_table-note-style">
8309
+ <xsl:if test="self::mn:note">
8310
+ <xsl:attribute name="role">Note</xsl:attribute>
8311
+ </xsl:if>
8293
8312
  </xsl:template> <!-- refine_table-note-style -->
8294
8313
 
8295
8314
  <xsl:attribute-set name="table-fn-style">
@@ -9590,7 +9609,7 @@
9590
9609
  </xsl:template> <!-- table/note -->
9591
9610
 
9592
9611
  <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">
9593
- <xsl:apply-templates/>
9612
+ <fo:inline role="P"><xsl:apply-templates/></fo:inline>
9594
9613
  </xsl:template>
9595
9614
 
9596
9615
  <!-- ============================ -->
@@ -10519,6 +10538,7 @@
10519
10538
  <!-- ========================== -->
10520
10539
 
10521
10540
  <xsl:attribute-set name="dl-block-style">
10541
+ <xsl:attribute name="role">SKIP</xsl:attribute>
10522
10542
  </xsl:attribute-set>
10523
10543
 
10524
10544
  <xsl:template name="refine_dl-block-style">
@@ -10528,18 +10548,21 @@
10528
10548
  </xsl:template>
10529
10549
 
10530
10550
  <xsl:attribute-set name="dt-row-style">
10551
+ <xsl:attribute name="role">LI</xsl:attribute>
10531
10552
  </xsl:attribute-set>
10532
10553
 
10533
10554
  <xsl:template name="refine_dt-row-style">
10534
10555
  </xsl:template>
10535
10556
 
10536
10557
  <xsl:attribute-set name="dt-cell-style">
10558
+ <xsl:attribute name="role">Lbl</xsl:attribute>
10537
10559
  </xsl:attribute-set>
10538
10560
 
10539
10561
  <xsl:template name="refine_dt-cell-style">
10540
10562
  </xsl:template> <!-- refine_dt-cell-style -->
10541
10563
 
10542
10564
  <xsl:attribute-set name="dt-block-style">
10565
+ <xsl:attribute name="role">SKIP</xsl:attribute>
10543
10566
  <xsl:attribute name="margin-top">0pt</xsl:attribute>
10544
10567
  <xsl:attribute name="margin-left">2mm</xsl:attribute>
10545
10568
  <xsl:attribute name="line-height">1.2</xsl:attribute>
@@ -10559,6 +10582,7 @@
10559
10582
  </xsl:template>
10560
10583
 
10561
10584
  <xsl:attribute-set name="dd-cell-style">
10585
+ <xsl:attribute name="role">LBody</xsl:attribute>
10562
10586
  <xsl:attribute name="padding-left">2mm</xsl:attribute>
10563
10587
  </xsl:attribute-set>
10564
10588
 
@@ -10594,7 +10618,7 @@
10594
10618
  <xsl:variable name="isAdded" select="@added"/>
10595
10619
  <xsl:variable name="isDeleted" select="@deleted"/>
10596
10620
  <!-- <dl><xsl:copy-of select="."/></dl> -->
10597
- <fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
10621
+ <fo:block-container xsl:use-attribute-sets="dl-block-style">
10598
10622
 
10599
10623
  <xsl:call-template name="refine_dl-block-style"/>
10600
10624
 
@@ -10714,7 +10738,7 @@
10714
10738
  <fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
10715
10739
  </xsl:if>
10716
10740
 
10717
- <fo:table width="95%" table-layout="fixed">
10741
+ <fo:table width="95%" table-layout="fixed" role="L">
10718
10742
 
10719
10743
  <xsl:if test="$isGenerateTableIF = 'true'">
10720
10744
  <xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
@@ -10782,7 +10806,7 @@
10782
10806
  <xsl:with-param name="table_or_dl">dl</xsl:with-param>
10783
10807
  </xsl:apply-templates>
10784
10808
 
10785
- </xsl:when>
10809
+ </xsl:when> <!-- $isGenerateTableIF = 'true' -->
10786
10810
  <xsl:otherwise>
10787
10811
 
10788
10812
  <xsl:variable name="simple-table">
@@ -10837,7 +10861,7 @@
10837
10861
  <xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
10838
10862
  </xsl:call-template>
10839
10863
 
10840
- <fo:table-body>
10864
+ <fo:table-body role="SKIP">
10841
10865
 
10842
10866
  <!-- DEBUG -->
10843
10867
  <xsl:if test="$table_if_debug = 'true'">
@@ -11046,8 +11070,8 @@
11046
11070
  <td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
11047
11071
  </tr>
11048
11072
  -->
11049
- <fo:table-row>
11050
- <fo:table-cell number-columns-spanned="2">
11073
+ <fo:table-row role="SKIP">
11074
+ <fo:table-cell number-columns-spanned="2" role="SKIP">
11051
11075
  <fo:block role="SKIP">
11052
11076
  <xsl:call-template name="note"/>
11053
11077
  </fo:block>
@@ -11111,7 +11135,7 @@
11111
11135
  <xsl:call-template name="refine_dt-cell-style"/>
11112
11136
 
11113
11137
  <xsl:call-template name="setNamedDestination"/>
11114
- <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
11138
+ <fo:block xsl:use-attribute-sets="dt-block-style">
11115
11139
 
11116
11140
  <xsl:choose>
11117
11141
  <xsl:when test="$isGenerateTableIF = 'true'">
@@ -11200,7 +11224,7 @@
11200
11224
  </xsl:variable>
11201
11225
  <xsl:choose>
11202
11226
  <xsl:when test="$is_inline_element_after_where = 'true'">
11203
- <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
11227
+ <fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
11204
11228
  </xsl:when>
11205
11229
  <xsl:otherwise>
11206
11230
  <xsl:apply-templates select="."/>
@@ -11481,6 +11505,7 @@
11481
11505
  <!-- ====== -->
11482
11506
 
11483
11507
  <xsl:attribute-set name="note-style">
11508
+ <xsl:attribute name="role">Note</xsl:attribute>
11484
11509
  <xsl:attribute name="font-size">9pt</xsl:attribute>
11485
11510
  <xsl:attribute name="margin-top">12pt</xsl:attribute>
11486
11511
  <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
@@ -11494,6 +11519,7 @@
11494
11519
  <xsl:variable name="note-body-indent-table">5mm</xsl:variable>
11495
11520
 
11496
11521
  <xsl:attribute-set name="note-name-style">
11522
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11497
11523
  </xsl:attribute-set> <!-- note-name-style -->
11498
11524
 
11499
11525
  <xsl:template name="refine_note-name-style">
@@ -11504,9 +11530,13 @@
11504
11530
  </xsl:attribute-set>
11505
11531
 
11506
11532
  <xsl:template name="refine_table-note-name-style">
11533
+ <xsl:if test="self::mn:note">
11534
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11535
+ </xsl:if>
11507
11536
  </xsl:template> <!-- refine_table-note-name-style -->
11508
11537
 
11509
11538
  <xsl:attribute-set name="note-p-style">
11539
+ <xsl:attribute name="role">P</xsl:attribute>
11510
11540
  <xsl:attribute name="text-align">justify</xsl:attribute>
11511
11541
  </xsl:attribute-set> <!-- note-p-style -->
11512
11542
 
@@ -11514,6 +11544,7 @@
11514
11544
  </xsl:template>
11515
11545
 
11516
11546
  <xsl:attribute-set name="termnote-style">
11547
+ <xsl:attribute name="role">Note</xsl:attribute>
11517
11548
  <xsl:attribute name="font-size">9pt</xsl:attribute>
11518
11549
  <xsl:attribute name="margin-top">6pt</xsl:attribute>
11519
11550
  <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
@@ -11530,12 +11561,14 @@
11530
11561
  </xsl:template> <!-- refine_termnote-style -->
11531
11562
 
11532
11563
  <xsl:attribute-set name="termnote-name-style">
11564
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11533
11565
  </xsl:attribute-set> <!-- termnote-name-style -->
11534
11566
 
11535
11567
  <xsl:template name="refine_termnote-name-style">
11536
11568
  </xsl:template>
11537
11569
 
11538
11570
  <xsl:attribute-set name="termnote-p-style">
11571
+ <xsl:attribute name="role">P</xsl:attribute>
11539
11572
  </xsl:attribute-set>
11540
11573
 
11541
11574
  <xsl:template name="refine_termnote-p-style">
@@ -11550,7 +11583,7 @@
11550
11583
 
11551
11584
  <xsl:call-template name="setNamedDestination"/>
11552
11585
 
11553
- <fo:block-container xsl:use-attribute-sets="note-style" role="SKIP">
11586
+ <fo:block-container xsl:use-attribute-sets="note-style">
11554
11587
  <xsl:if test="not(parent::mn:references)">
11555
11588
  <xsl:copy-of select="@id"/>
11556
11589
  </xsl:if>
@@ -11560,11 +11593,11 @@
11560
11593
  <xsl:call-template name="refine_note-style"/>
11561
11594
 
11562
11595
  <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
11563
- <fo:block>
11596
+ <fo:block role="SKIP">
11564
11597
 
11565
11598
  <xsl:call-template name="refine_note_block_style"/>
11566
11599
 
11567
- <fo:inline xsl:use-attribute-sets="note-name-style" role="SKIP">
11600
+ <fo:inline xsl:use-attribute-sets="note-name-style">
11568
11601
 
11569
11602
  <xsl:apply-templates select="mn:fmt-name/mn:tab" mode="tab"/>
11570
11603
 
@@ -11587,7 +11620,15 @@
11587
11620
 
11588
11621
  </fo:inline>
11589
11622
 
11590
- <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
11623
+ <xsl:choose>
11624
+ <xsl:when test="parent::mn:formattedref and ancestor::mn:bibitem">
11625
+ <fo:inline role="P"><xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/></fo:inline>
11626
+ </xsl:when>
11627
+ <xsl:otherwise>
11628
+ <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
11629
+ </xsl:otherwise>
11630
+ </xsl:choose>
11631
+
11591
11632
  </fo:block>
11592
11633
  </fo:block-container>
11593
11634
  </fo:block-container>
@@ -11600,13 +11641,13 @@
11600
11641
  <xsl:variable name="num"><xsl:number/></xsl:variable>
11601
11642
  <xsl:choose>
11602
11643
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
11603
- <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
11644
+ <fo:inline xsl:use-attribute-sets="note-p-style">
11604
11645
  <xsl:call-template name="refine_note-p-style"/>
11605
11646
  <xsl:apply-templates/>
11606
11647
  </fo:inline>
11607
11648
  </xsl:when>
11608
11649
  <xsl:otherwise>
11609
- <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
11650
+ <fo:block xsl:use-attribute-sets="note-p-style">
11610
11651
  <xsl:call-template name="refine_note-p-style"/>
11611
11652
  <xsl:apply-templates/>
11612
11653
  </fo:block>
@@ -12256,7 +12297,8 @@
12256
12297
 
12257
12298
  <!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
12258
12299
 
12259
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
12300
+ <fo:external-graphic src="{$src}" vertical-align="middle">
12301
+ <xsl:call-template name="addAltText"/>
12260
12302
 
12261
12303
  <xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
12262
12304
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -12320,11 +12362,12 @@
12320
12362
  <xsl:choose>
12321
12363
  <xsl:when test="$isDeleted = 'true'">
12322
12364
  <!-- enclose in svg -->
12323
- <fo:instream-foreign-object fox:alt-text="Image {@alt}">
12365
+ <fo:instream-foreign-object>
12324
12366
  <xsl:attribute name="width">100%</xsl:attribute>
12325
12367
  <xsl:attribute name="content-height">100%</xsl:attribute>
12326
12368
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
12327
12369
  <xsl:attribute name="scaling">uniform</xsl:attribute>
12370
+ <xsl:call-template name="addAltText"/>
12328
12371
 
12329
12372
  <xsl:apply-templates select="." mode="cross_image"/>
12330
12373
 
@@ -12340,7 +12383,8 @@
12340
12383
  <xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
12341
12384
  </fo:block> -->
12342
12385
 
12343
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}">
12386
+ <fo:external-graphic src="{$src}">
12387
+ <xsl:call-template name="addAltText"/>
12344
12388
 
12345
12389
  <xsl:choose>
12346
12390
  <!-- default -->
@@ -12400,6 +12444,25 @@
12400
12444
  </xsl:choose>
12401
12445
  </xsl:template>
12402
12446
 
12447
+ <xsl:template name="addAltText">
12448
+ <xsl:param name="name">Image</xsl:param>
12449
+ <xsl:variable name="alt-text">
12450
+ <xsl:choose>
12451
+ <xsl:when test="self::mn:image and normalize-space(@alt) != ''">
12452
+ <xsl:value-of select="@alt"/>
12453
+ </xsl:when>
12454
+ <xsl:when test="normalize-space(../@alt) != ''">
12455
+ <xsl:value-of select="../@alt"/>
12456
+ </xsl:when>
12457
+ <xsl:when test="normalize-space(../mn:fmt-name) != ''">
12458
+ <xsl:value-of select="../mn:fmt-name"/>
12459
+ </xsl:when>
12460
+ <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
12461
+ </xsl:choose>
12462
+ </xsl:variable>
12463
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
12464
+ </xsl:template>
12465
+
12403
12466
  <xsl:template name="setImageWidth">
12404
12467
  <xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
12405
12468
  <xsl:value-of select="@width"/>
@@ -12588,6 +12651,9 @@
12588
12651
 
12589
12652
  <xsl:variable name="alt-text">
12590
12653
  <xsl:choose>
12654
+ <xsl:when test="normalize-space(../@alt) != ''">
12655
+ <xsl:value-of select="../@alt"/>
12656
+ </xsl:when>
12591
12657
  <xsl:when test="normalize-space(../mn:fmt-name) != ''">
12592
12658
  <xsl:value-of select="../mn:fmt-name"/>
12593
12659
  </xsl:when>
@@ -14241,6 +14307,7 @@
14241
14307
 
14242
14308
  <!-- admonition -->
14243
14309
  <xsl:attribute-set name="admonition-style">
14310
+ <xsl:attribute name="role">Note</xsl:attribute>
14244
14311
  <xsl:attribute name="border">0.5pt solid black</xsl:attribute>
14245
14312
  <xsl:attribute name="space-before">12pt</xsl:attribute>
14246
14313
  <xsl:attribute name="text-align">center</xsl:attribute>
@@ -14251,6 +14318,7 @@
14251
14318
  </xsl:template>
14252
14319
 
14253
14320
  <xsl:attribute-set name="admonition-container-style">
14321
+ <xsl:attribute name="role">SKIP</xsl:attribute>
14254
14322
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
14255
14323
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
14256
14324
  <xsl:attribute name="padding">1mm</xsl:attribute>
@@ -14261,6 +14329,7 @@
14261
14329
  </xsl:template>
14262
14330
 
14263
14331
  <xsl:attribute-set name="admonition-name-style">
14332
+ <xsl:attribute name="role">Lbl</xsl:attribute>
14264
14333
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
14265
14334
  </xsl:attribute-set> <!-- admonition-name-style -->
14266
14335
 
@@ -14300,7 +14369,7 @@
14300
14369
  <xsl:attribute name="font-size">9pt</xsl:attribute>
14301
14370
  <xsl:attribute name="text-align">left</xsl:attribute>
14302
14371
  </xsl:if>
14303
- <fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
14372
+ <fo:block-container xsl:use-attribute-sets="admonition-container-style">
14304
14373
 
14305
14374
  <xsl:call-template name="refine_admonition-container-style"/>
14306
14375
  <xsl:if test="@type = 'editorial' or not(@type)">
@@ -15150,9 +15219,9 @@
15150
15219
  <xsl:template name="fo_inline_bookmark">
15151
15220
  <xsl:param name="bookmark_id"/>
15152
15221
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
15153
- <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>
15222
+ <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>
15154
15223
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
15155
- <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
15224
+ <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>
15156
15225
  </xsl:template>
15157
15226
  <!-- =================== -->
15158
15227
  <!-- End of Index processing -->
@@ -15320,6 +15389,13 @@
15320
15389
  <!-- End Form's elements processing -->
15321
15390
  <!-- =================== -->
15322
15391
 
15392
+ <xsl:attribute-set name="toc-container-style">
15393
+ <xsl:attribute name="role">Sect</xsl:attribute>
15394
+ </xsl:attribute-set>
15395
+
15396
+ <xsl:template name="refine_toc-container-style">
15397
+ </xsl:template>
15398
+
15323
15399
  <xsl:attribute-set name="toc-style">
15324
15400
  </xsl:attribute-set>
15325
15401
 
@@ -16724,6 +16800,13 @@
16724
16800
  <!-- ===================================== -->
16725
16801
  <!-- ===================================== -->
16726
16802
 
16803
+ <xsl:attribute-set name="annex-style">
16804
+ <xsl:attribute name="role">Sect</xsl:attribute>
16805
+ </xsl:attribute-set>
16806
+
16807
+ <xsl:template name="refine_annex-style">
16808
+ </xsl:template>
16809
+
16727
16810
  <xsl:attribute-set name="annex-title-style">
16728
16811
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
16729
16812
  <xsl:attribute name="font-weight">normal</xsl:attribute>
@@ -16733,6 +16816,40 @@
16733
16816
  <xsl:template name="refine_annex-title-style">
16734
16817
  </xsl:template>
16735
16818
 
16819
+ <xsl:template match="mn:annex[normalize-space() != '']">
16820
+ <xsl:choose>
16821
+ <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
16822
+ <fo:block role="SKIP">
16823
+ <xsl:apply-templates/>
16824
+ </fo:block>
16825
+ </xsl:when>
16826
+ <xsl:otherwise>
16827
+
16828
+ <fo:block break-after="page"/>
16829
+ <xsl:call-template name="setNamedDestination"/>
16830
+
16831
+ <fo:block xsl:use-attribute-sets="annex-style">
16832
+
16833
+ <xsl:call-template name="setId"/>
16834
+
16835
+ <!-- <xsl:if test="$namespace = 'iso'"> -->
16836
+ <xsl:call-template name="addTagElementT"/>
16837
+ <!-- </xsl:if> -->
16838
+
16839
+ <xsl:call-template name="setBlockSpanAll"/>
16840
+
16841
+ <xsl:call-template name="refine_annex-style"/>
16842
+
16843
+ <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
16844
+
16845
+ <fo:block role="SKIP">
16846
+ <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
16847
+ </fo:block>
16848
+ </fo:block>
16849
+ </xsl:otherwise>
16850
+ </xsl:choose>
16851
+ </xsl:template>
16852
+
16736
16853
  <xsl:attribute-set name="p-zzSTDTitle1-style">
16737
16854
  <xsl:attribute name="font-family">Arial</xsl:attribute>
16738
16855
  <xsl:attribute name="font-size">23pt</xsl:attribute>
@@ -17298,22 +17415,14 @@
17298
17415
  </xsl:attribute-set>
17299
17416
 
17300
17417
  <xsl:attribute-set name="clause-style">
17301
-
17418
+ <xsl:attribute name="role">Sect</xsl:attribute>
17302
17419
  </xsl:attribute-set>
17303
17420
 
17304
17421
  <xsl:template name="refine_clause-style">
17305
- <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
17306
- <!-- <xsl:if test="$namespace = 'rsd'">
17307
- <xsl:variable name="level">
17308
- <xsl:call-template name="getLevel">
17309
- <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
17310
- </xsl:call-template>
17311
- </xsl:variable>
17312
- <xsl:if test="$level &gt;= 4">
17313
- <xsl:attribute name="margin-left">13mm</xsl:attribute>
17314
- </xsl:if>
17315
- </xsl:if> -->
17316
- </xsl:template>
17422
+ <xsl:if test="parent::mn:copyright-statement">
17423
+ <xsl:attribute name="role">SKIP</xsl:attribute>
17424
+ </xsl:if>
17425
+ </xsl:template> <!-- refine_clause-style -->
17317
17426
 
17318
17427
  <!-- main sections -->
17319
17428
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
@@ -17323,6 +17432,10 @@
17323
17432
 
17324
17433
  <xsl:call-template name="sections_element_style"/>
17325
17434
 
17435
+ <!-- <xsl:if test="$namespace = 'rsd'"> -->
17436
+ <xsl:call-template name="addTagElementT"/>
17437
+ <!-- </xsl:if> -->
17438
+
17326
17439
  <xsl:call-template name="addReviewHelper"/>
17327
17440
 
17328
17441
  <xsl:apply-templates/>
@@ -17393,16 +17506,15 @@
17393
17506
 
17394
17507
  <xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
17395
17508
  <xsl:call-template name="setNamedDestination"/>
17396
- <fo:block>
17397
- <xsl:if test="parent::mn:copyright-statement">
17398
- <xsl:attribute name="role">SKIP</xsl:attribute>
17399
- </xsl:if>
17509
+ <fo:block role="Sect">
17400
17510
 
17401
17511
  <xsl:call-template name="setId"/>
17402
17512
 
17513
+ <xsl:call-template name="addTagElementT"/>
17514
+
17403
17515
  <xsl:call-template name="setBlockSpanAll"/>
17404
17516
 
17405
- <xsl:call-template name="refine_clause_style"/>
17517
+ <xsl:call-template name="refine_clause-style"/>
17406
17518
 
17407
17519
  <xsl:call-template name="addReviewHelper"/>
17408
17520
 
@@ -17410,41 +17522,6 @@
17410
17522
  </fo:block>
17411
17523
  </xsl:template>
17412
17524
 
17413
- <xsl:template name="refine_clause_style">
17414
- </xsl:template> <!-- refine_clause_style -->
17415
-
17416
- <xsl:template match="mn:annex[normalize-space() != '']">
17417
- <xsl:choose>
17418
- <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
17419
- <fo:block>
17420
- <xsl:apply-templates/>
17421
- </fo:block>
17422
- </xsl:when>
17423
- <xsl:otherwise>
17424
-
17425
- <fo:block break-after="page"/>
17426
- <xsl:call-template name="setNamedDestination"/>
17427
-
17428
- <fo:block id="{@id}">
17429
-
17430
- <xsl:call-template name="setBlockSpanAll"/>
17431
-
17432
- <xsl:call-template name="refine_annex_style"/>
17433
-
17434
- </fo:block>
17435
-
17436
- <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
17437
-
17438
- <fo:block>
17439
- <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
17440
- </fo:block>
17441
- </xsl:otherwise>
17442
- </xsl:choose>
17443
- </xsl:template>
17444
-
17445
- <xsl:template name="refine_annex_style">
17446
- </xsl:template>
17447
-
17448
17525
  <xsl:template match="mn:name/text() | mn:fmt-name/text()">
17449
17526
  <!-- 0xA0 to space replacement -->
17450
17527
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
@@ -17560,6 +17637,13 @@
17560
17637
  <xsl:template name="addTagElementT">
17561
17638
  <xsl:variable name="title_">
17562
17639
  <xsl:apply-templates select="mn:fmt-title"/>
17640
+ <xsl:if test="not(mn:fmt-title) and self::mn:term">
17641
+ <name>
17642
+ <xsl:apply-templates select="mn:fmt-name"/>
17643
+ <xsl:text> </xsl:text>
17644
+ <xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
17645
+ </name>
17646
+ </xsl:if>
17563
17647
  </xsl:variable>
17564
17648
  <xsl:variable name="title__">
17565
17649
  <xsl:for-each select="xalan:nodeset($title_)/*/node()">
@@ -17569,7 +17653,7 @@
17569
17653
  </xsl:choose>
17570
17654
  </xsl:for-each>
17571
17655
  </xsl:variable>
17572
- <xsl:variable name="title" select="normalize-space($title__)"/>
17656
+ <xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' &#8232;'), ' '))"/>
17573
17657
  <xsl:if test="$title != ''">
17574
17658
  <xsl:attribute name="fox:title">
17575
17659
  <xsl:if test="ancestor::mn:sections">
@@ -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 Ieee
3
- VERSION = "1.6.15".freeze
3
+ VERSION = "1.6.16".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.15
4
+ version: 1.6.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.