metanorma-m3aawg 1.8.4 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98cf9edfce9695583f5c2efdc8d2931b1260877d0fa167dd00d889632cd769e0
4
- data.tar.gz: a6b2395106f9837e137bdb9e24183c45534420858709af82bf1577a1ee5446dd
3
+ metadata.gz: 78906078cba5ba9056c4b3ee5595c79e1a78edf0923ab5a3a32083893b89a5c6
4
+ data.tar.gz: 246f04fe03f6ed3b482b84af45e52106ff2eb502eac2c5d6eaa8f2b345910cc7
5
5
  SHA512:
6
- metadata.gz: ad3dcafd0323b38225068e9c7f0047431e8ac30e2a11cfd9d0ce9aaca3db7b7d9a1323d6c310b460cb7a6784f013fc2ad3b5549ec0f217b664e06994215ba76f
7
- data.tar.gz: ad5298efc2c57cb4f0040c7524a3ba3af0bf9f7457c46093f39ef56ab351b4b65b2b09965c8e5bb8777d7e89c40904473a0a1b726cde0f7c4a6ce8f1c6439e26
6
+ metadata.gz: ef47eaf6fb629292bec9f5aad105007f04fa8b2a262446e4f2559154414dba75b8d3bb8b0b03f101a14e5cc4ce592a43d2fbfb157a35ce5883bf3ccda84f9ef1
7
+ data.tar.gz: 5e8220678630a3876c4dcd70a58228b00855a2492491e5962cec7a3ebb4f5b9b7bfb1554a25d8a44cb5ae8cb359ecc488b3c65339039c828f6a36d5461acdf4d
@@ -1973,7 +1973,11 @@
1973
1973
  </optional>
1974
1974
  <element name="name">
1975
1975
  <zeroOrMore>
1976
- <ref name="PureTextElement"/>
1976
+ <choice>
1977
+ <ref name="PureTextElement"/>
1978
+ <ref name="stem"/>
1979
+ <ref name="index"/>
1980
+ </choice>
1977
1981
  </zeroOrMore>
1978
1982
  </element>
1979
1983
  <optional>
@@ -1987,7 +1991,7 @@
1987
1991
  </element>
1988
1992
  </optional>
1989
1993
  <optional>
1990
- <element name="grammar-info">
1994
+ <element name="grammar">
1991
1995
  <ref name="Grammar"/>
1992
1996
  </element>
1993
1997
  </optional>
@@ -82,6 +82,12 @@ code *, pre *, tt *, kbd *, samp * {
82
82
  font-family: {{monospacefont}} !important;
83
83
  font-variant-ligatures: none; }
84
84
 
85
+ p code, dt code, li code, label code, legend code, caption code, th code, td code,
86
+ p tt, dt tt, li tt, label tt, legend tt, caption tt, th tt, td tt,
87
+ p kbd, dt kbd, li kbd, label kbd, legend kbd, caption kbd, th kbd, td kbd,
88
+ p samp, dt samp, li samp, label samp, legend samp, caption samp, th samp, td samp {
89
+ font-size: {{monospacefontsize}}; }
90
+
85
91
  article, aside, details, figcaption, figure,
86
92
  footer, header, hgroup, menu, nav, section {
87
93
  display: block; }
