metanorma-ribose 1.7.6 → 1.7.7

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: 62b740f989d4069f648958b45e7eb94a550fd6b9bba77938fd097763f08bc327
4
- data.tar.gz: 8e4450e474fc622ebcd152328af68181f2044730e7186e6efc6bd9c875ed4d8e
3
+ metadata.gz: 46f41ce9bfaae21b543ffc76f6383e750c0d43844578ae4957b05ba76de8ff20
4
+ data.tar.gz: 974038aac8c2f67fd18842ff899c37ce667472dffc2c677cc8228fcabbe4ed1f
5
5
  SHA512:
6
- metadata.gz: ee05d487fe6866c3e942aff7c0f7fa4058df23ac3b4cfc244236f4791f101f2b16e11d90f060440c262b4890085439de70a72d2be4a5d80391fa4e2d8432ed47
7
- data.tar.gz: f9ef5fde31668bcd03631a13034b1e5f58ae62638ddd2a4e64ed87c83fb5eee066348c54d5026a4104acd949a72e2a4d2909b24577d87176ef762ebef7dbd9fd
6
+ metadata.gz: 75a51cc6ac0b55c7fadd09ef7d708b0fb918eb34383621c7567d601668168648b258659b73ac89b526f2a1d8b38a8c12d3c360c3ad8ee41a11fe1b1bcdaa05a5
7
+ data.tar.gz: 783720abf5092a4b2a423958fe8c2bc1744cf54a1390546b5b662d65e67f9e8e2ab9a6d1ab5170792d0ae52da32de8e6f856aae38f1f3f541784e1121a048a2a
@@ -204,6 +204,18 @@
204
204
  </zeroOrMore>
205
205
  </element>
206
206
  </define>
207
+ <define name="dt">
208
+ <element name="dt">
209
+ <optional>
210
+ <attribute name="id">
211
+ <data type="ID"/>
212
+ </attribute>
213
+ </optional>
214
+ <zeroOrMore>
215
+ <ref name="TextElement"/>
216
+ </zeroOrMore>
217
+ </element>
218
+ </define>
207
219
  <define name="example">
208
220
  <element name="example">
209
221
  <attribute name="id">
@@ -899,7 +911,7 @@
899
911
  </include>
900
912
  <!-- end overrides -->
901
913
  <define name="docsubtype">
902
- <element name="docsubtype">
914
+ <element name="subdoctype">
903
915
  <ref name="DocumentSubtype"/>
904
916
  </element>
905
917
  </define>
@@ -954,6 +966,16 @@
954
966
  </define>
955
967
  <define name="concept">
956
968
  <element name="concept">
969
+ <optional>
970
+ <attribute name="ital">
971
+ <data type="boolean"/>
972
+ </attribute>
973
+ </optional>
974
+ <optional>
975
+ <attribute name="ref">
976
+ <data type="boolean"/>
977
+ </attribute>
978
+ </optional>
957
979
  <optional>
958
980
  <element name="refterm">
959
981
  <zeroOrMore>
@@ -998,6 +1020,9 @@
998
1020
  </attribute>
999
1021
  <attribute name="name"/>
1000
1022
  <attribute name="action"/>
1023
+ <optional>
1024
+ <attribute name="class"/>
1025
+ </optional>
1001
1026
  <zeroOrMore>
1002
1027
  <choice>
1003
1028
  <ref name="TextElement"/>
@@ -1490,26 +1515,26 @@
1490
1515
  <optional>
1491
1516
  <ref name="section-title"/>
1492
1517
  </optional>
1493
- <group>
1518
+ <choice>
1494
1519
  <choice>
1495
1520
  <group>
1496
- <zeroOrMore>
1521
+ <oneOrMore>
1497
1522
  <ref name="BasicBlock"/>
1498
- </zeroOrMore>
1523
+ </oneOrMore>
1499
1524
  <zeroOrMore>
1500
1525
  <ref name="note"/>
1501
1526
  </zeroOrMore>
1502
1527
  </group>
1503
1528
  <ref name="amend"/>
1504
1529
  </choice>
1505
- <zeroOrMore>
1530
+ <oneOrMore>
1506
1531
  <choice>
1507
1532
  <ref name="clause-subsection"/>
1508
1533
  <ref name="terms"/>
1509
1534
  <ref name="definitions"/>
1510
1535
  </choice>
1511
- </zeroOrMore>
1512
- </group>
1536
+ </oneOrMore>
1537
+ </choice>
1513
1538
  </define>
1514
1539
  <define name="Annex-Section">
1515
1540
  <optional>
@@ -2646,6 +2646,7 @@
2646
2646
 
2647
2647
 
2648
2648
 
2649
+
2649
2650
  <!-- fn will be processed inside 'note' processing -->
2650
2651
 
2651
2652
 
@@ -2656,6 +2657,10 @@
2656
2657
  <xsl:attribute name="border">solid black 0pt</xsl:attribute>
2657
2658
 
2658
2659
 
2660
+
2661
+ <!-- for BSI (not PAS) display Notes before footnotes -->
2662
+
2663
+
2659
2664
  <!-- except gb -->
2660
2665
 
2661
2666
  <xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
@@ -2681,6 +2686,10 @@
2681
2686
  <!-- fn processing -->
2682
2687
  <xsl:call-template name="fn_display"/>
2683
2688
 
2689
+
2690
+ <!-- for PAS display Notes after footnotes -->
2691
+
2692
+
2684
2693
  </fo:table-cell>
2685
2694
  </fo:table-row>
2686
2695
  </fo:table-body>
@@ -2741,6 +2750,7 @@
2741
2750
  <xsl:if test="$parent-name = 'tfoot'">
2742
2751
 
2743
2752
 
2753
+
2744
2754
  </xsl:if>
2745
2755
 
2746
2756
 
@@ -2886,11 +2896,16 @@
2886
2896
 
2887
2897
 
2888
2898
 
2899
+
2889
2900
  <xsl:attribute name="font-size">8pt</xsl:attribute>
2890
2901
 
2891
2902
 
2903
+ <!-- Table's note name (NOTE, for example) -->
2904
+
2892
2905
  <fo:inline padding-right="2mm">
2893
2906
 
2907
+
2908
+
2894
2909
 
2895
2910
 
2896
2911
 
@@ -2898,6 +2913,8 @@
2898
2913
 
2899
2914
  </fo:inline>
2900
2915
 
2916
+
2917
+
2901
2918
  <xsl:apply-templates mode="process"/>
2902
2919
  </fo:block>
2903
2920
 
@@ -2917,6 +2934,8 @@
2917
2934
  <xsl:variable name="reference" select="@reference"/>
2918
2935
  <xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
2919
2936
  <fo:block margin-bottom="12pt">
2937
+
2938
+
2920
2939
 
2921
2940
 
2922
2941
 
@@ -2934,6 +2953,7 @@
2934
2953
  <xsl:value-of select="@reference"/>
2935
2954
 
2936
2955
 
2956
+
2937
2957
  </fo:inline>
2938
2958
  <fo:inline>
2939
2959
 
@@ -3087,6 +3107,7 @@
3087
3107
 
3088
3108
  <xsl:value-of select="@reference"/>
3089
3109
 
3110
+
3090
3111
  </fo:basic-link>
3091
3112
  </fo:inline>
3092
3113
  </xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
@@ -4113,6 +4134,7 @@
4113
4134
  </xsl:if>
4114
4135
 
4115
4136
 
4137
+
4116
4138
  <fo:block-container margin-left="0mm">
4117
4139
 
4118
4140
 
@@ -5335,9 +5357,10 @@
5335
5357
 
5336
5358
 
5337
5359
  </xsl:if>
5338
-
5360
+
5361
+
5362
+
5339
5363
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
5340
-
5341
5364
  <xsl:if test="normalize-space(@citeas) = ''">
5342
5365
  <xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
5343
5366
  </xsl:if>
@@ -5345,6 +5368,7 @@
5345
5368
 
5346
5369
 
5347
5370
 
5371
+
5348
5372
  </xsl:if>
5349
5373
 
5350
5374
  <xsl:apply-templates/>
@@ -6258,4 +6282,100 @@
6258
6282
  <xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
6259
6283
  </xsl:choose>
6260
6284
  </xsl:attribute>
