metanorma-jis 1.1.5 → 1.1.6

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: 45a55b154f22819867e78c58cd9c5e6b5df3f2945fe2b5c59ff1ed82da5d0e3b
4
- data.tar.gz: 6395393aa0b1aab58c787cf32f910a6d195d3445ea9ccc678c7ef238732a16f5
3
+ metadata.gz: 2119d2690172777a1cc17607f0e31b1b8f013517149c80788bf6581b1311af89
4
+ data.tar.gz: 9907b1fd89aad50b3c36da002bc7f18ed14d2c017d8b218547253d0881fe8a13
5
5
  SHA512:
6
- metadata.gz: fb5a4666ba5423f52ce5a54018c1af773188121226295c8edcdba55695f9e2734d57f99de637195dab0924a40906f5aec35c1985565b3745947bd1dc02363041
7
- data.tar.gz: 9103861c122a615b858716a4802f6f43836e87c937b417dcd29dd97390a915696848cf7082ba080119b9c5f776ee721102460149a3c38b99013bb5a716a97359
6
+ metadata.gz: fc82ae6e2c5f5d7ec37d2c456c2a2139f6df65b50dddf6cd8d652d06bd6c9ed0b90baa84ad2c9bc6f97bdb4fe1b6e54a307b8a0aea2dccc7cbdea8ea4fad8555
7
+ data.tar.gz: 7b98797cb5b25646b7ddd50d51997a331075a13aa6c4340b68b599114a4a28fddcb9ae65989cc8b5ab380f51aad4f75c84d6515cb0bc828ecc748451b87d91a7
@@ -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
  }
@@ -5705,6 +5705,7 @@
5705
5705
 
5706
5706
  <!-- Characters -->
5707
5707
  <xsl:variable name="linebreak">&#8232;</xsl:variable>
5708
+ <xsl:variable name="em_space"> </xsl:variable>
5708
5709
  <xsl:variable name="tab_zh"> </xsl:variable>
5709
5710
  <xsl:variable name="non_breaking_hyphen">‑</xsl:variable>
5710
5711
  <xsl:variable name="thin_space"> </xsl:variable>
@@ -9212,7 +9213,15 @@
9212
9213
  <!-- END requirement, recommendation, permission table -->
9213
9214
  <!-- ========== -->
9214
9215
 
9216
+ <xsl:attribute-set name="terms-style">
9217
+ <xsl:attribute name="role">Sect</xsl:attribute>
9218
+ </xsl:attribute-set>
9219
+
9220
+ <xsl:template name="refine_terms-style">
9221
+ </xsl:template>
9222
+
9215
9223
  <xsl:attribute-set name="term-style">
9224
+ <xsl:attribute name="role">Sect</xsl:attribute>
9216
9225
  <xsl:attribute name="space-before">12pt</xsl:attribute>
9217
9226
  </xsl:attribute-set> <!-- term-style -->
9218
9227
 
@@ -9317,7 +9326,10 @@
9317
9326
  <xsl:template match="mn:terms">
9318
9327
  <!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
9319
9328
  <xsl:call-template name="setNamedDestination"/>
9320
- <fo:block id="{@id}">
9329
+ <fo:block id="{@id}" xsl:use-attribute-sets="terms-style">
9330
+ <xsl:call-template name="refine_terms-style"/>
9331
+ <xsl:call-template name="addTagElementT"/>
9332
+
9321
9333
  <xsl:apply-templates/>
9322
9334
  </fo:block>
9323
9335
  </xsl:template>
@@ -9326,6 +9338,7 @@
9326
9338
  <xsl:call-template name="setNamedDestination"/>
9327
9339
  <fo:block id="{@id}" xsl:use-attribute-sets="term-style">
9328
9340
  <xsl:call-template name="refine_term-style"/>
9341
+ <xsl:call-template name="addTagElementT"/>
9329
9342
 
9330
9343
  <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
9331
9344
  </fo:block>
@@ -9564,7 +9577,9 @@
9564
9577
 
9565
9578
  <xsl:template match="mn:definitions">
9566
9579
  <xsl:call-template name="setNamedDestination"/>