@@ -93,6 +99,9 @@ table {
93
99
  h1, h2, h3, h4, h5, h6 {
94
100
  font-family: {{headerfont}}; }
95
101
 
102
+ .h1, .h2, .h3, .h4, .h5, .h6 {
103
+ font-family: {{headerfont}}; }
104
+
96
105
  blockquote, q {
97
106
  quotes: none; }
98
107
  blockquote:before, blockquote:after, q:before, q:after {
@@ -565,25 +574,25 @@ p.document-stage {
565
574
  /*
566
575
  3.1 Titles
567
576
  */
568
- h1, h2, h3, h4, h5, h6 {
577
+ h1, h2, h3, h4, h5, h6, p.h1, .h2, .h3, .h4, .h5, .h6 {
569
578
  font-family: {{headerfont}};
570
579
  color: black;
571
580
  font-weight: 600;
572
581
  margin-top: 2em;
573
582
  margin-bottom: 0.3em; }
574
583
 
575
- h1 {
584
+ h1, .h1 {
576
585
  font-size: 1.4em;
577
586
  text-transform: uppercase;
578
587
  margin-top: 2em; }
579
588
 
580
- h1#content {
589
+ h1#content, #content.h1 {
581
590
  margin-top: 2em; }
582
591
 
583
- h2 {
592
+ h2, .h2 {
584
593
  font-size: 1.3em; }
585
594
 
586
- h3 {
595
+ h3, .h3 {
587
596
  font-size: 1.1em; }
588
597
 
589
598
  @media screen {
@@ -984,7 +993,7 @@ p {
984
993
  margin: 4em -3em 3em -5em;
985
994
  border-bottom: 4px solid #F22E15; }
986
995
 
987
- .section-title h1 {
996
+ .section-title h1, .section-title .h1 {
988
997
  font-size: 2em;
989
998
  font-weight: 800;
990
999
  line-height: 1em;
@@ -993,7 +1002,7 @@ p {
993
1002
  color: white;
994
1003
  text-transform: none; }
995
1004
 
996
- h2 {
1005
+ h2, .h2 {
997
1006
  border-bottom: solid 1px #69C5DC;
998
1007
  color: black; }
999
1008
 
@@ -217,7 +217,7 @@ p.document-stage {
217
217
  3.1 Titles
218
218
  */
219
219
 
220
- h1,h2,h3,h4,h5,h6 {
220
+ h1,h2,h3,h4,h5,h6,p.h1,.h2,.h3,.h4,.h5,.h6 {
221
221
  font-family: $headerfont;
222
222
  color: black;
223
223
  font-weight: 600;
@@ -225,21 +225,21 @@ p.document-stage {
225
225
  margin-bottom: 0.3em;
226
226
  }
227
227
 
228
- h1 {
228
+ h1,.h1 {
229
229
  font-size: 1.4em;
230
230
  text-transform: uppercase;
231
231
  margin-top: 2em;
232
232
  }
233
233
 
234
- h1#content {
234
+ h1#content,.h1#content {
235
235
  margin-top: 2em;
236
236
  }
237
237
 
238
- h2 {
238
+ h2,.h2 {
239
239
  font-size: 1.3em;
240
240
  }
241
241
 
242
- h3 {
242
+ h3,.h3 {
243
243
  font-size: 1.1em;
244
244
  }
245
245
 
@@ -662,7 +662,7 @@ p {
662
662
  }
663
663
 
664
664
 
665
- .section-title h1 {
665
+ .section-title h1, .section-title .h1 {
666
666
  font-size: 2em;
667
667
  font-weight: 800;
668
668
  line-height: 1em;
@@ -672,7 +672,7 @@ p {
672
672
  text-transform: none;
673
673
  }
674
674
 
675
- h2 {
675
+ h2,.h2 {
676
676
  border-bottom: solid 1px #69C5DC;
677
677
  color: black;
678
678
  }
@@ -290,7 +290,7 @@ span.blackgraphtx {
290
290
  div.figure, p.figure {
291
291
  text-align: center; }
292
292
 
293
- h1 {
293
+ h1, .h1 {
294
294
  mso-style-priority: 1;
295
295
  mso-style-unhide: no;
296
296
  mso-style-qformat: yes;
@@ -305,8 +305,6 @@ h1 {
305
305
  line-height: 13.5pt;
306
306
  mso-pagination: widow-orphan;
307
307
  page-break-after: avoid;
308
- mso-outline-level: 1;
309
- mso-list: l1 level1 lfo6;
310
308
  mso-hyphenate: none;
311
309
  tab-stops: 20.0pt list 21.6pt left 28.0pt;
312
310
  font-size: 13.0pt;
@@ -318,6 +316,10 @@ h1 {
318
316
  mso-fareast-language: JA;
319
317
  mso-bidi-font-weight: normal; }
320
318
 
319
+ h1 {
320
+ mso-outline-level: 1;
321
+ mso-list: l1 level1 lfo6; }
322
+
321
323
  h1.Annex {
322
324
  mso-style-priority: 1;
323
325
  mso-style-unhide: no;
@@ -374,7 +376,7 @@ h1.Annex {
374
376
  mso-fareast-language: JA;
375
377
  mso-bidi-font-weight: normal; }
376
378
 
377
- h2 {
379
+ h2, .h2 {
378
380
  mso-style-priority: 2;
379
381
  mso-style-unhide: no;
380
382
  mso-style-qformat: yes;
@@ -390,8 +392,6 @@ h2 {
390
392
  line-height: 12.5pt;
391
393
  mso-pagination: widow-orphan;
392
394
  page-break-after: avoid;
393
- mso-outline-level: 2;
394
- mso-list: l1 level2 lfo6;
395
395
  mso-hyphenate: none;
396
396
  tab-stops: 27.0pt 35.0pt;
397
397
  font-size: 12.0pt;
@@ -402,7 +402,11 @@ h2 {
402
402
  mso-fareast-language: JA;
403
403
  mso-bidi-font-weight: normal; }
404
404
 
405
- h3 {
405
+ h2 {
406
+ mso-outline-level: 2;
407
+ mso-list: l1 level2 lfo6; }
408
+
409
+ h3, .h3 {
406
410
  mso-style-priority: 3;
407
411
  mso-style-unhide: no;
408
412
  mso-style-qformat: yes;
@@ -418,8 +422,6 @@ h3 {
418
422
  line-height: 12.0pt;
419
423
  mso-pagination: widow-orphan;
420
424
  page-break-after: avoid;
421
- mso-outline-level: 3;
422
- mso-list: l1 level3 lfo6;
423
425
  mso-hyphenate: none;
424
426
  tab-stops: list 36.0pt left 44.0pt;
425
427
  font-size: {{normalfontsize}};
@@ -429,7 +431,11 @@ h3 {
429
431
  mso-fareast-language: JA;
430
432
  mso-bidi-font-weight: normal; }
431
433
 
432
- h4 {
434
+ h3 {
435
+ mso-outline-level: 3;
436
+ mso-list: l1 level3 lfo6; }
437
+
438
+ h4, .h4 {
433
439
  mso-style-priority: 4;
434
440
  mso-style-unhide: no;
435
441
  mso-style-qformat: yes;
@@ -445,8 +451,6 @@ h4 {
445
451
  line-height: 12.0pt;
446
452
  mso-pagination: widow-orphan;
447
453
  page-break-after: avoid;
448
- mso-outline-level: 4;
449
- mso-list: l1 level4 lfo6;
450
454
  mso-hyphenate: none;
451
455
  tab-stops: 51.05pt 57.0pt 68.0pt;
452
456
  font-size: {{normalfontsize}};
@@ -456,7 +460,11 @@ h4 {
456
460
  mso-fareast-language: JA;
457
461
  mso-bidi-font-weight: normal; }
458
462
 
459
- h5 {
463
+ h4 {
464
+ mso-outline-level: 4;
465
+ mso-list: l1 level4 lfo6; }
466
+
467
+ h5, .h5 {
460
468
  mso-style-priority: 5;
461
469
  mso-style-unhide: no;
462
470
  mso-style-qformat: yes;
@@ -472,8 +480,6 @@ h5 {
472
480
  line-height: 12.0pt;
473
481
  mso-pagination: widow-orphan;
474
482
  page-break-after: avoid;
475
- mso-outline-level: 5;
476
- mso-list: l1 level5 lfo6;
477
483
  mso-hyphenate: none;
478
484
  tab-stops: 51.05pt list 54.0pt;
479
485
  font-size: {{normalfontsize}};
@@ -483,7 +489,11 @@ h5 {
483
489
  mso-fareast-language: JA;
484
490
  mso-bidi-font-weight: normal; }
485
491
 
486
- h6 {
492
+ h5 {
493
+ mso-outline-level: 5;
494
+ mso-list: l1 level5 lfo6; }
495
+
496
+ h6, .h6 {
487
497
  mso-style-priority: 6;
488
498
  mso-style-unhide: no;
489
499
  mso-style-qformat: yes;
@@ -499,8 +509,6 @@ h6 {
499
509
  line-height: 12.0pt;
500
510
  mso-pagination: widow-orphan;
501
511
  page-break-after: avoid;
502
- mso-outline-level: 6;
503
- mso-list: l1 level6 lfo6;
504
512
  mso-hyphenate: none;
505
513
  tab-stops: 51.05pt list 72.0pt;
506
514
  font-size: {{normalfontsize}};
@@ -510,6 +518,10 @@ h6 {
510
518
  mso-fareast-language: JA;
511
519
  mso-bidi-font-weight: normal; }
512
520
 
521
+ h6 {
522
+ mso-outline-level: 6;
523
+ mso-list: l1 level6 lfo6; }
524
+
513
525
  p.MsoToc1, li.MsoToc1, div.MsoToc1 {
514
526
  mso-style-priority: 39;
515
527
  mso-style-unhide: no;
@@ -264,7 +264,7 @@ div.figure, p.figure
264
264
 
265
265
 
266
266
 
267
- h1
267
+ h1, .h1
268
268
  {mso-style-priority:1;
269
269
  mso-style-unhide:no;
270
270
  mso-style-qformat:yes;
@@ -279,8 +279,6 @@ h1
279
279
  line-height:13.5pt;
280
280
  mso-pagination:widow-orphan;
281
281
  page-break-after:avoid;
282
- mso-outline-level:1;
283
- mso-list:l1 level1 lfo6;
284
282
  mso-hyphenate:none;
285
283
  tab-stops:20.0pt list 21.6pt left 28.0pt;
286
284
  font-size:13.0pt;
@@ -291,6 +289,10 @@ h1
291
289
  mso-ansi-language:EN-GB;
292
290
  mso-fareast-language:JA;
293
291
  mso-bidi-font-weight:normal;}
292
+ h1 {
293
+ mso-outline-level:1;
294
+ mso-list:l1 level1 lfo6;
295
+ }
294
296
  h1.Annex
295
297
  {mso-style-priority:1;
296
298
  mso-style-unhide:no;
@@ -345,7 +347,7 @@ h1.Annex
345
347
  mso-ansi-language:EN-GB;
346
348
  mso-fareast-language:JA;
347
349
  mso-bidi-font-weight:normal;}
348
- h2
350
+ h2, .h2
349
351
  {mso-style-priority:2;
350
352
  mso-style-unhide:no;
351
353
  mso-style-qformat:yes;
@@ -361,8 +363,6 @@ h2
361
363
  line-height:12.5pt;
362
364
  mso-pagination:widow-orphan;
363
365
  page-break-after:avoid;
364
- mso-outline-level:2;
365
- mso-list:l1 level2 lfo6;
366
366
  mso-hyphenate:none;
367
367
  tab-stops:27.0pt 35.0pt;
368
368
  font-size:12.0pt;
@@ -372,7 +372,11 @@ h2
372
372
  mso-ansi-language:EN-GB;
373
373
  mso-fareast-language:JA;
374
374
  mso-bidi-font-weight:normal;}
375
- h3
375
+ h2 {
376
+ mso-outline-level:2;
377
+ mso-list:l1 level2 lfo6;
378
+ }
379
+ h3, .h3
376
380
  {mso-style-priority:3;
377
381
  mso-style-unhide:no;
378
382
  mso-style-qformat:yes;
@@ -388,8 +392,6 @@ h3
388
392
  line-height:12.0pt;
389
393
  mso-pagination:widow-orphan;
390
394
  page-break-after:avoid;
391
- mso-outline-level:3;
392
- mso-list:l1 level3 lfo6;
393
395
  mso-hyphenate:none;
394
396
  tab-stops:list 36.0pt left 44.0pt;
395
397
  font-size:$normalfontsize;
@@ -398,7 +400,11 @@ h3
398
400
  mso-ansi-language:EN-GB;
399
401
  mso-fareast-language:JA;
400
402
  mso-bidi-font-weight:normal;}
401
- h4
403
+ h3 {
404
+ mso-outline-level:3;
405
+ mso-list:l1 level3 lfo6;
406
+ }
407
+ h4, .h4
402
408
  {mso-style-priority:4;
403
409
  mso-style-unhide:no;
404
410
  mso-style-qformat:yes;
@@ -414,8 +420,6 @@ h4
414
420
  line-height:12.0pt;
415
421
  mso-pagination:widow-orphan;
416
422
  page-break-after:avoid;
417
- mso-outline-level:4;
418
- mso-list:l1 level4 lfo6;
419
423
  mso-hyphenate:none;
420
424
  tab-stops:51.05pt 57.0pt 68.0pt;
421
425
  font-size:$normalfontsize;
@@ -424,7 +428,11 @@ h4
424
428
  mso-ansi-language:EN-GB;
425
429
  mso-fareast-language:JA;
426
430
  mso-bidi-font-weight:normal;}
427
- h5
431
+ h4 {
432
+ mso-outline-level:4;
433
+ mso-list:l1 level4 lfo6;
434
+ }
435
+ h5, .h5
428
436
  {mso-style-priority:5;
429
437
  mso-style-unhide:no;
430
438
  mso-style-qformat:yes;
@@ -440,8 +448,6 @@ h5
440
448
  line-height:12.0pt;
441
449
  mso-pagination:widow-orphan;
442
450
  page-break-after:avoid;
443
- mso-outline-level:5;
444
- mso-list:l1 level5 lfo6;
445
451
  mso-hyphenate:none;
446
452
  tab-stops:51.05pt list 54.0pt;
447
453
  font-size:$normalfontsize;
@@ -450,7 +456,11 @@ h5
450
456
  mso-ansi-language:EN-GB;
451
457
  mso-fareast-language:JA;
452
458
  mso-bidi-font-weight:normal;}
453
- h6
459
+ h5 {
460
+ mso-outline-level:5;
461
+ mso-list:l1 level5 lfo6;
462
+ }
463
+ h6, .h6
454
464
  {mso-style-priority:6;
455
465
  mso-style-unhide:no;
456
466
  mso-style-qformat:yes;
@@ -466,8 +476,6 @@ h6
466
476
  line-height:12.0pt;
467
477
  mso-pagination:widow-orphan;
468
478
  page-break-after:avoid;
469
- mso-outline-level:6;
470
- mso-list:l1 level6 lfo6;
471
479
  mso-hyphenate:none;
472
480
  tab-stops:51.05pt list 72.0pt;
473
481
  font-size:$normalfontsize;
@@ -476,6 +484,10 @@ h6
476
484
  mso-ansi-language:EN-GB;
477
485
  mso-fareast-language:JA;
478
486
  mso-bidi-font-weight:normal;}
487
+ h6 {
488
+ mso-outline-level:6;
489
+ mso-list:l1 level6 lfo6;
490
+ }
479
491
  p.MsoToc1, li.MsoToc1, div.MsoToc1
480
492
  {mso-style-priority:39;
481
493
  mso-style-unhide:no;
@@ -403,7 +403,9 @@
403
403
 
404
404
  <xsl:template name="getListItemFormat">
405
405
  <xsl:choose>
406
- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> <!-- &#x2014; dash -->
406
+ <xsl:when test="local-name(..) = 'ul'">
407
+ <xsl:call-template name="setULLabel"/>
408
+ </xsl:when>
407
409
  <xsl:otherwise> <!-- for ordered lists -->
408
410
  <xsl:choose>
409
411
  <xsl:when test="../@type = 'arabic'">
@@ -473,7 +475,7 @@
473
475
  </xsl:template>
474
476
 
475
477
 
476
- <xsl:template match="m3d:title">
478
+ <xsl:template match="m3d:title" name="title">
477
479
 
478
480
  <xsl:variable name="level">
479
481
  <xsl:call-template name="getLevel"/>
@@ -661,10 +663,6 @@
661
663
  <fo:list-item id="{@id}">
662
664
  <fo:list-item-label end-indent="label-end()">
663
665
  <fo:block>
664
- <xsl:if test="local-name(..) = 'ul'">
665
- <xsl:attribute name="font-size">18pt</xsl:attribute>
666
- <xsl:attribute name="margin-top">-0.5mm</xsl:attribute><!-- to vertical align big dot -->
667
- </xsl:if>
668
666
  <xsl:call-template name="getListItemFormat"/>
669
667
  </fo:block>
670
668
  </fo:list-item-label>
@@ -3060,6 +3058,7 @@
3060
3058
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
3061
3059
  <xsl:apply-templates/>
3062
3060
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
3061
+ <xsl:apply-templates select="@language"/>
3063
3062
  <xsl:apply-templates/>
3064
3063
  </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
3065
3064
  <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
@@ -5267,6 +5266,51 @@
5267
5266
  </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
5268
5267
  <!-- 0xA0 to space replacement -->
5269
5268
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
5269
+ </xsl:template><xsl:variable name="ul_labels_">
5270
+
5271
+
5272
+
5273
+
5274
+
5275
+
5276
+
5277
+
5278
+
5279
+ <label font-size="18pt" margin-top="-0.5mm">•</label> <!-- margin-top to vertical align big dot -->
5280
+
5281
+
5282
+
5283
+
5284
+
5285
+
5286
+
5287
+
5288
+
5289
+ </xsl:variable><xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/><xsl:template name="setULLabel">
5290
+ <xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
5291
+ <xsl:variable name="list_level">
5292
+ <xsl:choose>
5293
+ <xsl:when test="$list_level_ &lt;= 3"><xsl:value-of select="$list_level_"/></xsl:when>
5294
+ <xsl:otherwise><xsl:value-of select="$list_level_ mod 3"/></xsl:otherwise>
5295
+ </xsl:choose>
5296
+ </xsl:variable>
5297
+ <xsl:choose>
5298
+ <xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
5299
+ <xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
5300
+ </xsl:when>
5301
+ <xsl:when test="$list_level mod 3 = 0">
5302
+ <xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
5303
+ </xsl:when>
5304
+ <xsl:when test="$list_level mod 2 = 0">
5305
+ <xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
5306
+ </xsl:when>
5307
+ <xsl:otherwise>
5308
+ <xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
5309
+ </xsl:otherwise>
5310
+ </xsl:choose>
5311
+ </xsl:template><xsl:template match="label" mode="ul_labels">
5312
+ <xsl:copy-of select="@*[not(local-name() = 'level')]"/>
5313
+ <xsl:value-of select="."/>
5270
5314
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
5271
5315
  <xsl:choose>
5272
5316
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
@@ -5720,6 +5764,10 @@
5720
5764
  </svg>
5721
5765
  </fo:instream-foreign-object>
5722
5766
  </fo:inline>
5767
+ </xsl:template><xsl:template match="@language">
5768
+ <xsl:copy-of select="."/>
5769
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
5770
+ <xsl:call-template name="title"/>
5723
5771
  </xsl:template><xsl:template name="convertDate">
5724
5772
  <xsl:param name="date"/>
5725
5773
  <xsl:param name="format" select="'short'"/>
@@ -403,7 +403,9 @@
403
403
 
404
404
  <xsl:template name="getListItemFormat">
405
405
  <xsl:choose>
406
- <xsl:when test="local-name(..) = 'ul'">•</xsl:when> <!-- &#x2014; dash -->
406
+ <xsl:when test="local-name(..) = 'ul'">
407
+ <xsl:call-template name="setULLabel"/>
408
+ </xsl:when>
407
409
  <xsl:otherwise> <!-- for ordered lists -->
408
410
  <xsl:choose>
409
411
  <xsl:when test="../@type = 'arabic'">
@@ -473,7 +475,7 @@
473
475
  </xsl:template>
474
476
 
475
477
 
476
- <xsl:template match="m3d:title">
478
+ <xsl:template match="m3d:title" name="title">
477
479
 
478
480
  <xsl:variable name="level">
479
481
  <xsl:call-template name="getLevel"/>
@@ -661,10 +663,6 @@
661
663
  <fo:list-item id="{@id}">
662
664
  <fo:list-item-label end-indent="label-end()">
663
665
  <fo:block>
664
- <xsl:if test="local-name(..) = 'ul'">
665
- <xsl:attribute name="font-size">18pt</xsl:attribute>
666
- <xsl:attribute name="margin-top">-0.5mm</xsl:attribute><!-- to vertical align big dot -->
667
- </xsl:if>
668
666
  <xsl:call-template name="getListItemFormat"/>
669
667
  </fo:block>
670
668
  </fo:list-item-label>
@@ -3060,6 +3058,7 @@
3060
3058
  </xsl:template><xsl:template match="*[local-name()='dd']" mode="dl"/><xsl:template match="*[local-name()='dd']" mode="dl_process">
3061
3059
  <xsl:apply-templates/>
3062
3060
  </xsl:template><xsl:template match="*[local-name()='dd']"/><xsl:template match="*[local-name()='dd']" mode="process">
3061
+ <xsl:apply-templates select="@language"/>
3063
3062
  <xsl:apply-templates/>
3064
3063
  </xsl:template><xsl:template match="*[local-name()='dd']/*[local-name()='p']" mode="inline">
3065
3064
  <fo:inline><xsl:text> </xsl:text><xsl:apply-templates/></fo:inline>
@@ -5267,6 +5266,51 @@
5267
5266
  </xsl:template><xsl:template match="*[local-name() = 'name']/text()">
5268
5267
  <!-- 0xA0 to space replacement -->
5269
5268
  <xsl:value-of select="java:replaceAll(java:java.lang.String.new(.),' ',' ')"/>
5269
+ </xsl:template><xsl:variable name="ul_labels_">
5270
+
5271
+
5272
+
5273
+
5274
+
5275
+
5276
+
5277
+
5278
+
5279
+ <label font-size="18pt" margin-top="-0.5mm">•</label> <!-- margin-top to vertical align big dot -->
5280
+
5281
+
5282
+
5283
+
5284
+
5285
+
5286
+
5287
+
5288
+
5289
+ </xsl:variable><xsl:variable name="ul_labels" select="xalan:nodeset($ul_labels_)"/><xsl:template name="setULLabel">
5290
+ <xsl:variable name="list_level_" select="count(ancestor::*[local-name() = 'ul']) + count(ancestor::*[local-name() = 'ol'])"/>
5291
+ <xsl:variable name="list_level">
5292
+ <xsl:choose>
5293
+ <xsl:when test="$list_level_ &lt;= 3"><xsl:value-of select="$list_level_"/></xsl:when>
5294
+ <xsl:otherwise><xsl:value-of select="$list_level_ mod 3"/></xsl:otherwise>
5295
+ </xsl:choose>
5296
+ </xsl:variable>
5297
+ <xsl:choose>
5298
+ <xsl:when test="$ul_labels/label[not(@level)]"> <!-- one label for all levels -->
5299
+ <xsl:apply-templates select="$ul_labels/label[not(@level)]" mode="ul_labels"/>
5300
+ </xsl:when>
5301
+ <xsl:when test="$list_level mod 3 = 0">
5302
+ <xsl:apply-templates select="$ul_labels/label[@level = 3]" mode="ul_labels"/>
5303
+ </xsl:when>
5304
+ <xsl:when test="$list_level mod 2 = 0">
5305
+ <xsl:apply-templates select="$ul_labels/label[@level = 2]" mode="ul_labels"/>
5306
+ </xsl:when>
5307
+ <xsl:otherwise>
5308
+ <xsl:apply-templates select="$ul_labels/label[@level = 1]" mode="ul_labels"/>
5309
+ </xsl:otherwise>
5310
+ </xsl:choose>
5311
+ </xsl:template><xsl:template match="label" mode="ul_labels">
5312
+ <xsl:copy-of select="@*[not(local-name() = 'level')]"/>
5313
+ <xsl:value-of select="."/>
5270
5314
  </xsl:template><xsl:template match="*[local-name() = 'ul'] | *[local-name() = 'ol']">
5271
5315
  <xsl:choose>
5272
5316
  <xsl:when test="parent::*[local-name() = 'note'] or parent::*[local-name() = 'termnote']">
@@ -5720,6 +5764,10 @@
5720
5764
  </svg>
5721
5765
  </fo:instream-foreign-object>
5722
5766
  </fo:inline>
5767
+ </xsl:template><xsl:template match="@language">
5768
+ <xsl:copy-of select="."/>
5769
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@type = 'floating-title']" priority="4">
5770
+ <xsl:call-template name="title"/>
5723
5771
  </xsl:template><xsl:template name="convertDate">
5724
5772
  <xsl:param name="date"/>
5725
5773
  <xsl:param name="format" select="'short'"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module M3AAWG
3
- VERSION = "1.8.4".freeze
3
+ VERSION = "1.8.5".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-m3aawg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities