metanorma-gb 1.5.1 → 1.5.2

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: a326bf40f513d695ec5b2e5c7dafa563de377ce6c3a1da84f721b60db3f29977
4
- data.tar.gz: 77adddf3a6c12e3d57e40d8dcf9a646794ef16fb6e4abc5a930b31746ae664c9
3
+ metadata.gz: b5662bd2a89d7f19742aff02ee97b11c969ddf2273a4c4c2c14bf132ae98ede0
4
+ data.tar.gz: 310abd14a35050944a66c8235dbcaba7e18f7b098197eaff97cd5c35b0d94072
5
5
  SHA512:
6
- metadata.gz: f221356ae97fc691544be1296f4bcaa48032ee8cce37d629f12e78b00eae4e0a7cce961acad2502101e4650a26b5649f548d8adfedd18e8ac450fada42ac091a
7
- data.tar.gz: a03f8e0e1910bec1450504f40162cf9a5ac6c1537059217ab30f22278653712d0583810c295c583f714a32093fe22eaf615d74c6b3d0e61afc430e93304a14c8
6
+ metadata.gz: 44e55243c2ea223e56533bb754fdcc5fa6ab88e3b0fe53f1f38891309708722f0d772b7bcfd94a1ebbdc398211f78437750f1049939967d642e86f382ad283aa
7
+ data.tar.gz: ecc65cc027fe5cf66e125f156b601187d35ac89d8b0541284960e053da3bf15cd99d87decacfb2d928d2665833ab427850220299efa2022190fd39c2ecdb7b0f
@@ -37,20 +37,8 @@
37
37
  -->
38
38
  <xsl:variable name="contents">
39
39
  <contents>
40
- <xsl:apply-templates select="/gb:gb-standard/gb:preface/node()" mode="contents"/>
41
-
42
- <xsl:apply-templates select="/gb:gb-standard/gb:sections/gb:clause[1]" mode="contents"/> <!-- [@id = '_scope'] -->
43
-
44
- <!-- Normative references -->
45
- <xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[1]" mode="contents"/> <!-- [@id = '_normative_references'] -->
46
-
47
- <xsl:apply-templates select="/gb:gb-standard/gb:sections/*[position() &gt; 1]" mode="contents"/> <!-- @id != '_scope' -->
48
-
49
- <xsl:apply-templates select="/gb:gb-standard/gb:annex" mode="contents"/>
50
-
51
- <!-- Bibliography -->
52
- <xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[position() &gt; 1]" mode="contents"/> <!-- @id = '_bibliography' -->
53
-
40
+ <xsl:call-template name="processPrefaceSectionsDefault_Contents"/>
41
+ <xsl:call-template name="processMainSectionsDefault_Contents"/>
54
42
  </contents>
55
43
  </xsl:variable>
56
44
 
@@ -367,8 +355,8 @@
367
355
  </fo:block-container>
368
356
 
369
357
  <!-- Foreword, Introduction -->
370
- <fo:block line-height="150%">
371
- <xsl:apply-templates select="/gb:gb-standard/gb:preface/node()"/>
358
+ <fo:block line-height="150%">
359
+ <xsl:call-template name="processPrefaceSectionsDefault"/>
372
360
  </fo:block>
373
361
 
374
362
  </fo:flow>
@@ -391,19 +379,7 @@
391
379
  </xsl:call-template>
392
380
  </fo:block>
393
381
 
394
- <xsl:apply-templates select="/gb:gb-standard/gb:sections/gb:clause[1]"/> <!-- Scope -->
395
-
396
- <!-- Normative references -->
397
- <xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[1]"/>
398
-
399
- <!-- Main sections -->
400
- <xsl:apply-templates select="/gb:gb-standard/gb:sections/*[position() &gt; 1]"/>
401
-
402
- <!-- Annex(s) -->
403
- <xsl:apply-templates select="/gb:gb-standard/gb:annex"/>
404
-
405
- <!-- Bibliography -->
406
- <xsl:apply-templates select="/gb:gb-standard/gb:bibliography/gb:references[position() &gt; 1]"/>
382
+ <xsl:call-template name="processMainSectionsDefault"/>
407
383
 
408
384
  </fo:block>
409
385
  </fo:flow>
@@ -603,7 +579,7 @@
603
579
  </xsl:template>
604
580
 
605
581
  <!-- Bibliography -->
