metanorma-m3aawg 1.5.0 → 1.5.1

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: 94c7b82480769b8de334650f945711c4db8c1487c569385493cd14b09c158e95
4
- data.tar.gz: 4ed2f0a6757190d584b5bee3027d66c64b7780ebf077c59a8bc77bcb78d8fa67
3
+ metadata.gz: ae84a7856b4d5f36cea484c88fbe01609bf0dc007adb713125e656afc1975120
4
+ data.tar.gz: 3256929fca4ec6087c643f162f03c4b053b57697ad4bd0a17042b0c7a46cf11a
5
5
  SHA512:
6
- metadata.gz: 8537d1bbb48f69310f1f97472ff7d44ccc87cbb5f9425348e5dba8d60522171645371032528a2d058cb051e0556695e6fcecc3c755b14e20ade3a7b07e81f488
7
- data.tar.gz: 14120e590dbab99118c4ad5def4030b5b5537aea4b5fc7bf067b35a23c95884c76803fde6fef29d7597d0708ed52d26f507833d89a7a16dec31dc83dd5587890
6
+ metadata.gz: 908755279322b92655b6ecb755664fba42c7c44f5585ce71d6bb67ff7a0b498b2714e144859faff3e3cb5b725b6b5e6a7118663281f3db7516252d6760e89cf3
7
+ data.tar.gz: 23b30dbf41e94a0ff695905dae40eb31ddea82d49ff540d0b363c853386e1ab6923a4a5a60422c698e27be6dfec1066b795939cf3c94f7a185cb9b2dff2735a8
@@ -18,24 +18,8 @@ module Asciidoctor
18
18
 
19
19
  register_for "m3aawg"
20
20
 
21
- def metadata_author(node, xml)
22
- xml.contributor do |c|
23
- c.role **{ type: "author" }
24
- c.organization do |a|
25
- a.name "Messaging Malware and Mobile Anti-Abuse Working Group"
26
- a.abbreviation "M3AAWG"
27
- end
28
- end
29
- end
30
-
31
- def metadata_publisher(node, xml)
32
- xml.contributor do |c|
33
- c.role **{ type: "publisher" }
34
- c.organization do |a|
35
- a.name "Messaging Malware and Mobile Anti-Abuse Working Group"
36
- a.abbreviation "M3AAWG"
37
- end
38
- end
21
+ def default_publisher
22
+ "Messaging Malware and Mobile Anti-Abuse Working Group"
39
23
  end
40
24
 
41
25
  def metadata_committee(node, xml)
@@ -65,19 +49,6 @@ module Asciidoctor
65
49
  xml.docnumber { |i| i << node.attr("docnumber") }
66
50
  end
67
51
 
68
- def metadata_copyright(node, xml)
69
- from = node.attr("copyright-year") || Date.today.year
70
- xml.copyright do |c|
71
- c.from from
72
- c.owner do |owner|
73
- owner.organization do |o|
74
- o.name "Messaging Malware and Mobile Anti-Abuse Working Group"
75
- o.abbreviation "M3AAWG"
76
- end
77
- end
78
- end
79
- end
80
-
81
52
  def title_validate(root)
82
53
  nil
83
54
  end
@@ -22,21 +22,8 @@
22
22
  -->
23
23
  <xsl:variable name="contents">
24
24
  <contents>
25
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:preface/node()" mode="contents"/>
26
-
27
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:sections/m3d:clause[1]" mode="contents"/> <!-- [@id = '_scope'] -->
28
-
29
- <!-- Normative references -->
30
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:bibliography/m3d:references[1]" mode="contents"/> <!-- [@id = '_normative_references'] -->
31
-
32
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:sections/*[position() &gt; 1]" mode="contents"/> <!-- @id != '_scope' -->
33
-
34
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:annex" mode="contents"/>
35
-
36
- <!-- Bibliography -->
37
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:bibliography/m3d:references[position() &gt; 1]" mode="contents"/> <!-- @id = '_bibliography' -->
38
-
39
-
25
+ <xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
26
+ <xsl:call-template name="processMainSectionsDefault_Contents"/>
40
27
  </contents>
41
28
  </xsl:variable>
42
29
 
@@ -285,29 +272,14 @@
285
272
  </fo:block>
286
273
 
287
274
  <!-- Foreword, Introduction -->
288
- <fo:block>
289
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:preface/node()"/>
275
+ <fo:block>
276
+ <xsl:call-template name="processPrefaceSectionsDefault"/>
290
277
  </fo:block>
291
278
 
292
279
  <fo:block break-after="page"/>
293
280
 
294
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:sections/m3d:clause[1]"/> <!-- Scope -->
295
-
296
- <!-- Normative references -->
297
- <xsl:if test="/m3d:m3d-standard/m3d:bibliography/m3d:references[1]">
298
- <fo:block break-after="page"/>
299
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:bibliography/m3d:references[1]"/>
300
- </xsl:if>
301
-
302
- <!-- Main sections -->
303
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:sections/*[position() &gt; 1]"/>
304
-
305
- <!-- Annex(s) -->
306
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:annex"/>
281
+ <xsl:call-template name="processMainSectionsDefault"/>
307
282
 
308
- <!-- Bibliography -->
309
- <xsl:apply-templates select="/m3d:m3d-standard/m3d:bibliography/m3d:references[position() &gt; 1]"/>
310
-
311
283
  </fo:flow>
312
284
  </fo:page-sequence>
313
285
 
@@ -584,13 +556,13 @@
584
556
  <fo:inline font-size="7pt" keep-with-previous.within-line="always" vertical-align="super">
585
557
  <fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
586
558
  <!-- <xsl:value-of select="@reference"/> -->
587
- <xsl:value-of select="$number + count(//m3d:bibitem[ancestor::m3d:references[@id='_normative_references' or not(preceding-sibling::m3d:references)]]/m3d:note)"/>
559
+ <xsl:value-of select="$number + count(//m3d:bibitem[ancestor::m3d:references[@normative='true' or not(preceding-sibling::m3d:references)]]/m3d:note)"/>
588
560
  </fo:basic-link>
589
561
  </fo:inline>
590
562
  <fo:footnote-body>
591
563
  <fo:block font-size="9pt" margin-bottom="12pt">
592
564
  <fo:inline font-size="6pt" id="footnote_{@reference}_{$number}" keep-with-next.within-line="always" vertical-align="super" padding-right="1mm">
593
- <xsl:value-of select="$number + count(//m3d:bibitem[ancestor::m3d:references[@id='_normative_references' or not(preceding-sibling::m3d:references)]]/m3d:note)"/>
565
+ <xsl:value-of select="$number + count(//m3d:bibitem[ancestor::m3d:references[@normative='true' or not(preceding-sibling::m3d:references)]]/m3d:note)"/>
594
566
  </fo:inline>
595
567
  <xsl:for-each select="m3d:p">
596
568
  <xsl:apply-templates/>
@@ -737,7 +709,7 @@
737
709
 
738
710
 
739
711
  <!-- <xsl:template match="m3d:references[@id = '_bibliography']"> -->
740
- <xsl:template match="m3d:references[position() &gt; 1]">
712
+ <xsl:template match="m3d:references[not(@normative='true')]">
741
713
  <fo:block break-after="page"/>
742
714
  <fo:block id="{@id}">
743
715
  <xsl:apply-templates/>
@@ -752,7 +724,7 @@
752
724
 
753
725
  <!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
754
726
  <!-- <xsl:template match="m3d:references[@id = '_bibliography']/m3d:bibitem"> -->
755
- <xsl:template match="m3d:references[position() &gt; 1]/m3d:bibitem">
727
+ <xsl:template match="m3d:references[not(@normative='true')]/m3d:bibitem">
756
728
  <fo:list-block margin-bottom="12pt" provisional-distance-between-starts="12mm">
757
729
  <fo:list-item>
758
730
  <fo:list-item-label end-indent="label-end()">
@@ -791,10 +763,10 @@
791
763
  </xsl:template>
792
764
 
793
765
  <!-- <xsl:template match="m3d:references[@id = '_bibliography']/m3d:bibitem" mode="contents"/> -->
794
- <xsl:template match="m3d:references[position() &gt; 1]/m3d:bibitem" mode="contents"/>
766
+ <xsl:template match="m3d:references[not(@normative='true')]/m3d:bibitem" mode="contents"/>
795
767
 
796
768
  <!-- <xsl:template match="m3d:references[@id = '_bibliography']/m3d:bibitem/m3d:title"> -->
797
- <xsl:template match="m3d:references[position() &gt; 1]/m3d:bibitem/m3d:title">
769
+ <xsl:template match="m3d:references[not(@normative='true')]/m3d:bibitem/m3d:title">
798
770
  <fo:inline font-style="italic">
799
771
  <xsl:apply-templates/>
800
772
  </fo:inline>
@@ -1051,6 +1023,7 @@
1051
1023
  </xsl:attribute-set><xsl:attribute-set name="example-body-style">
1052
1024
 
1053
1025
 
1026
+
1054
1027
  </xsl:attribute-set><xsl:attribute-set name="example-name-style">
1055
1028
 
1056
1029
 
@@ -1068,6 +1041,8 @@
1068
1041
 
1069
1042
 
1070
1043
 
1044
+
1045
+
1071
1046
 
1072
1047
 
1073
1048
  </xsl:attribute-set><xsl:attribute-set name="example-p-style">
@@ -1085,6 +1060,8 @@
1085
1060
 
1086
1061
 
1087
1062
 
1063
+
1064
+
1088
1065
  </xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
1089
1066
 
1090
1067
 
@@ -1109,6 +1086,7 @@
1109
1086
 
1110
1087
 
1111
1088
 
1089
+
1112
1090
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1113
1091
 
1114
1092
  <xsl:attribute name="font-size">12pt</xsl:attribute>
@@ -1240,7 +1218,7 @@
1240
1218
 
1241
1219
 
1242
1220
 
1243
-
1221
+
1244
1222
  </xsl:attribute-set><xsl:attribute-set name="formula-style">
1245
1223
 
1246
1224
  </xsl:attribute-set><xsl:attribute-set name="image-style">
@@ -1284,7 +1262,47 @@
1284
1262
  </xsl:attribute-set><xsl:attribute-set name="definition-style">
1285
1263
 
1286
1264
 
1287
- </xsl:attribute-set><xsl:template match="text()">
1265
+ </xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
1266
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
1267
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
1268
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
1269
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
1270
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
1271
+ </xsl:template><xsl:template name="processMainSectionsDefault_Contents">
1272
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
1273
+
1274
+ <!-- Normative references -->
1275
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']" mode="contents"/>
1276
+ <!-- Terms and definitions -->
1277
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]" mode="contents"/>
1278
+ <!-- Another main sections -->
1279
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]" mode="contents"/>
1280
+ <xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
1281
+ <!-- Bibliography -->
1282
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]" mode="contents"/>
1283
+ </xsl:template><xsl:template name="processPrefaceSectionsDefault">
1284
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
1285
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
1286
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
1287
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
1288
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
1289
+ </xsl:template><xsl:template name="processMainSectionsDefault">
1290
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
1291
+
1292
+ <xsl:if test="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
1293
+ <fo:block break-after="page"/>
1294
+ </xsl:if>
1295
+
1296
+ <!-- Normative references -->
1297
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
1298
+ <!-- Terms and definitions -->
1299
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='terms'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='terms']] | /*/*[local-name()='sections']/*[local-name()='definitions'] | /*/*[local-name()='sections']/*[local-name()='clause'][.//*[local-name()='definitions']]"/>
1300
+ <!-- Another main sections -->
1301
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name() != 'terms' and local-name() != 'definitions' and not(@type='scope') and not(local-name() = 'clause' and .//*[local-name()='terms']) and not(local-name() = 'clause' and .//*[local-name()='definitions'])]"/>
1302
+ <xsl:apply-templates select="/*/*[local-name()='annex']"/>
1303
+ <!-- Bibliography -->
1304
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
1305
+ </xsl:template><xsl:template match="text()">
1288
1306
  <xsl:value-of select="."/>
1289
1307
  </xsl:template><xsl:template match="*[local-name()='br']">
1290
1308
  <xsl:value-of select="$linebreak"/>
@@ -1363,6 +1381,7 @@
1363
1381
 
1364
1382
 
1365
1383
 
1384
+
1366
1385
  <fo:table id="{@id}" table-layout="fixed" width="100%" margin-left="{$margin-left}mm" margin-right="{$margin-left}mm" table-omit-footer-at-break="true">
1367
1386
 
1368
1387
 
@@ -1375,6 +1394,7 @@
1375
1394
 
1376
1395
 
1377
1396
 
1397
+
1378
1398
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
1379
1399
  <xsl:choose>
1380
1400
  <xsl:when test=". = 1 or . = 0">
@@ -1625,6 +1645,15 @@
1625
1645
  </fo:table-row>
1626
1646
  </xsl:template><xsl:template match="*[local-name()='th']">
1627
1647
  <fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
1648
+ <xsl:attribute name="text-align">
1649
+ <xsl:choose>
1650
+ <xsl:when test="@align">
1651
+ <xsl:value-of select="@align"/>
1652
+ </xsl:when>
1653
+ <xsl:otherwise>center</xsl:otherwise>
1654
+ </xsl:choose>
1655
+ </xsl:attribute>
1656
+
1628
1657
 
1629
1658
 
1630
1659
 
@@ -1649,6 +1678,14 @@
1649
1678
  </fo:table-cell>
1650
1679
  </xsl:template><xsl:template match="*[local-name()='td']">
1651
1680
  <fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
1681
+ <xsl:attribute name="text-align">
1682
+ <xsl:choose>
1683
+ <xsl:when test="@align">
1684
+ <xsl:value-of select="@align"/>
1685
+ </xsl:when>
1686
+ <xsl:otherwise>left</xsl:otherwise>
1687
+ </xsl:choose>
1688
+ </xsl:attribute>
1652
1689
 
1653
1690
 
1654
1691
 
@@ -2845,6 +2882,117 @@
2845
2882
  <fo:block xsl:use-attribute-sets="recommendation-label-style">
2846
2883
  <xsl:apply-templates/>
2847
2884
  </fo:block>
2885
+ </xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
2886
+ <fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
2887
+ <fo:block-container margin-left="0mm" margin-right="0mm">
2888
+ <fo:table id="{@id}" table-layout="fixed" width="100%" border="0pt solid black">
2889
+ <xsl:variable name="simple-table">
2890
+ <xsl:call-template name="getSimpleTable"/>
2891
+ </xsl:variable>
2892
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
2893
+ <xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
2894
+ <fo:table-column column-width="35mm"/>
2895
+ <fo:table-column column-width="115mm"/>
2896
+ </xsl:if>
2897
+ <xsl:apply-templates mode="requirement"/>
2898
+ </fo:table>
2899
+ <!-- fn processing -->
2900
+ <xsl:if test=".//*[local-name() = 'fn']">
2901
+ <xsl:for-each select="*[local-name() = 'tbody']">
2902
+ <fo:block font-size="90%" border-bottom="1.pt solid black">
2903
+ <xsl:call-template name="fn_display"/>
2904
+ </fo:block>
2905
+ </xsl:for-each>
2906
+ </xsl:if>
2907
+ </fo:block-container>
2908
+ </fo:block-container>
2909
+ </xsl:template><xsl:template match="*[local-name()='thead']" mode="requirement">
2910
+ <fo:table-header>
2911
+ <xsl:apply-templates mode="requirement"/>
2912
+ </fo:table-header>
2913
+ </xsl:template><xsl:template match="*[local-name()='tbody']" mode="requirement">
2914
+ <fo:table-body>
2915
+ <xsl:apply-templates mode="requirement"/>
2916
+ </fo:table-body>
2917
+ </xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
2918
+ <fo:table-row>
2919
+ <xsl:apply-templates mode="requirement"/>
2920
+ </fo:table-row>
2921
+ </xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
2922
+ <fo:table-cell text-align="{@align}">
2923
+ <xsl:attribute name="text-align">
2924
+ <xsl:choose>
2925
+ <xsl:when test="@align">
2926
+ <xsl:value-of select="@align"/>
2927
+ </xsl:when>
2928
+ <xsl:otherwise>center</xsl:otherwise>
2929
+ </xsl:choose>
2930
+ </xsl:attribute>
2931
+ <xsl:if test="@colspan">
2932
+ <xsl:attribute name="number-columns-spanned">
2933
+ <xsl:value-of select="@colspan"/>
2934
+ </xsl:attribute>
2935
+ </xsl:if>
2936
+ <xsl:if test="@rowspan">
2937
+ <xsl:attribute name="number-rows-spanned">
2938
+ <xsl:value-of select="@rowspan"/>
2939
+ </xsl:attribute>
2940
+ </xsl:if>
2941
+
2942
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
2943
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
2944
+ <xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
2945
+ </xsl:if>
2946
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
2947
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
2948
+ <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
2949
+ </xsl:if>
2950
+
2951
+ <fo:block>
2952
+ <xsl:apply-templates/>
2953
+ </fo:block>
2954
+ </fo:table-cell>
2955
+ </xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
2956
+ <fo:table-cell text-align="{@align}">
2957
+ <xsl:attribute name="text-align">
2958
+ <xsl:choose>
2959
+ <xsl:when test="@align">
2960
+ <xsl:value-of select="@align"/>
2961
+ </xsl:when>
2962
+ <xsl:otherwise>left</xsl:otherwise>
2963
+ </xsl:choose>
2964
+ </xsl:attribute>
2965
+ <xsl:if test="@colspan">
2966
+ <xsl:attribute name="number-columns-spanned">
2967
+ <xsl:value-of select="@colspan"/>
2968
+ </xsl:attribute>
2969
+ </xsl:if>
2970
+ <xsl:if test="@rowspan">
2971
+ <xsl:attribute name="number-rows-spanned">
2972
+ <xsl:value-of select="@rowspan"/>
2973
+ </xsl:attribute>
2974
+ </xsl:if>
2975
+
2976
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
2977
+ <xsl:attribute name="padding-left">0.5mm</xsl:attribute>
2978
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
2979
+ <xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])"> <!-- 2nd line and below -->
2980
+ <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
2981
+ </xsl:if>
2982
+ </xsl:if>
2983
+
2984
+ <fo:block>
2985
+ <xsl:apply-templates/>
2986
+ </fo:block>
2987
+ </fo:table-cell>
2988
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
2989
+ <fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="4pt">
2990
+ <xsl:apply-templates/>
2991
+ </fo:block>
2992
+ </xsl:template><xsl:template match="*[local-name() = 'p'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
2993
+ <fo:block margin-bottom="10pt">
2994
+ <xsl:apply-templates/>
2995
+ </fo:block>
2848
2996
  </xsl:template><xsl:template match="*[local-name() = 'termexample']">
2849
2997
  <fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
2850
2998
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
@@ -3127,7 +3275,7 @@
3127
3275
  <fo:block id="{@id}">
3128
3276
  <xsl:apply-templates/>
3129
3277
  </fo:block>
3130
- </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@id = '_normative_references' or @id = '_references']">
3278
+ </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
3131
3279
 
3132
3280
  <fo:block id="{@id}">
3133
3281
  <xsl:apply-templates/>
@@ -3379,7 +3527,8 @@
3379
3527
  <xsl:value-of select="document('')//*/namespace::m3d"/>
3380
3528
 
3381
3529
 
3382
-
3530
+
3531
+
3383
3532
  </xsl:variable>
3384
3533
  <xsl:if test="$documentNS != $XSLNS">
3385
3534
  <xsl:message>[WARNING]: Document namespace: '<xsl:value-of select="$documentNS"/>' doesn't equal to xslt namespace '<xsl:value-of select="$XSLNS"/>'</xsl:message>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module M3AAWG
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.1"
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.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-29 00:00:00.000000000 Z
11
+ date: 2020-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities