metanorma-m3aawg 1.7.12 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/m3aawg/basicdoc.rng +21 -4
- data/lib/asciidoctor/m3aawg/isodoc.rng +420 -76
- data/lib/asciidoctor/m3aawg/reqt.rng +23 -2
- data/lib/isodoc/m3aawg/html/wordstyle.css +12 -1
- data/lib/isodoc/m3aawg/html/wordstyle.scss +12 -1
- data/lib/isodoc/m3aawg/m3aawg.policy.xsl +47 -12
- data/lib/isodoc/m3aawg/m3aawg.report.xsl +47 -12
- data/lib/metanorma/m3aawg/version.rb +1 -1
- data/metanorma-m3d.gemspec +1 -1
- metadata +5 -5
@@ -58,6 +58,14 @@
|
|
58
58
|
<optional>
|
59
59
|
<attribute name="type"/>
|
60
60
|
</optional>
|
61
|
+
<optional>
|
62
|
+
<attribute name="tag"/>
|
63
|
+
</optional>
|
64
|
+
<optional>
|
65
|
+
<attribute name="multilingual-rendering">
|
66
|
+
<ref name="MultilingualRenderingType"/>
|
67
|
+
</attribute>
|
68
|
+
</optional>
|
61
69
|
<optional>
|
62
70
|
<ref name="reqtitle"/>
|
63
71
|
</optional>
|
@@ -101,7 +109,9 @@
|
|
101
109
|
</define>
|
102
110
|
<define name="label">
|
103
111
|
<element name="label">
|
104
|
-
<
|
112
|
+
<oneOrMore>
|
113
|
+
<ref name="TextElement"/>
|
114
|
+
</oneOrMore>
|
105
115
|
</element>
|
106
116
|
</define>
|
107
117
|
<define name="subject">
|
@@ -175,8 +185,19 @@
|
|
175
185
|
<data type="boolean"/>
|
176
186
|
</attribute>
|
177
187
|
</optional>
|
188
|
+
<optional>
|
189
|
+
<attribute name="tag"/>
|
190
|
+
</optional>
|
191
|
+
<optional>
|
192
|
+
<attribute name="multilingual-rendering">
|
193
|
+
<ref name="MultilingualRenderingType"/>
|
194
|
+
</attribute>
|
195
|
+
</optional>
|
178
196
|
<oneOrMore>
|
179
|
-
<
|
197
|
+
<choice>
|
198
|
+
<ref name="BasicBlock"/>
|
199
|
+
<ref name="component"/>
|
200
|
+
</choice>
|
180
201
|
</oneOrMore>
|
181
202
|
</define>
|
182
203
|
<define name="ObligationType">
|
@@ -152,6 +152,7 @@ p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxS
|
|
152
152
|
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText {
|
153
153
|
mso-style-noshow: yes;
|
154
154
|
mso-style-unhide: no;
|
155
|
+
mso-style-name: "Comment Text";
|
155
156
|
margin: 0cm;
|
156
157
|
margin-bottom: .0001pt;
|
157
158
|
mso-pagination: widow-orphan;
|
@@ -293,6 +294,7 @@ h1 {
|
|
293
294
|
mso-style-priority: 1;
|
294
295
|
mso-style-unhide: no;
|
295
296
|
mso-style-qformat: yes;
|
297
|
+
mso-style-name: "Heading 1";
|
296
298
|
mso-style-link: "Heading 1 Char";
|
297
299
|
mso-style-next: Normal;
|
298
300
|
margin-top: 13.5pt;
|
@@ -376,6 +378,7 @@ h2 {
|
|
376
378
|
mso-style-priority: 2;
|
377
379
|
mso-style-unhide: no;
|
378
380
|
mso-style-qformat: yes;
|
381
|
+
mso-style-name: "Heading 2";
|
379
382
|
mso-style-parent: "Heading 1";
|
380
383
|
mso-style-link: "Heading 2 Char";
|
381
384
|
mso-style-next: Normal;
|
@@ -403,7 +406,8 @@ h3 {
|
|
403
406
|
mso-style-priority: 3;
|
404
407
|
mso-style-unhide: no;
|
405
408
|
mso-style-qformat: yes;
|
406
|
-
mso-style-
|
409
|
+
mso-style-name: "Heading 3";
|
410
|
+
mso-style-parent: "Heading 2";
|
407
411
|
mso-style-link: "Heading 3 Char";
|
408
412
|
mso-style-next: Normal;
|
409
413
|
margin-top: 3.0pt;
|
@@ -429,6 +433,7 @@ h4 {
|
|
429
433
|
mso-style-priority: 4;
|
430
434
|
mso-style-unhide: no;
|
431
435
|
mso-style-qformat: yes;
|
436
|
+
mso-style-name: "Heading 4";
|
432
437
|
mso-style-parent: "Heading 3";
|
433
438
|
mso-style-link: "Heading 4 Char";
|
434
439
|
mso-style-next: Normal;
|
@@ -455,6 +460,7 @@ h5 {
|
|
455
460
|
mso-style-priority: 5;
|
456
461
|
mso-style-unhide: no;
|
457
462
|
mso-style-qformat: yes;
|
463
|
+
mso-style-name: "Heading 5";
|
458
464
|
mso-style-parent: "Heading 4";
|
459
465
|
mso-style-link: "Heading 5 Char";
|
460
466
|
mso-style-next: Normal;
|
@@ -481,6 +487,7 @@ h6 {
|
|
481
487
|
mso-style-priority: 6;
|
482
488
|
mso-style-unhide: no;
|
483
489
|
mso-style-qformat: yes;
|
490
|
+
mso-style-name: "Heading 6";
|
484
491
|
mso-style-parent: "Heading 5";
|
485
492
|
mso-style-link: "Heading 6 Char";
|
486
493
|
mso-style-next: Normal;
|
@@ -506,6 +513,7 @@ h6 {
|
|
506
513
|
p.MsoToc1, li.MsoToc1, div.MsoToc1 {
|
507
514
|
mso-style-priority: 39;
|
508
515
|
mso-style-unhide: no;
|
516
|
+
mso-style-name: "TOC 1";
|
509
517
|
mso-style-next: Normal;
|
510
518
|
margin-top: 6.0pt;
|
511
519
|
margin-right: 25.0pt;
|
@@ -529,6 +537,7 @@ p.MsoToc2, li.MsoToc2, div.MsoToc2 {
|
|
529
537
|
mso-style-noshow: yes;
|
530
538
|
mso-style-priority: 39;
|
531
539
|
mso-style-unhide: no;
|
540
|
+
mso-style-name: "TOC 2";
|
532
541
|
mso-style-parent: "TOC 1";
|
533
542
|
mso-style-next: Normal;
|
534
543
|
margin-top: 0cm;
|
@@ -553,6 +562,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3 {
|
|
553
562
|
mso-style-noshow: yes;
|
554
563
|
mso-style-priority: 39;
|
555
564
|
mso-style-unhide: no;
|
565
|
+
mso-style-name: "TOC 3";
|
556
566
|
mso-style-parent: "TOC 2";
|
557
567
|
mso-style-next: Normal;
|
558
568
|
margin-top: 0cm;
|
@@ -575,6 +585,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3 {
|
|
575
585
|
|
576
586
|
span.MsoFootnoteReference {
|
577
587
|
mso-style-priority: 99;
|
588
|
+
mso-style-name: "Footnote Reference";
|
578
589
|
vertical-align: super; }
|
579
590
|
|
580
591
|
p.MsoFootnoteText, li.MsoFootnoteText, div.MsoFootnoteText {
|
@@ -138,6 +138,7 @@ p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxS
|
|
138
138
|
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText
|
139
139
|
{mso-style-noshow:yes;
|
140
140
|
mso-style-unhide:no;
|
141
|
+
mso-style-name:"Comment Text";
|
141
142
|
margin:0cm;
|
142
143
|
margin-bottom:.0001pt;
|
143
144
|
mso-pagination:widow-orphan;
|
@@ -267,6 +268,7 @@ h1
|
|
267
268
|
{mso-style-priority:1;
|
268
269
|
mso-style-unhide:no;
|
269
270
|
mso-style-qformat:yes;
|
271
|
+
mso-style-name:"Heading 1";
|
270
272
|
mso-style-link:"Heading 1 Char";
|
271
273
|
mso-style-next:Normal;
|
272
274
|
margin-top:13.5pt;
|
@@ -347,6 +349,7 @@ h2
|
|
347
349
|
{mso-style-priority:2;
|
348
350
|
mso-style-unhide:no;
|
349
351
|
mso-style-qformat:yes;
|
352
|
+
mso-style-name:"Heading 2";
|
350
353
|
mso-style-parent:"Heading 1";
|
351
354
|
mso-style-link:"Heading 2 Char";
|
352
355
|
mso-style-next:Normal;
|
@@ -373,7 +376,8 @@ h3
|
|
373
376
|
{mso-style-priority:3;
|
374
377
|
mso-style-unhide:no;
|
375
378
|
mso-style-qformat:yes;
|
376
|
-
mso-style-
|
379
|
+
mso-style-name:"Heading 3";
|
380
|
+
mso-style-parent:"Heading 2";
|
377
381
|
mso-style-link:"Heading 3 Char";
|
378
382
|
mso-style-next:Normal;
|
379
383
|
margin-top:3.0pt;
|
@@ -398,6 +402,7 @@ h4
|
|
398
402
|
{mso-style-priority:4;
|
399
403
|
mso-style-unhide:no;
|
400
404
|
mso-style-qformat:yes;
|
405
|
+
mso-style-name:"Heading 4";
|
401
406
|
mso-style-parent:"Heading 3";
|
402
407
|
mso-style-link:"Heading 4 Char";
|
403
408
|
mso-style-next:Normal;
|
@@ -423,6 +428,7 @@ h5
|
|
423
428
|
{mso-style-priority:5;
|
424
429
|
mso-style-unhide:no;
|
425
430
|
mso-style-qformat:yes;
|
431
|
+
mso-style-name:"Heading 5";
|
426
432
|
mso-style-parent:"Heading 4";
|
427
433
|
mso-style-link:"Heading 5 Char";
|
428
434
|
mso-style-next:Normal;
|
@@ -448,6 +454,7 @@ h6
|
|
448
454
|
{mso-style-priority:6;
|
449
455
|
mso-style-unhide:no;
|
450
456
|
mso-style-qformat:yes;
|
457
|
+
mso-style-name:"Heading 6";
|
451
458
|
mso-style-parent:"Heading 5";
|
452
459
|
mso-style-link:"Heading 6 Char";
|
453
460
|
mso-style-next:Normal;
|
@@ -472,6 +479,7 @@ h6
|
|
472
479
|
p.MsoToc1, li.MsoToc1, div.MsoToc1
|
473
480
|
{mso-style-priority:39;
|
474
481
|
mso-style-unhide:no;
|
482
|
+
mso-style-name:"TOC 1";
|
475
483
|
mso-style-next:Normal;
|
476
484
|
margin-top:6.0pt;
|
477
485
|
margin-right:25.0pt;
|
@@ -494,6 +502,7 @@ p.MsoToc2, li.MsoToc2, div.MsoToc2
|
|
494
502
|
{mso-style-noshow:yes;
|
495
503
|
mso-style-priority:39;
|
496
504
|
mso-style-unhide:no;
|
505
|
+
mso-style-name:"TOC 2";
|
497
506
|
mso-style-parent:"TOC 1";
|
498
507
|
mso-style-next:Normal;
|
499
508
|
margin-top:0cm;
|
@@ -517,6 +526,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3
|
|
517
526
|
{mso-style-noshow:yes;
|
518
527
|
mso-style-priority:39;
|
519
528
|
mso-style-unhide:no;
|
529
|
+
mso-style-name:"TOC 3";
|
520
530
|
mso-style-parent:"TOC 2";
|
521
531
|
mso-style-next:Normal;
|
522
532
|
margin-top:0cm;
|
@@ -538,6 +548,7 @@ p.MsoToc3, li.MsoToc3, div.MsoToc3
|
|
538
548
|
mso-bidi-font-weight:normal;}
|
539
549
|
span.MsoFootnoteReference
|
540
550
|
{mso-style-priority:99;
|
551
|
+
mso-style-name:"Footnote Reference";
|
541
552
|
vertical-align:super;}
|
542
553
|
p.MsoFootnoteText, li.MsoFootnoteText, div.MsoFootnoteText
|
543
554
|
{mso-style-noshow:yes;
|
@@ -995,6 +995,8 @@
|
|
995
995
|
|
996
996
|
<title-list-figures lang="en">List of Figures</title-list-figures>
|
997
997
|
|
998
|
+
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
999
|
+
|
998
1000
|
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
999
1001
|
|
1000
1002
|
<title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
|
@@ -1285,6 +1287,11 @@
|
|
1285
1287
|
|
1286
1288
|
|
1287
1289
|
|
1290
|
+
</xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
|
1291
|
+
|
1292
|
+
|
1293
|
+
|
1294
|
+
|
1288
1295
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1289
1296
|
|
1290
1297
|
|
@@ -2369,9 +2376,8 @@
|
|
2369
2376
|
|
2370
2377
|
<!-- Table's note name (NOTE, for example) -->
|
2371
2378
|
|
2372
|
-
<fo:inline padding-right="2mm">
|
2379
|
+
<fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
|
2373
2380
|
|
2374
|
-
|
2375
2381
|
|
2376
2382
|
|
2377
2383
|
|
@@ -2878,6 +2884,7 @@
|
|
2878
2884
|
<fo:table-cell>
|
2879
2885
|
|
2880
2886
|
<fo:block margin-top="6pt">
|
2887
|
+
<xsl:copy-of select="@id"/>
|
2881
2888
|
|
2882
2889
|
|
2883
2890
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -2986,6 +2993,8 @@
|
|
2986
2993
|
<xsl:if test="$font-size != ''">
|
2987
2994
|
<xsl:attribute name="font-size">
|
2988
2995
|
<xsl:choose>
|
2996
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
2997
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
2989
2998
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
2990
2999
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
2991
3000
|
</xsl:choose>
|
@@ -3718,10 +3727,12 @@
|
|
3718
3727
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
3719
3728
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
3720
3729
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
3730
|
+
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
3721
3731
|
<fo:block id="{@id}">
|
3722
3732
|
<xsl:apply-templates/>
|
3723
3733
|
</fo:block>
|
3724
3734
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3735
|
+
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
3725
3736
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3726
3737
|
|
3727
3738
|
|
@@ -3729,7 +3740,9 @@
|
|
3729
3740
|
<xsl:apply-templates select="m3d:name" mode="presentation"/>
|
3730
3741
|
</fo:block>
|
3731
3742
|
|
3732
|
-
|
3743
|
+
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
3744
|
+
|
3745
|
+
</xsl:if>
|
3733
3746
|
<xsl:apply-templates/>
|
3734
3747
|
</fo:block>
|
3735
3748
|
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
|
@@ -3791,6 +3804,7 @@
|
|
3791
3804
|
<xsl:otherwise>
|
3792
3805
|
<fo:block xsl:use-attribute-sets="image-style">
|
3793
3806
|
|
3807
|
+
|
3794
3808
|
<xsl:variable name="src">
|
3795
3809
|
<xsl:call-template name="image_src"/>
|
3796
3810
|
</xsl:variable>
|
@@ -4157,7 +4171,7 @@
|
|
4157
4171
|
<xsl:text> </xsl:text>
|
4158
4172
|
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
|
4159
4173
|
<xsl:value-of select="."/>
|
4160
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']
|
4174
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
|
4161
4175
|
<xsl:value-of select="."/>
|
4162
4176
|
</xsl:template><xsl:template match="node()" mode="contents">
|
4163
4177
|
<xsl:apply-templates mode="contents"/>
|
@@ -4255,6 +4269,8 @@
|
|
4255
4269
|
|
4256
4270
|
|
4257
4271
|
|
4272
|
+
|
4273
|
+
|
4258
4274
|
</fo:bookmark-tree>
|
4259
4275
|
</xsl:if>
|
4260
4276
|
</xsl:template><xsl:template name="insertFigureBookmarks">
|
@@ -4448,12 +4464,16 @@
|
|
4448
4464
|
<xsl:if test="$font-size != ''">
|
4449
4465
|
<xsl:attribute name="font-size">
|
4450
4466
|
<xsl:choose>
|
4467
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4468
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4451
4469
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4452
4470
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4453
4471
|
</xsl:choose>
|
4454
4472
|
</xsl:attribute>
|
4455
4473
|
</xsl:if>
|
4456
4474
|
|
4475
|
+
|
4476
|
+
|
4457
4477
|
<xsl:apply-templates/>
|
4458
4478
|
</fo:block>
|
4459
4479
|
|
@@ -4696,7 +4716,8 @@
|
|
4696
4716
|
</fo:block>
|
4697
4717
|
</fo:table-cell>
|
4698
4718
|
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
4699
|
-
<fo:block font-size="11pt"
|
4719
|
+
<fo:block font-size="11pt">
|
4720
|
+
|
4700
4721
|
<xsl:apply-templates/>
|
4701
4722
|
</fo:block>
|
4702
4723
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
@@ -4801,6 +4822,7 @@
|
|
4801
4822
|
</xsl:choose>
|
4802
4823
|
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
4803
4824
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4825
|
+
|
4804
4826
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4805
4827
|
<xsl:variable name="termsource_text">
|
4806
4828
|
<xsl:apply-templates/>
|
@@ -4811,13 +4833,15 @@
|
|
4811
4833
|
<!-- <xsl:apply-templates /> -->
|
4812
4834
|
<xsl:copy-of select="$termsource_text"/>
|
4813
4835
|
</xsl:when>
|
4814
|
-
<xsl:otherwise>
|
4836
|
+
<xsl:otherwise>
|
4837
|
+
|
4815
4838
|
|
4816
4839
|
<xsl:text>[</xsl:text>
|
4817
4840
|
|
4818
4841
|
<!-- <xsl:apply-templates /> -->
|
4819
4842
|
<xsl:copy-of select="$termsource_text"/>
|
4820
4843
|
|
4844
|
+
|
4821
4845
|
<xsl:text>]</xsl:text>
|
4822
4846
|
|
4823
4847
|
</xsl:otherwise>
|
@@ -4884,12 +4908,20 @@
|
|
4884
4908
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
4885
4909
|
<xsl:text>— </xsl:text>
|
4886
4910
|
<xsl:apply-templates/>
|
4887
|
-
</xsl:template><xsl:
|
4911
|
+
</xsl:template><xsl:variable name="bibitem_hidden_">
|
4912
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
4913
|
+
<xsl:copy-of select="."/>
|
4914
|
+
</xsl:for-each>
|
4915
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
|
4916
|
+
<xsl:copy-of select="."/>
|
4917
|
+
</xsl:for-each>
|
4918
|
+
</xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
4888
4919
|
|
4889
4920
|
<xsl:variable name="bibitemid">
|
4890
4921
|
<xsl:choose>
|
4891
|
-
<xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"
|
4892
|
-
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"
|
4922
|
+
<!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
|
4923
|
+
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
|
4924
|
+
<xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
|
4893
4925
|
<xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
|
4894
4926
|
</xsl:choose>
|
4895
4927
|
</xsl:variable>
|
@@ -4981,10 +5013,10 @@
|
|
4981
5013
|
</xsl:choose>
|
4982
5014
|
</xsl:variable>
|
4983
5015
|
|
4984
|
-
<xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
5016
|
+
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
4985
5017
|
|
4986
5018
|
<xsl:choose>
|
4987
|
-
<xsl:when test="$
|
5019
|
+
<xsl:when test="$lang = 'zh'">
|
4988
5020
|
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
4989
5021
|
</xsl:when>
|
4990
5022
|
<xsl:when test="../../@inline-header = 'true'">
|
@@ -5971,12 +6003,15 @@
|
|
5971
6003
|
<xsl:param name="default">left</xsl:param>
|
5972
6004
|
<xsl:attribute name="text-align">
|
5973
6005
|
<xsl:choose>
|
5974
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
6006
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
5975
6007
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
5976
6008
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
5977
6009
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5978
6010
|
</xsl:choose>
|
5979
6011
|
</xsl:attribute>
|
6012
|
+
<xsl:if test="@align = 'indent'">
|
6013
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
6014
|
+
</xsl:if>
|
5980
6015
|
</xsl:template><xsl:template name="number-to-words">
|
5981
6016
|
<xsl:param name="number"/>
|
5982
6017
|
<xsl:param name="first"/>
|
@@ -995,6 +995,8 @@
|
|
995
995
|
|
996
996
|
<title-list-figures lang="en">List of Figures</title-list-figures>
|
997
997
|
|
998
|
+
<title-table-figures lang="en">Table of Figures</title-table-figures>
|
999
|
+
|
998
1000
|
<title-list-recommendations lang="en">List of Recommendations</title-list-recommendations>
|
999
1001
|
|
1000
1002
|
<title-acknowledgements lang="en">Acknowledgements</title-acknowledgements>
|
@@ -1285,6 +1287,11 @@
|
|
1285
1287
|
|
1286
1288
|
|
1287
1289
|
|
1290
|
+
</xsl:attribute-set><xsl:attribute-set name="table-note-name-style">
|
1291
|
+
|
1292
|
+
|
1293
|
+
|
1294
|
+
|
1288
1295
|
</xsl:attribute-set><xsl:attribute-set name="note-p-style">
|
1289
1296
|
|
1290
1297
|
|
@@ -2369,9 +2376,8 @@
|
|
2369
2376
|
|
2370
2377
|
<!-- Table's note name (NOTE, for example) -->
|
2371
2378
|
|
2372
|
-
<fo:inline padding-right="2mm">
|
2379
|
+
<fo:inline padding-right="2mm" xsl:use-attribute-sets="table-note-name-style">
|
2373
2380
|
|
2374
|
-
|
2375
2381
|
|
2376
2382
|
|
2377
2383
|
|
@@ -2878,6 +2884,7 @@
|
|
2878
2884
|
<fo:table-cell>
|
2879
2885
|
|
2880
2886
|
<fo:block margin-top="6pt">
|
2887
|
+
<xsl:copy-of select="@id"/>
|
2881
2888
|
|
2882
2889
|
|
2883
2890
|
<xsl:if test="normalize-space($key_iso) = 'true'">
|
@@ -2986,6 +2993,8 @@
|
|
2986
2993
|
<xsl:if test="$font-size != ''">
|
2987
2994
|
<xsl:attribute name="font-size">
|
2988
2995
|
<xsl:choose>
|
2996
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
2997
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
2989
2998
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
2990
2999
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
2991
3000
|
</xsl:choose>
|
@@ -3718,10 +3727,12 @@
|
|
3718
3727
|
</xsl:template><xsl:template match="*[local-name() = 'termnote']/*[local-name() = 'p']">
|
3719
3728
|
<fo:inline><xsl:apply-templates/></fo:inline>
|
3720
3729
|
</xsl:template><xsl:template match="*[local-name() = 'terms']">
|
3730
|
+
<!-- <xsl:message>'terms' <xsl:number/> processing...</xsl:message> -->
|
3721
3731
|
<fo:block id="{@id}">
|
3722
3732
|
<xsl:apply-templates/>
|
3723
3733
|
</fo:block>
|
3724
3734
|
</xsl:template><xsl:template match="*[local-name() = 'term']">
|
3735
|
+
<!-- <xsl:message>'term' <xsl:number/> processing, name=<xsl:value-of select="iso:name"/>, preferred=<xsl:value-of select="iso:preferred"/>...</xsl:message> -->
|
3725
3736
|
<fo:block id="{@id}" xsl:use-attribute-sets="term-style">
|
3726
3737
|
|
3727
3738
|
|
@@ -3729,7 +3740,9 @@
|
|
3729
3740
|
<xsl:apply-templates select="m3d:name" mode="presentation"/>
|
3730
3741
|
</fo:block>
|
3731
3742
|
|
3732
|
-
|
3743
|
+
<xsl:if test="parent::*[local-name() = 'term'] and not(preceding-sibling::*[local-name() = 'term'])">
|
3744
|
+
|
3745
|
+
</xsl:if>
|
3733
3746
|
<xsl:apply-templates/>
|
3734
3747
|
</fo:block>
|
3735
3748
|
</xsl:template><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']"/><xsl:template match="*[local-name() = 'term']/*[local-name() = 'name']" mode="presentation">
|
@@ -3791,6 +3804,7 @@
|
|
3791
3804
|
<xsl:otherwise>
|
3792
3805
|
<fo:block xsl:use-attribute-sets="image-style">
|
3793
3806
|
|
3807
|
+
|
3794
3808
|
<xsl:variable name="src">
|
3795
3809
|
<xsl:call-template name="image_src"/>
|
3796
3810
|
</xsl:variable>
|
@@ -4157,7 +4171,7 @@
|
|
4157
4171
|
<xsl:text> </xsl:text>
|
4158
4172
|
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']/text()" mode="contents" priority="2">
|
4159
4173
|
<xsl:value-of select="."/>
|
4160
|
-
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']
|
4174
|
+
</xsl:template><xsl:template match="*[local-name() = 'figure' or local-name() = 'table' or local-name() = 'permission' or local-name() = 'recommendation' or local-name() = 'requirement']/*[local-name() = 'name']//text()" mode="bookmarks" priority="2">
|
4161
4175
|
<xsl:value-of select="."/>
|
4162
4176
|
</xsl:template><xsl:template match="node()" mode="contents">
|
4163
4177
|
<xsl:apply-templates mode="contents"/>
|
@@ -4255,6 +4269,8 @@
|
|
4255
4269
|
|
4256
4270
|
|
4257
4271
|
|
4272
|
+
|
4273
|
+
|
4258
4274
|
</fo:bookmark-tree>
|
4259
4275
|
</xsl:if>
|
4260
4276
|
</xsl:template><xsl:template name="insertFigureBookmarks">
|
@@ -4448,12 +4464,16 @@
|
|
4448
4464
|
<xsl:if test="$font-size != ''">
|
4449
4465
|
<xsl:attribute name="font-size">
|
4450
4466
|
<xsl:choose>
|
4467
|
+
<xsl:when test="$font-size = 'inherit'"><xsl:value-of select="$font-size"/></xsl:when>
|
4468
|
+
<xsl:when test="contains($font-size, '%')"><xsl:value-of select="$font-size"/></xsl:when>
|
4451
4469
|
<xsl:when test="ancestor::*[local-name()='note']"><xsl:value-of select="$font-size * 0.91"/>pt</xsl:when>
|
4452
4470
|
<xsl:otherwise><xsl:value-of select="$font-size"/>pt</xsl:otherwise>
|
4453
4471
|
</xsl:choose>
|
4454
4472
|
</xsl:attribute>
|
4455
4473
|
</xsl:if>
|
4456
4474
|
|
4475
|
+
|
4476
|
+
|
4457
4477
|
<xsl:apply-templates/>
|
4458
4478
|
</fo:block>
|
4459
4479
|
|
@@ -4696,7 +4716,8 @@
|
|
4696
4716
|
</fo:block>
|
4697
4717
|
</fo:table-cell>
|
4698
4718
|
</xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
|
4699
|
-
<fo:block font-size="11pt"
|
4719
|
+
<fo:block font-size="11pt">
|
4720
|
+
|
4700
4721
|
<xsl:apply-templates/>
|
4701
4722
|
</fo:block>
|
4702
4723
|
</xsl:template><xsl:template match="*[local-name() = 'p2'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
|
@@ -4801,6 +4822,7 @@
|
|
4801
4822
|
</xsl:choose>
|
4802
4823
|
</xsl:template><xsl:template match="*[local-name() = 'termsource']" name="termsource">
|
4803
4824
|
<fo:block xsl:use-attribute-sets="termsource-style">
|
4825
|
+
|
4804
4826
|
<!-- Example: [SOURCE: ISO 5127:2017, 3.1.6.02] -->
|
4805
4827
|
<xsl:variable name="termsource_text">
|
4806
4828
|
<xsl:apply-templates/>
|
@@ -4811,13 +4833,15 @@
|
|
4811
4833
|
<!-- <xsl:apply-templates /> -->
|
4812
4834
|
<xsl:copy-of select="$termsource_text"/>
|
4813
4835
|
</xsl:when>
|
4814
|
-
<xsl:otherwise>
|
4836
|
+
<xsl:otherwise>
|
4837
|
+
|
4815
4838
|
|
4816
4839
|
<xsl:text>[</xsl:text>
|
4817
4840
|
|
4818
4841
|
<!-- <xsl:apply-templates /> -->
|
4819
4842
|
<xsl:copy-of select="$termsource_text"/>
|
4820
4843
|
|
4844
|
+
|
4821
4845
|
<xsl:text>]</xsl:text>
|
4822
4846
|
|
4823
4847
|
</xsl:otherwise>
|
@@ -4884,12 +4908,20 @@
|
|
4884
4908
|
</xsl:template><xsl:template match="*[local-name() = 'author']">
|
4885
4909
|
<xsl:text>— </xsl:text>
|
4886
4910
|
<xsl:apply-templates/>
|
4887
|
-
</xsl:template><xsl:
|
4911
|
+
</xsl:template><xsl:variable name="bibitem_hidden_">
|
4912
|
+
<xsl:for-each select="//*[local-name() = 'bibitem'][@hidden='true']">
|
4913
|
+
<xsl:copy-of select="."/>
|
4914
|
+
</xsl:for-each>
|
4915
|
+
<xsl:for-each select="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem']">
|
4916
|
+
<xsl:copy-of select="."/>
|
4917
|
+
</xsl:for-each>
|
4918
|
+
</xsl:variable><xsl:variable name="bibitem_hidden" select="xalan:nodeset($bibitem_hidden_)"/><xsl:template match="*[local-name() = 'eref']">
|
4888
4919
|
|
4889
4920
|
<xsl:variable name="bibitemid">
|
4890
4921
|
<xsl:choose>
|
4891
|
-
<xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"
|
4892
|
-
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"
|
4922
|
+
<!-- <xsl:when test="//*[local-name() = 'bibitem'][@hidden='true' and @id = current()/@bibitemid]"></xsl:when>
|
4923
|
+
<xsl:when test="//*[local-name() = 'references'][@hidden='true']/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"></xsl:when> -->
|
4924
|
+
<xsl:when test="$bibitem_hidden/*[local-name() = 'bibitem'][@id = current()/@bibitemid]"/>
|
4893
4925
|
<xsl:otherwise><xsl:value-of select="@bibitemid"/></xsl:otherwise>
|
4894
4926
|
</xsl:choose>
|
4895
4927
|
</xsl:variable>
|
@@ -4981,10 +5013,10 @@
|
|
4981
5013
|
</xsl:choose>
|
4982
5014
|
</xsl:variable>
|
4983
5015
|
|
4984
|
-
<xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/>
|
5016
|
+
<!-- <xsl:variable name="language" select="//*[local-name()='bibdata']//*[local-name()='language']"/> -->
|
4985
5017
|
|
4986
5018
|
<xsl:choose>
|
4987
|
-
<xsl:when test="$
|
5019
|
+
<xsl:when test="$lang = 'zh'">
|
4988
5020
|
<fo:inline><xsl:value-of select="$tab_zh"/></fo:inline>
|
4989
5021
|
</xsl:when>
|
4990
5022
|
<xsl:when test="../../@inline-header = 'true'">
|
@@ -5971,12 +6003,15 @@
|
|
5971
6003
|
<xsl:param name="default">left</xsl:param>
|
5972
6004
|
<xsl:attribute name="text-align">
|
5973
6005
|
<xsl:choose>
|
5974
|
-
<xsl:when test="@align"><xsl:value-of select="@align"/></xsl:when>
|
6006
|
+
<xsl:when test="@align and not(@align = 'indent')"><xsl:value-of select="@align"/></xsl:when>
|
5975
6007
|
<xsl:when test="ancestor::*[local-name() = 'td']/@align"><xsl:value-of select="ancestor::*[local-name() = 'td']/@align"/></xsl:when>
|
5976
6008
|
<xsl:when test="ancestor::*[local-name() = 'th']/@align"><xsl:value-of select="ancestor::*[local-name() = 'th']/@align"/></xsl:when>
|
5977
6009
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5978
6010
|
</xsl:choose>
|
5979
6011
|
</xsl:attribute>
|
6012
|
+
<xsl:if test="@align = 'indent'">
|
6013
|
+
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
6014
|
+
</xsl:if>
|
5980
6015
|
</xsl:template><xsl:template name="number-to-words">
|
5981
6016
|
<xsl:param name="number"/>
|
5982
6017
|
<xsl:param name="first"/>
|
data/metanorma-m3d.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
32
32
|
spec.add_dependency "thread_safe"
|
33
33
|
|
34
|
-
spec.add_dependency "metanorma-generic", "~> 1.
|
34
|
+
spec.add_dependency "metanorma-generic", "~> 1.11.0"
|
35
35
|
|
36
36
|
spec.add_development_dependency "byebug", "~> 9.1"
|
37
37
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|