606
- <xsl:template match="gb:references[position() &gt; 1]/gb:title">
582
+ <xsl:template match="gb:references[not(@normative='true')]/gb:title">
607
583
  <fo:block font-family="SimHei" text-align="center" margin-top="6pt" margin-bottom="16pt" keep-with-next="always">
608
584
  <xsl:apply-templates/>
609
585
  </fo:block>
@@ -721,17 +697,7 @@
721
697
  <xsl:apply-templates/>
722
698
  </xsl:element>
723
699
  <xsl:if test="$element-name = 'fo:inline' and not(local-name(..) = 'admonition')">
724
- <xsl:value-of select="$linebreak"/>
725
- <!-- <xsl:choose>
726
- <xsl:when test="ancestor::gb:annex">
727
- <xsl:value-of select="$linebreak"/>
728
- </xsl:when>
729
- <xsl:otherwise>
730
- <fo:block margin-bottom="12pt">
731
- <xsl:value-of select="$linebreak"/>
732
- </fo:block>
733
- </xsl:otherwise>
734
- </xsl:choose> -->
700
+ <xsl:value-of select="$linebreak"/>
735
701
  </xsl:if>
736
702
  </xsl:template>
737
703
 
@@ -775,13 +741,13 @@
775
741
  <fo:inline font-size="60%" keep-with-previous.within-line="always" vertical-align="super">
776
742
  <fo:basic-link internal-destination="footnote_{@reference}_{$number}" fox:alt-text="footnote {@reference} {$number}">
777
743
  <!-- <xsl:value-of select="@reference"/> -->
778
- <xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@id='_normative_references' or not(preceding-sibling::gb:references)]]/gb:note)"/>
744
+ <xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@normative='true' or not(preceding-sibling::gb:references)]]/gb:note)"/>
779
745
  </fo:basic-link>
780
746
  </fo:inline>
781
747
  <fo:footnote-body>
782
748
  <fo:block font-size="9pt" margin-bottom="12pt">
783
749
  <fo:inline font-size="50%" id="footnote_{@reference}_{$number}" keep-with-next.within-line="always" vertical-align="super">
784
- <xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@id='_normative_references' or not(preceding-sibling::gb:references)]]/gb:note)"/>
750
+ <xsl:value-of select="$number + count(//gb:bibitem[ancestor::gb:references[@normative='true' or not(preceding-sibling::gb:references)]]/gb:note)"/>
785
751
  </fo:inline>
786
752
  <xsl:for-each select="gb:p">
787
753
  <xsl:apply-templates/>
@@ -965,7 +931,7 @@
965
931
 
966
932
 
967
933
  <!-- <xsl:template match="gb:references[@id = '_bibliography']"> -->
968
- <xsl:template match="gb:references[position() &gt; 1]">
934
+ <xsl:template match="gb:references[not(@normative='true')]">
969
935
  <fo:block break-after="page"/>
970
936
  <fo:block id="{@id}">
971
937
  <xsl:apply-templates/>
@@ -980,7 +946,7 @@
980
946
 
981
947
  <!-- Example: [1] ISO 9:1995, Information and documentation – Transliteration of Cyrillic characters into Latin characters – Slavic and non-Slavic languages -->
982
948
  <!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem"> -->
983
- <xsl:template match="gb:references[position() &gt; 1]/gb:bibitem">
949
+ <xsl:template match="gb:references[not(@normative='true')]/gb:bibitem">
984
950
  <fo:list-block font-size="11pt" margin-bottom="12pt" provisional-distance-between-starts="12mm">
985
951
  <fo:list-item>
986
952
  <fo:list-item-label end-indent="label-end()">
@@ -1019,10 +985,10 @@
1019
985
  </xsl:template>
1020
986
 
1021
987
  <!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem" mode="contents"/> -->
1022
- <xsl:template match="gb:references[position() &gt; 1]/gb:bibitem" mode="contents"/>
988
+ <xsl:template match="gb:references[not(@normative='true')]/gb:bibitem" mode="contents"/>
1023
989
 
1024
990
  <!-- <xsl:template match="gb:references[@id = '_bibliography']/gb:bibitem/gb:title"> -->
1025
- <xsl:template match="gb:references[position() &gt; 1]/gb:bibitem/gb:title">
991
+ <xsl:template match="gb:references[not(@normative='true')]/gb:bibitem/gb:title">
1026
992
  <fo:inline font-style="italic">
1027
993
  <xsl:apply-templates/>
1028
994
  </fo:inline>
@@ -1322,6 +1288,7 @@
1322
1288
  </xsl:attribute-set><xsl:attribute-set name="example-body-style">
1323
1289
 
1324
1290
 
1291
+
1325
1292
  </xsl:attribute-set><xsl:attribute-set name="example-name-style">
1326
1293
 
1327
1294
 
@@ -1338,6 +1305,8 @@
1338
1305
 
1339
1306
 
1340
1307
 
1308
+
1309
+
1341
1310
 
1342
1311
 
1343
1312
  </xsl:attribute-set><xsl:attribute-set name="example-p-style">
@@ -1356,6 +1325,8 @@
1356
1325
 
1357
1326
 
1358
1327
 
1328
+
1329
+
1359
1330
  </xsl:attribute-set><xsl:attribute-set name="termexample-name-style">
1360
1331
 
1361
1332
 
@@ -1381,6 +1352,7 @@
1381
1352
 
1382
1353
 
1383
1354
 
1355
+
1384
1356
  </xsl:attribute-set><xsl:attribute-set name="appendix-style">
1385
1357
 
1386
1358
  <xsl:attribute name="font-size">12pt</xsl:attribute>
@@ -1516,7 +1488,7 @@
1516
1488
 
1517
1489
 
1518
1490
 
1519
-
1491
+
1520
1492
  </xsl:attribute-set><xsl:attribute-set name="formula-style">
1521
1493
 
1522
1494
  </xsl:attribute-set><xsl:attribute-set name="image-style">
@@ -1562,7 +1534,43 @@
1562
1534
  </xsl:attribute-set><xsl:attribute-set name="definition-style">
1563
1535
 
1564
1536
 
1565
- </xsl:attribute-set><xsl:template match="text()">
1537
+ </xsl:attribute-set><xsl:template name="processPrefaceSectionsDefault_Contents">
1538
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']" mode="contents"/>
1539
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']" mode="contents"/>
1540
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']" mode="contents"/>
1541
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']" mode="contents"/>
1542
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']" mode="contents"/>
1543
+ </xsl:template><xsl:template name="processMainSectionsDefault_Contents">
1544
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']" mode="contents"/>
1545
+
1546
+ <!-- Normative references -->
1547
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']" mode="contents"/>
1548
+ <!-- Terms and definitions -->
1549
+ <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"/>
1550
+ <!-- Another main sections -->
1551
+ <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"/>
1552
+ <xsl:apply-templates select="/*/*[local-name()='annex']" mode="contents"/>
1553
+ <!-- Bibliography -->
1554
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]" mode="contents"/>
1555
+ </xsl:template><xsl:template name="processPrefaceSectionsDefault">
1556
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='abstract']"/>
1557
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
1558
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
1559
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements']"/>
1560
+ <xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='acknowledgements']"/>
1561
+ </xsl:template><xsl:template name="processMainSectionsDefault">
1562
+ <xsl:apply-templates select="/*/*[local-name()='sections']/*[local-name()='clause'][@type='scope']"/>
1563
+
1564
+ <!-- Normative references -->
1565
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']"/>
1566
+ <!-- Terms and definitions -->
1567
+ <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']]"/>
1568
+ <!-- Another main sections -->
1569
+ <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'])]"/>
1570
+ <xsl:apply-templates select="/*/*[local-name()='annex']"/>
1571
+ <!-- Bibliography -->
1572
+ <xsl:apply-templates select="/*/*[local-name()='bibliography']/*[local-name()='references'][not(@normative='true')]"/>
1573
+ </xsl:template><xsl:template match="text()">
1566
1574
  <xsl:value-of select="."/>
1567
1575
  </xsl:template><xsl:template match="*[local-name()='br']">
1568
1576
  <xsl:value-of select="$linebreak"/>
@@ -1641,6 +1649,7 @@
1641
1649
 
1642
1650
 
1643
1651
 
1652
+
1644
1653
  <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">
1645
1654
 
1646
1655
 
@@ -1655,6 +1664,7 @@
1655
1664
 
1656
1665
 
1657
1666
 
1667
+
1658
1668
  <xsl:for-each select="xalan:nodeset($colwidths)//column">
1659
1669
  <xsl:choose>
1660
1670
  <xsl:when test=". = 1 or . = 0">
@@ -1910,6 +1920,15 @@
1910
1920
  </fo:table-row>
1911
1921
  </xsl:template><xsl:template match="*[local-name()='th']">
1912
1922
  <fo:table-cell text-align="{@align}" font-weight="bold" border="solid black 1pt" padding-left="1mm" display-align="center">
1923
+ <xsl:attribute name="text-align">
1924
+ <xsl:choose>
1925
+ <xsl:when test="@align">
1926
+ <xsl:value-of select="@align"/>
1927
+ </xsl:when>
1928
+ <xsl:otherwise>center</xsl:otherwise>
1929
+ </xsl:choose>
1930
+ </xsl:attribute>
1931
+
1913
1932
 
1914
1933
 
1915
1934
 
@@ -1934,6 +1953,14 @@
1934
1953
  </fo:table-cell>
1935
1954
  </xsl:template><xsl:template match="*[local-name()='td']">
1936
1955
  <fo:table-cell text-align="{@align}" display-align="center" border="solid black 1pt" padding-left="1mm">
1956
+ <xsl:attribute name="text-align">
1957
+ <xsl:choose>
1958
+ <xsl:when test="@align">
1959
+ <xsl:value-of select="@align"/>
1960
+ </xsl:when>
1961
+ <xsl:otherwise>left</xsl:otherwise>
1962
+ </xsl:choose>
1963
+ </xsl:attribute>
1937
1964
 
1938
1965
 
1939
1966
 
@@ -3184,6 +3211,117 @@
3184
3211
  <fo:block xsl:use-attribute-sets="recommendation-label-style">
3185
3212
  <xsl:apply-templates/>
3186
3213
  </fo:block>
3214
+ </xsl:template><xsl:template match="*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']">
3215
+ <fo:block-container margin-left="0mm" margin-right="0mm" margin-bottom="12pt">
3216
+ <fo:block-container margin-left="0mm" margin-right="0mm">
3217
+ <fo:table id="{@id}" table-layout="fixed" width="100%" border="0pt solid black">
3218
+ <xsl:variable name="simple-table">
3219
+ <xsl:call-template name="getSimpleTable"/>
3220
+ </xsl:variable>
3221
+ <xsl:variable name="cols-count" select="count(xalan:nodeset($simple-table)//tr[1]/td)"/>
3222
+ <xsl:if test="$cols-count = 2 and not(ancestor::*[local-name()='table'])">
3223
+ <fo:table-column column-width="35mm"/>
3224
+ <fo:table-column column-width="115mm"/>
3225
+ </xsl:if>
3226
+ <xsl:apply-templates mode="requirement"/>
3227
+ </fo:table>
3228
+ <!-- fn processing -->
3229
+ <xsl:if test=".//*[local-name() = 'fn']">
3230
+ <xsl:for-each select="*[local-name() = 'tbody']">
3231
+ <fo:block font-size="90%" border-bottom="1.pt solid black">
3232
+ <xsl:call-template name="fn_display"/>
3233
+ </fo:block>
3234
+ </xsl:for-each>
3235
+ </xsl:if>
3236
+ </fo:block-container>
3237
+ </fo:block-container>
3238
+ </xsl:template><xsl:template match="*[local-name()='thead']" mode="requirement">
3239
+ <fo:table-header>
3240
+ <xsl:apply-templates mode="requirement"/>
3241
+ </fo:table-header>
3242
+ </xsl:template><xsl:template match="*[local-name()='tbody']" mode="requirement">
3243
+ <fo:table-body>
3244
+ <xsl:apply-templates mode="requirement"/>
3245
+ </fo:table-body>
3246
+ </xsl:template><xsl:template match="*[local-name()='tr']" mode="requirement">
3247
+ <fo:table-row>
3248
+ <xsl:apply-templates mode="requirement"/>
3249
+ </fo:table-row>
3250
+ </xsl:template><xsl:template match="*[local-name()='th']" mode="requirement">
3251
+ <fo:table-cell text-align="{@align}">
3252
+ <xsl:attribute name="text-align">
3253
+ <xsl:choose>
3254
+ <xsl:when test="@align">
3255
+ <xsl:value-of select="@align"/>
3256
+ </xsl:when>
3257
+ <xsl:otherwise>center</xsl:otherwise>
3258
+ </xsl:choose>
3259
+ </xsl:attribute>
3260
+ <xsl:if test="@colspan">
3261
+ <xsl:attribute name="number-columns-spanned">
3262
+ <xsl:value-of select="@colspan"/>
3263
+ </xsl:attribute>
3264
+ </xsl:if>
3265
+ <xsl:if test="@rowspan">
3266
+ <xsl:attribute name="number-rows-spanned">
3267
+ <xsl:value-of select="@rowspan"/>
3268
+ </xsl:attribute>
3269
+ </xsl:if>
3270
+
3271
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
3272
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
3273
+ <xsl:attribute name="background-color">rgb(165, 165, 165)</xsl:attribute>
3274
+ </xsl:if>
3275
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommendtest'">
3276
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
3277
+ <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
3278
+ </xsl:if>
3279
+
3280
+ <fo:block>
3281
+ <xsl:apply-templates/>
3282
+ </fo:block>
3283
+ </fo:table-cell>
3284
+ </xsl:template><xsl:template match="*[local-name()='td']" mode="requirement">
3285
+ <fo:table-cell text-align="{@align}">
3286
+ <xsl:attribute name="text-align">
3287
+ <xsl:choose>
3288
+ <xsl:when test="@align">
3289
+ <xsl:value-of select="@align"/>
3290
+ </xsl:when>
3291
+ <xsl:otherwise>left</xsl:otherwise>
3292
+ </xsl:choose>
3293
+ </xsl:attribute>
3294
+ <xsl:if test="@colspan">
3295
+ <xsl:attribute name="number-columns-spanned">
3296
+ <xsl:value-of select="@colspan"/>
3297
+ </xsl:attribute>
3298
+ </xsl:if>
3299
+ <xsl:if test="@rowspan">
3300
+ <xsl:attribute name="number-rows-spanned">
3301
+ <xsl:value-of select="@rowspan"/>
3302
+ </xsl:attribute>
3303
+ </xsl:if>
3304
+
3305
+ <xsl:if test="ancestor::*[local-name()='table']/@type = 'recommend'">
3306
+ <xsl:attribute name="padding-left">0.5mm</xsl:attribute>
3307
+ <xsl:attribute name="padding-top">0.5mm</xsl:attribute>
3308
+ <xsl:if test="parent::*[local-name()='tr']/preceding-sibling::*[local-name()='tr'] and not(*[local-name()='table'])"> <!-- 2nd line and below -->
3309
+ <xsl:attribute name="background-color">rgb(201, 201, 201)</xsl:attribute>
3310
+ </xsl:if>
3311
+ </xsl:if>
3312
+
3313
+ <fo:block>
3314
+ <xsl:apply-templates/>
3315
+ </fo:block>
3316
+ </fo:table-cell>
3317
+ </xsl:template><xsl:template match="*[local-name() = 'p'][@class='RecommendationTitle' or @class = 'RecommendationTestTitle']" priority="2">
3318
+ <fo:block font-size="11pt" font-weight="bold" text-align="center" margin-bottom="4pt">
3319
+ <xsl:apply-templates/>
3320
+ </fo:block>
3321
+ </xsl:template><xsl:template match="*[local-name() = 'p'][ancestor::*[local-name() = 'table'][@class = 'recommendation' or @class='requirement' or @class='permission']]">
3322
+ <fo:block margin-bottom="10pt">
3323
+ <xsl:apply-templates/>
3324
+ </fo:block>
3187
3325
  </xsl:template><xsl:template match="*[local-name() = 'termexample']">
3188
3326
  <fo:block id="{@id}" xsl:use-attribute-sets="termexample-style">
3189
3327
  <xsl:apply-templates select="*[local-name()='name']" mode="presentation"/>
@@ -3456,7 +3594,7 @@
3456
3594
  <fo:block id="{@id}">
3457
3595
  <xsl:apply-templates/>
3458
3596
  </fo:block>
3459
- </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@id = '_normative_references' or @id = '_references']">
3597
+ </xsl:template><xsl:template match="/*/*[local-name() = 'bibliography']/*[local-name() = 'references'][@normative='true']">
3460
3598
 
3461
3599
  <fo:block id="{@id}">
3462
3600
  <xsl:apply-templates/>
@@ -3710,7 +3848,8 @@
3710
3848
 
3711
3849
 
3712
3850
  <xsl:value-of select="document('')//*/namespace::gb"/>
3713
-
3851
+
3852
+
3714
3853
  </xsl:variable>
3715
3854
  <xsl:if test="$documentNS != $XSLNS">
3716
3855
  <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 Gb
3
- VERSION = "1.5.1"
3
+ VERSION = "1.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-gb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
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: metanorma-iso