9567
- <fo:block id="{@id}">
9580
+ <fo:block id="{@id}" role="Sect">
9581
+ <xsl:call-template name="addTagElementT"/>
9582
+
9568
9583
  <xsl:apply-templates/>
9569
9584
  </fo:block>
9570
9585
  </xsl:template>
@@ -9647,6 +9662,7 @@
9647
9662
  <xsl:template match="mn:termexample/mn:p">
9648
9663
  <xsl:variable name="element">inline
9649
9664
 
9665
+ <xsl:value-of select="$example_display_in"/>
9650
9666
  </xsl:variable>
9651
9667
  <xsl:choose>
9652
9668
  <xsl:when test="contains($element, 'block')">
@@ -10001,6 +10017,9 @@
10001
10017
  </xsl:attribute-set><!-- table-note-style -->
10002
10018
 
10003
10019
  <xsl:template name="refine_table-note-style">
10020
+ <xsl:if test="self::mn:note">
10021
+ <xsl:attribute name="role">Note</xsl:attribute>
10022
+ </xsl:if>
10004
10023
  </xsl:template> <!-- refine_table-note-style -->
10005
10024
 
10006
10025
  <xsl:attribute-set name="table-fn-style">
@@ -11292,9 +11311,12 @@
11292
11311
  <xsl:template match="mn:table/*[self::mn:note or self::mn:example] | mn:table/mn:tfoot//*[self::mn:note or self::mn:example]" priority="2">
11293
11312
  <xsl:call-template name="setNamedDestination"/>
11294
11313
  <fo:list-block id="{@id}" xsl:use-attribute-sets="table-note-style" provisional-distance-between-starts="{9 + $text_indent}mm"> <!-- 12 -->
11295
- <fo:list-item>
11296
- <fo:list-item-label start-indent="{$text_indent}mm" end-indent="label-end()">
11314
+ <fo:list-item role="SKIP">
11315
+ <fo:list-item-label start-indent="{$text_indent}mm" end-indent="label-end()" role="SKIP">
11297
11316
  <fo:block>
11317
+ <xsl:if test="self::mn:note">
11318
+ <xsl:attribute name="role">Lbl</xsl:attribute>
11319
+ </xsl:if>
11298
11320
  <xsl:apply-templates select="mn:fmt-name"/>
11299
11321
  </fo:block>
11300
11322
  </fo:list-item-label>
@@ -11311,7 +11333,7 @@
11311
11333
  </xsl:template> <!-- table/note -->
11312
11334
 
11313
11335
  <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">
11314
- <xsl:apply-templates/>
11336
+ <fo:inline role="P"><xsl:apply-templates/></fo:inline>
11315
11337
  </xsl:template>
11316
11338
 
11317
11339
  <!-- ============================ -->
@@ -12271,6 +12293,7 @@
12271
12293
  <!-- ========================== -->
12272
12294
 
12273
12295
  <xsl:attribute-set name="dl-block-style">
12296
+ <xsl:attribute name="role">SKIP</xsl:attribute>
12274
12297
  </xsl:attribute-set>
12275
12298
 
12276
12299
  <xsl:template name="refine_dl-block-style">
@@ -12280,18 +12303,21 @@
12280
12303
  </xsl:template>
12281
12304
 
12282
12305
  <xsl:attribute-set name="dt-row-style">
12306
+ <xsl:attribute name="role">LI</xsl:attribute>
12283
12307
  </xsl:attribute-set>
12284
12308
 
12285
12309
  <xsl:template name="refine_dt-row-style">
12286
12310
  </xsl:template>
12287
12311
 
12288
12312
  <xsl:attribute-set name="dt-cell-style">
12313
+ <xsl:attribute name="role">Lbl</xsl:attribute>
12289
12314
  </xsl:attribute-set>
12290
12315
 
12291
12316
  <xsl:template name="refine_dt-cell-style">
12292
12317
  </xsl:template> <!-- refine_dt-cell-style -->
12293
12318
 
12294
12319
  <xsl:attribute-set name="dt-block-style">
12320
+ <xsl:attribute name="role">SKIP</xsl:attribute>
12295
12321
  <xsl:attribute name="margin-top">0pt</xsl:attribute>
12296
12322
  <xsl:attribute name="line-height">1.5</xsl:attribute>
12297
12323
  </xsl:attribute-set>
@@ -12308,6 +12334,7 @@
12308
12334
  </xsl:template>
12309
12335
 
12310
12336
  <xsl:attribute-set name="dd-cell-style">
12337
+ <xsl:attribute name="role">LBody</xsl:attribute>
12311
12338
  <xsl:attribute name="padding-left">2mm</xsl:attribute>
12312
12339
  </xsl:attribute-set>
12313
12340
 
@@ -12343,7 +12370,7 @@
12343
12370
  <xsl:variable name="isAdded" select="@added"/>
12344
12371
  <xsl:variable name="isDeleted" select="@deleted"/>
12345
12372
  <!-- <dl><xsl:copy-of select="."/></dl> -->
12346
- <fo:block-container xsl:use-attribute-sets="dl-block-style" role="SKIP">
12373
+ <fo:block-container xsl:use-attribute-sets="dl-block-style">
12347
12374
 
12348
12375
  <xsl:call-template name="refine_dl-block-style"/>
12349
12376
 
@@ -12463,7 +12490,7 @@
12463
12490
  <fo:block id="{concat('table_if_start_',@id)}" keep-with-next="always" font-size="1pt">Start table '<xsl:value-of select="@id"/>'.</fo:block>
12464
12491
  </xsl:if>
12465
12492
 
12466
- <fo:table width="95%" table-layout="fixed">
12493
+ <fo:table width="95%" table-layout="fixed" role="L">
12467
12494
 
12468
12495
  <xsl:if test="$isGenerateTableIF = 'true'">
12469
12496
  <xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
@@ -12531,7 +12558,7 @@
12531
12558
  <xsl:with-param name="table_or_dl">dl</xsl:with-param>
12532
12559
  </xsl:apply-templates>
12533
12560
 
12534
- </xsl:when>
12561
+ </xsl:when> <!-- $isGenerateTableIF = 'true' -->
12535
12562
  <xsl:otherwise>
12536
12563
 
12537
12564
  <xsl:variable name="simple-table">
@@ -12586,7 +12613,7 @@
12586
12613
  <xsl:with-param name="isContainsKeepTogetherTag" select="$isContainsKeepTogetherTag"/>
12587
12614
  </xsl:call-template>
12588
12615
 
12589
- <fo:table-body>
12616
+ <fo:table-body role="SKIP">
12590
12617
 
12591
12618
  <!-- DEBUG -->
12592
12619
  <xsl:if test="$table_if_debug = 'true'">
@@ -12801,8 +12828,8 @@
12801
12828
  <td number-columns-spanned="2">NOTE <xsl:apply-templates /> </td>
12802
12829
  </tr>
12803
12830
  -->
12804
- <fo:table-row>
12805
- <fo:table-cell number-columns-spanned="2">
12831
+ <fo:table-row role="SKIP">
12832
+ <fo:table-cell number-columns-spanned="2" role="SKIP">
12806
12833
  <fo:block role="SKIP">
12807
12834
  <xsl:call-template name="note"/>
12808
12835
  </fo:block>
@@ -12866,7 +12893,7 @@
12866
12893
  <xsl:call-template name="refine_dt-cell-style"/>
12867
12894
 
12868
12895
  <xsl:call-template name="setNamedDestination"/>
12869
- <fo:block xsl:use-attribute-sets="dt-block-style" role="SKIP">
12896
+ <fo:block xsl:use-attribute-sets="dt-block-style">
12870
12897
 
12871
12898
  <xsl:choose>
12872
12899
  <xsl:when test="$isGenerateTableIF = 'true'">
@@ -12963,7 +12990,7 @@
12963
12990
  </xsl:variable>
12964
12991
  <xsl:choose>
12965
12992
  <xsl:when test="$is_inline_element_after_where = 'true'">
12966
- <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
12993
+ <fo:inline role="SKIP"><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
12967
12994
  </xsl:when>
12968
12995
  <xsl:otherwise>
12969
12996
  <xsl:apply-templates select="."/>
@@ -13239,6 +13266,7 @@
13239
13266
  <!-- ====== -->
13240
13267
 
13241
13268
  <xsl:attribute-set name="note-style">
13269
+ <xsl:attribute name="role">Note</xsl:attribute>
13242
13270
  <xsl:attribute name="text-indent">0mm</xsl:attribute>
13243
13271
  <xsl:attribute name="space-before">2pt</xsl:attribute>
13244
13272
  </xsl:attribute-set> <!-- note-style -->
@@ -13250,6 +13278,7 @@
13250
13278
  <xsl:variable name="note-body-indent-table">5mm</xsl:variable>
13251
13279
 
13252
13280
  <xsl:attribute-set name="note-name-style">
13281
+ <xsl:attribute name="role">Lbl</xsl:attribute>
13253
13282
  </xsl:attribute-set> <!-- note-name-style -->
13254
13283
 
13255
13284
  <xsl:template name="refine_note-name-style">
@@ -13267,15 +13296,20 @@
13267
13296
  </xsl:attribute-set>
13268
13297
 
13269
13298
  <xsl:template name="refine_table-note-name-style">
13299
+ <xsl:if test="self::mn:note">
13300
+ <xsl:attribute name="role">Lbl</xsl:attribute>
13301
+ </xsl:if>
13270
13302
  </xsl:template> <!-- refine_table-note-name-style -->
13271
13303
 
13272
13304
  <xsl:attribute-set name="note-p-style">
13305
+ <xsl:attribute name="role">P</xsl:attribute>
13273
13306
  </xsl:attribute-set> <!-- note-p-style -->
13274
13307
 
13275
13308
  <xsl:template name="refine_note-p-style">
13276
13309
  </xsl:template>
13277
13310
 
13278
13311
  <xsl:attribute-set name="termnote-style">
13312
+ <xsl:attribute name="role">Note</xsl:attribute>
13279
13313
  <xsl:attribute name="text-indent">0mm</xsl:attribute>
13280
13314
  <xsl:attribute name="space-before">4pt</xsl:attribute>
13281
13315
  <xsl:attribute name="space-after">4pt</xsl:attribute>
@@ -13285,6 +13319,7 @@
13285
13319
  </xsl:template> <!-- refine_termnote-style -->
13286
13320
 
13287
13321
  <xsl:attribute-set name="termnote-name-style">
13322
+ <xsl:attribute name="role">Lbl</xsl:attribute>
13288
13323
  </xsl:attribute-set> <!-- termnote-name-style -->
13289
13324
 
13290
13325
  <xsl:template name="refine_termnote-name-style">
@@ -13294,6 +13329,7 @@
13294
13329
  </xsl:template>
13295
13330
 
13296
13331
  <xsl:attribute-set name="termnote-p-style">
13332
+ <xsl:attribute name="role">P</xsl:attribute>
13297
13333
  </xsl:attribute-set>
13298
13334
 
13299
13335
  <xsl:template name="refine_termnote-p-style">
@@ -13306,7 +13342,7 @@
13306
13342
 
13307
13343
  <xsl:template match="mn:note" name="note">
13308
13344
  <xsl:call-template name="setNamedDestination"/>
13309
- <fo:block xsl:use-attribute-sets="note-style" role="SKIP">
13345
+ <fo:block xsl:use-attribute-sets="note-style">
13310
13346
  <xsl:if test="not(parent::mn:references)">
13311
13347
  <xsl:copy-of select="@id"/>
13312
13348
  </xsl:if>
@@ -13314,7 +13350,7 @@
13314
13350
 
13315
13351
  <xsl:call-template name="refine_note-style"/>
13316
13352
 
13317
- <fo:list-block>
13353
+ <fo:list-block role="SKIP">
13318
13354
  <xsl:attribute name="provisional-distance-between-starts">
13319
13355
  <xsl:choose>
13320
13356
  <!-- if last char is digit -->
@@ -13322,8 +13358,8 @@
13322
13358
  <xsl:otherwise><xsl:value-of select="10 + $text_indent"/>mm</xsl:otherwise>
13323
13359
  </xsl:choose>
13324
13360
  </xsl:attribute>
13325
- <fo:list-item>
13326
- <fo:list-item-label start-indent="{$text_indent}mm" end-indent="label-end()">
13361
+ <fo:list-item role="SKIP">
13362
+ <fo:list-item-label start-indent="{$text_indent}mm" end-indent="label-end()" role="SKIP">
13327
13363
  <xsl:if test="$vertical_layout = 'true'">
13328
13364
  <xsl:attribute name="start-indent">0mm</xsl:attribute>
13329
13365
  </xsl:if>
@@ -13332,8 +13368,8 @@
13332
13368
  <xsl:apply-templates select="mn:fmt-name"/>
13333
13369
  </fo:block>
13334
13370
  </fo:list-item-label>
13335
- <fo:list-item-body start-indent="body-start()">
13336
- <fo:block>
13371
+ <fo:list-item-body start-indent="body-start()" role="SKIP">
13372
+ <fo:block role="SKIP">
13337
13373
  <xsl:apply-templates select="node()[not(self::mn:fmt-name)]"/>
13338
13374
  </fo:block>
13339
13375
  </fo:list-item-body>
@@ -13350,13 +13386,13 @@
13350
13386
  <xsl:variable name="num"><xsl:number/></xsl:variable>
13351
13387
  <xsl:choose>
13352
13388
  <xsl:when test="$num = 1"> <!-- display first NOTE's paragraph in the same line with label NOTE -->
13353
- <fo:inline xsl:use-attribute-sets="note-p-style" role="SKIP">
13389
+ <fo:inline xsl:use-attribute-sets="note-p-style">
13354
13390
  <xsl:call-template name="refine_note-p-style"/>
13355
13391
  <xsl:apply-templates/>
13356
13392
  </fo:inline>
13357
13393
  </xsl:when>
13358
13394
  <xsl:otherwise>
13359
- <fo:block xsl:use-attribute-sets="note-p-style" role="SKIP">
13395
+ <fo:block xsl:use-attribute-sets="note-p-style">
13360
13396
  <xsl:call-template name="refine_note-p-style"/>
13361
13397
  <xsl:apply-templates/>
13362
13398
  </fo:block>
@@ -14097,7 +14133,8 @@
14097
14133
 
14098
14134
  <!-- debug scale='<xsl:value-of select="$scale"/>', indent='<xsl:value-of select="$indent"/>' -->
14099
14135
 
14100
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}" vertical-align="middle">
14136
+ <fo:external-graphic src="{$src}" vertical-align="middle">
14137
+ <xsl:call-template name="addAltText"/>
14101
14138
 
14102
14139
  <xsl:if test="parent::mn:logo"> <!-- publisher's logo -->
14103
14140
  <xsl:attribute name="scaling">uniform</xsl:attribute>
@@ -14161,11 +14198,12 @@
14161
14198
  <xsl:choose>
14162
14199
  <xsl:when test="$isDeleted = 'true'">
14163
14200
  <!-- enclose in svg -->
14164
- <fo:instream-foreign-object fox:alt-text="Image {@alt}">
14201
+ <fo:instream-foreign-object>
14165
14202
  <xsl:attribute name="width">100%</xsl:attribute>
14166
14203
  <xsl:attribute name="content-height">100%</xsl:attribute>
14167
14204
  <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
14168
14205
  <xsl:attribute name="scaling">uniform</xsl:attribute>
14206
+ <xsl:call-template name="addAltText"/>
14169
14207
 
14170
14208
  <xsl:apply-templates select="." mode="cross_image"/>
14171
14209
 
@@ -14181,7 +14219,8 @@
14181
14219
  <xsl:value-of select="concat('scale=', $scale,', indent=', $indent)"/>
14182
14220
  </fo:block> -->
14183
14221
 
14184
- <fo:external-graphic src="{$src}" fox:alt-text="Image {@alt}">
14222
+ <fo:external-graphic src="{$src}">
14223
+ <xsl:call-template name="addAltText"/>
14185
14224
 
14186
14225
  <xsl:choose>
14187
14226
  <!-- default -->
@@ -14241,6 +14280,25 @@
14241
14280
  </xsl:choose>
14242
14281
  </xsl:template>
14243
14282
 
14283
+ <xsl:template name="addAltText">
14284
+ <xsl:param name="name">Image</xsl:param>
14285
+ <xsl:variable name="alt-text">
14286
+ <xsl:choose>
14287
+ <xsl:when test="self::mn:image and normalize-space(@alt) != ''">
14288
+ <xsl:value-of select="@alt"/>
14289
+ </xsl:when>
14290
+ <xsl:when test="normalize-space(../@alt) != ''">
14291
+ <xsl:value-of select="../@alt"/>
14292
+ </xsl:when>
14293
+ <xsl:when test="normalize-space(../mn:fmt-name) != ''">
14294
+ <xsl:value-of select="../mn:fmt-name"/>
14295
+ </xsl:when>
14296
+ <xsl:otherwise><xsl:value-of select="$name"/></xsl:otherwise>
14297
+ </xsl:choose>
14298
+ </xsl:variable>
14299
+ <xsl:attribute name="fox:alt-text"><xsl:value-of select="$alt-text"/></xsl:attribute>
14300
+ </xsl:template>
14301
+
14244
14302
  <xsl:template name="setImageWidth">
14245
14303
  <xsl:if test="@width != '' and @width != 'auto' and @width != 'text-width' and @width != 'full-page-width' and @width != 'narrow'">
14246
14304
  <xsl:value-of select="@width"/>
@@ -14437,6 +14495,9 @@
14437
14495
 
14438
14496
  <xsl:variable name="alt-text">
14439
14497
  <xsl:choose>
14498
+ <xsl:when test="normalize-space(../@alt) != ''">
14499
+ <xsl:value-of select="../@alt"/>
14500
+ </xsl:when>
14440
14501
  <xsl:when test="normalize-space(../mn:fmt-name) != ''">
14441
14502
  <xsl:value-of select="../mn:fmt-name"/>
14442
14503
  </xsl:when>
@@ -16136,12 +16197,14 @@
16136
16197
 
16137
16198
  <!-- admonition -->
16138
16199
  <xsl:attribute-set name="admonition-style">
16200
+ <xsl:attribute name="role">Note</xsl:attribute>
16139
16201
  </xsl:attribute-set> <!-- admonition-style -->
16140
16202
 
16141
16203
  <xsl:template name="refine_admonition-style">
16142
16204
  </xsl:template>
16143
16205
 
16144
16206
  <xsl:attribute-set name="admonition-container-style">
16207
+ <xsl:attribute name="role">SKIP</xsl:attribute>
16145
16208
  <xsl:attribute name="margin-left">0mm</xsl:attribute>
16146
16209
  <xsl:attribute name="margin-right">0mm</xsl:attribute>
16147
16210
  </xsl:attribute-set> <!-- admonition-container-style -->
@@ -16150,6 +16213,7 @@
16150
16213
  </xsl:template>
16151
16214
 
16152
16215
  <xsl:attribute-set name="admonition-name-style">
16216
+ <xsl:attribute name="role">Lbl</xsl:attribute>
16153
16217
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
16154
16218
  </xsl:attribute-set> <!-- admonition-name-style -->
16155
16219
 
@@ -16174,7 +16238,7 @@
16174
16238
  <xsl:call-template name="refine_admonition-style"/>
16175
16239
 
16176
16240
  <xsl:call-template name="setBlockSpanAll"/>
16177
- <fo:block-container xsl:use-attribute-sets="admonition-container-style" role="SKIP">
16241
+ <fo:block-container xsl:use-attribute-sets="admonition-container-style">
16178
16242
 
16179
16243
  <xsl:call-template name="refine_admonition-container-style"/>
16180
16244
  <fo:block-container margin-left="0mm" margin-right="0mm" role="SKIP">
@@ -17003,9 +17067,9 @@
17003
17067
  <xsl:template name="fo_inline_bookmark">
17004
17068
  <xsl:param name="bookmark_id"/>
17005
17069
  <!-- <fo:inline id="{@id}" font-size="1pt"/> -->
17006
- <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>
17070
+ <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>
17007
17071
  <!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
17008
- <xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
17072
+ <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>
17009
17073
  </xsl:template>
17010
17074
  <!-- =================== -->
17011
17075
  <!-- End of Index processing -->
@@ -17173,6 +17237,13 @@
17173
17237
  <!-- End Form's elements processing -->
17174
17238
  <!-- =================== -->
17175
17239
 
17240
+ <xsl:attribute-set name="toc-container-style">
17241
+ <xsl:attribute name="role">Sect</xsl:attribute>
17242
+ </xsl:attribute-set>
17243
+
17244
+ <xsl:template name="refine_toc-container-style">
17245
+ </xsl:template>
17246
+
17176
17247
  <xsl:attribute-set name="toc-style">
17177
17248
  </xsl:attribute-set>
17178
17249
 
@@ -18582,6 +18653,13 @@
18582
18653
  <!-- ===================================== -->
18583
18654
  <!-- ===================================== -->
18584
18655
 
18656
+ <xsl:attribute-set name="annex-style">
18657
+ <xsl:attribute name="role">Sect</xsl:attribute>
18658
+ </xsl:attribute-set>
18659
+
18660
+ <xsl:template name="refine_annex-style">
18661
+ </xsl:template>
18662
+
18585
18663
  <xsl:attribute-set name="annex-title-style">
18586
18664
  <xsl:attribute name="keep-with-next">always</xsl:attribute>
18587
18665
  <xsl:attribute name="font-size">14pt</xsl:attribute>
@@ -18597,6 +18675,40 @@
18597
18675
  </xsl:if>
18598
18676
  </xsl:template>
18599
18677
 
18678
+ <xsl:template match="mn:annex[normalize-space() != '']">
18679
+ <xsl:choose>
18680
+ <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
18681
+ <fo:block role="SKIP">
18682
+ <xsl:apply-templates/>
18683
+ </fo:block>
18684
+ </xsl:when>
18685
+ <xsl:otherwise>
18686
+
18687
+ <fo:block break-after="page"/>
18688
+ <xsl:call-template name="setNamedDestination"/>
18689
+
18690
+ <fo:block xsl:use-attribute-sets="annex-style">
18691
+
18692
+ <xsl:call-template name="setId"/>
18693
+
18694
+ <!-- <xsl:if test="$namespace = 'iso'"> -->
18695
+ <xsl:call-template name="addTagElementT"/>
18696
+ <!-- </xsl:if> -->
18697
+
18698
+ <xsl:call-template name="setBlockSpanAll"/>
18699
+
18700
+ <xsl:call-template name="refine_annex-style"/>
18701
+
18702
+ <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
18703
+
18704
+ <fo:block role="SKIP">
18705
+ <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
18706
+ </fo:block>
18707
+ </fo:block>
18708
+ </xsl:otherwise>
18709
+ </xsl:choose>
18710
+ </xsl:template>
18711
+
18600
18712
  <xsl:attribute-set name="p-zzSTDTitle1-style">
18601
18713
  </xsl:attribute-set>
18602
18714
 
@@ -19133,22 +19245,14 @@
19133
19245
  </xsl:attribute-set>
19134
19246
 
19135
19247
  <xsl:attribute-set name="clause-style">
19136
-
19248
+ <xsl:attribute name="role">Sect</xsl:attribute>
19137
19249
  </xsl:attribute-set>
19138
19250
 
19139
19251
  <xsl:template name="refine_clause-style">
19140
- <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
19141
- <!-- <xsl:if test="$namespace = 'rsd'">
19142
- <xsl:variable name="level">
19143
- <xsl:call-template name="getLevel">
19144
- <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
19145
- </xsl:call-template>
19146
- </xsl:variable>
19147
- <xsl:if test="$level &gt;= 4">
19148
- <xsl:attribute name="margin-left">13mm</xsl:attribute>
19149
- </xsl:if>
19150
- </xsl:if> -->
19151
- </xsl:template>
19252
+ <xsl:if test="parent::mn:copyright-statement">
19253
+ <xsl:attribute name="role">SKIP</xsl:attribute>
19254
+ </xsl:if>
19255
+ </xsl:template> <!-- refine_clause-style -->
19152
19256
 
19153
19257
  <!-- main sections -->
19154
19258
  <xsl:template match="/*/mn:sections/*" name="sections_node" priority="2">
@@ -19158,6 +19262,10 @@
19158
19262
 
19159
19263
  <xsl:call-template name="sections_element_style"/>
19160
19264
 
19265
+ <!-- <xsl:if test="$namespace = 'rsd'"> -->
19266
+ <xsl:call-template name="addTagElementT"/>
19267
+ <!-- </xsl:if> -->
19268
+
19161
19269
  <xsl:call-template name="addReviewHelper"/>
19162
19270
 
19163
19271
  <xsl:apply-templates/>
@@ -19220,16 +19328,15 @@
19220
19328
 
19221
19329
  <xsl:template match="mn:clause[normalize-space() != '' or mn:figure or @id]" name="template_clause"> <!-- if clause isn't empty -->
19222
19330
  <xsl:call-template name="setNamedDestination"/>
19223
- <fo:block>
19224
- <xsl:if test="parent::mn:copyright-statement">
19225
- <xsl:attribute name="role">SKIP</xsl:attribute>
19226
- </xsl:if>
19331
+ <fo:block role="Sect">
19227
19332
 
19228
19333
  <xsl:call-template name="setId"/>
19229
19334
 
19335
+ <xsl:call-template name="addTagElementT"/>
19336
+
19230
19337
  <xsl:call-template name="setBlockSpanAll"/>
19231
19338
 
19232
- <xsl:call-template name="refine_clause_style"/>
19339
+ <xsl:call-template name="refine_clause-style"/>
19233
19340
 
19234
19341
  <xsl:call-template name="addReviewHelper"/>
19235
19342
 
@@ -19237,41 +19344,6 @@
19237
19344
  </fo:block>
19238
19345
  </xsl:template>
19239
19346
 
19240
- <xsl:template name="refine_clause_style">
19241
- </xsl:template> <!-- refine_clause_style -->
19242
-
19243
- <xsl:template match="mn:annex[normalize-space() != '']">
19244
- <xsl:choose>
19245
- <xsl:when test="@continue = 'true'"> <!-- it's using for figure/table on top level for block span -->
19246
- <fo:block>
19247
- <xsl:apply-templates/>
19248
- </fo:block>
19249
- </xsl:when>
19250
- <xsl:otherwise>
19251
-
19252
- <fo:block break-after="page"/>
19253
- <xsl:call-template name="setNamedDestination"/>
19254
-
19255
- <fo:block id="{@id}">
19256
-
19257
- <xsl:call-template name="setBlockSpanAll"/>
19258
-
19259
- <xsl:call-template name="refine_annex_style"/>
19260
-
19261
- </fo:block>
19262
-
19263
- <xsl:apply-templates select="mn:fmt-title[@columns = 1]"/>
19264
-
19265
- <fo:block>
19266
- <xsl:apply-templates select="node()[not(self::mn:fmt-title and @columns = 1)]"/>
19267
- </fo:block>
19268
- </xsl:otherwise>
19269
- </xsl:choose>
19270
- </xsl:template>
19271
-
19272
- <xsl:template name="refine_annex_style">
19273
- </xsl:template>
19274
-
19275
19347
  <xsl:template match="mn:name/text() | mn:fmt-name/text()">
19276
19348
  <!-- 0xA0 to space replacement -->
19277
19349
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
@@ -19387,6 +19459,13 @@
19387
19459
  <xsl:template name="addTagElementT">
19388
19460
  <xsl:variable name="title_">
19389
19461
  <xsl:apply-templates select="mn:fmt-title"/>
19462
+ <xsl:if test="not(mn:fmt-title) and self::mn:term">
19463
+ <name>
19464
+ <xsl:apply-templates select="mn:fmt-name"/>
19465
+ <xsl:text> </xsl:text>
19466
+ <xsl:apply-templates select="mn:fmt-preferred/node()[1]"/>
19467
+ </name>
19468
+ </xsl:if>
19390
19469
  </xsl:variable>
19391
19470
  <xsl:variable name="title__">
19392
19471
  <xsl:for-each select="xalan:nodeset($title_)/*/node()">
@@ -19396,7 +19475,7 @@
19396
19475
  </xsl:choose>
19397
19476
  </xsl:for-each>
19398
19477
  </xsl:variable>
19399
- <xsl:variable name="title" select="normalize-space($title__)"/>
19478
+ <xsl:variable name="title" select="normalize-space(translate($title__, concat($em_space,' &#8232;'), ' '))"/>
19400
19479
  <xsl:if test="$title != ''">
19401
19480
  <xsl:attribute name="fox:title">
19402
19481
  <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,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Jis
3
- VERSION = "1.1.5".freeze
3
+ VERSION = "1.1.6".freeze
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-jis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.