6285
+ </xsl:template><xsl:template name="number-to-words">
6286
+ <xsl:param name="number"/>
6287
+ <xsl:param name="first"/>
6288
+ <xsl:if test="$number != ''">
6289
+ <xsl:variable name="words">
6290
+ <words>
6291
+ <word cardinal="1">One-</word>
6292
+ <word ordinal="1">First </word>
6293
+ <word cardinal="2">Two-</word>
6294
+ <word ordinal="2">Second </word>
6295
+ <word cardinal="3">Three-</word>
6296
+ <word ordinal="3">Third </word>
6297
+ <word cardinal="4">Four-</word>
6298
+ <word ordinal="4">Fourth </word>
6299
+ <word cardinal="5">Five-</word>
6300
+ <word ordinal="5">Fifth </word>
6301
+ <word cardinal="6">Six-</word>
6302
+ <word ordinal="6">Sixth </word>
6303
+ <word cardinal="7">Seven-</word>
6304
+ <word ordinal="7">Seventh </word>
6305
+ <word cardinal="8">Eight-</word>
6306
+ <word ordinal="8">Eighth </word>
6307
+ <word cardinal="9">Nine-</word>
6308
+ <word ordinal="9">Ninth </word>
6309
+ <word ordinal="10">Tenth </word>
6310
+ <word ordinal="11">Eleventh </word>
6311
+ <word ordinal="12">Twelfth </word>
6312
+ <word ordinal="13">Thirteenth </word>
6313
+ <word ordinal="14">Fourteenth </word>
6314
+ <word ordinal="15">Fifteenth </word>
6315
+ <word ordinal="16">Sixteenth </word>
6316
+ <word ordinal="17">Seventeenth </word>
6317
+ <word ordinal="18">Eighteenth </word>
6318
+ <word ordinal="19">Nineteenth </word>
6319
+ <word cardinal="20">Twenty-</word>
6320
+ <word ordinal="20">Twentieth </word>
6321
+ <word cardinal="30">Thirty-</word>
6322
+ <word ordinal="30">Thirtieth </word>
6323
+ <word cardinal="40">Forty-</word>
6324
+ <word ordinal="40">Fortieth </word>
6325
+ <word cardinal="50">Fifty-</word>
6326
+ <word ordinal="50">Fiftieth </word>
6327
+ <word cardinal="60">Sixty-</word>
6328
+ <word ordinal="60">Sixtieth </word>
6329
+ <word cardinal="70">Seventy-</word>
6330
+ <word ordinal="70">Seventieth </word>
6331
+ <word cardinal="80">Eighty-</word>
6332
+ <word ordinal="80">Eightieth </word>
6333
+ <word cardinal="90">Ninety-</word>
6334
+ <word ordinal="90">Ninetieth </word>
6335
+ <word cardinal="100">Hundred-</word>
6336
+ <word ordinal="100">Hundredth </word>
6337
+ </words>
6338
+ </xsl:variable>
6339
+
6340
+ <xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
6341
+
6342
+ <xsl:variable name="value">
6343
+ <xsl:choose>
6344
+ <xsl:when test="$ordinal != ''">
6345
+ <xsl:value-of select="$ordinal"/>
6346
+ </xsl:when>
6347
+ <xsl:otherwise>
6348
+ <xsl:choose>
6349
+ <xsl:when test="$number &lt; 100">
6350
+ <xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
6351
+ <xsl:variable name="digit" select="substring($number,2)"/>
6352
+ <xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
6353
+ <xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
6354
+ </xsl:when>
6355
+ <xsl:otherwise>
6356
+ <!-- more 100 -->
6357
+ <xsl:variable name="hundred" select="substring($number,1,1)"/>
6358
+ <xsl:variable name="digits" select="number(substring($number,2))"/>
6359
+ <xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
6360
+ <xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
6361
+ <xsl:call-template name="number-to-words">
6362
+ <xsl:with-param name="number" select="$digits"/>
6363
+ </xsl:call-template>
6364
+ </xsl:otherwise>
6365
+ </xsl:choose>
6366
+ </xsl:otherwise>
6367
+ </xsl:choose>
6368
+ </xsl:variable>
6369
+ <xsl:choose>
6370
+ <xsl:when test="$first = 'true'">
6371
+ <xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
6372
+ <xsl:call-template name="capitalize">
6373
+ <xsl:with-param name="str" select="$value_lc"/>
6374
+ </xsl:call-template>
6375
+ </xsl:when>
6376
+ <xsl:otherwise>
6377
+ <xsl:value-of select="$value"/>
6378
+ </xsl:otherwise>
6379
+ </xsl:choose>
6380
+ </xsl:if>
6261
6381
  </xsl:template></xsl:stylesheet>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "1.7.6".freeze
3
+ VERSION = "1.7.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.6
4
+ version: 1.7.7
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-07-05 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic