metanorma-m3aawg 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 +4 -4
- data/lib/asciidoctor/m3aawg/isodoc.rng +32 -7
- data/lib/isodoc/m3aawg/m3aawg.policy.xsl +122 -2
- data/lib/isodoc/m3aawg/m3aawg.report.xsl +122 -2
- data/lib/metanorma/m3aawg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2718623699a961654c3aed9430df2beef16e18544c4a463c44b3d4afce02ca5
|
4
|
+
data.tar.gz: 808dfb9d60aa697293bae880182d7b8273690d8183c2a35796b6c6f8ec977c6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c3dc4dc5c01a4fab285b83833576f0b6093cf89a60398656d74db052868fd4cd05bf0187b924a32528d053a861e815c2af1d84de2dbded88fd003f34ab3eb5d
|
7
|
+
data.tar.gz: 501946f4453f523780a5894ca0662f70d35f1a3b21f134e6e9b8407507317b86ebb4ef9ccb1b6651b09b4939f83757fea6f06aafd7682cbc73a0da70d20be0ac
|
@@ -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="
|
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
|
-
<
|
1518
|
+
<choice>
|
1494
1519
|
<choice>
|
1495
1520
|
<group>
|
1496
|
-
<
|
1521
|
+
<oneOrMore>
|
1497
1522
|
<ref name="BasicBlock"/>
|
1498
|
-
</
|
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
|
-
<
|
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
|
-
</
|
1512
|
-
</
|
1536
|
+
</oneOrMore>
|
1537
|
+
</choice>
|
1513
1538
|
</define>
|
1514
1539
|
<define name="Annex-Section">
|
1515
1540
|
<optional>
|
@@ -2036,6 +2036,7 @@
|
|
2036
2036
|
|
2037
2037
|
|
2038
2038
|
|
2039
|
+
|
2039
2040
|
<!-- fn will be processed inside 'note' processing -->
|
2040
2041
|
|
2041
2042
|
|
@@ -2044,6 +2045,10 @@
|
|
2044
2045
|
|
2045
2046
|
|
2046
2047
|
|
2048
|
+
|
2049
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
2050
|
+
|
2051
|
+
|
2047
2052
|
<!-- except gb -->
|
2048
2053
|
|
2049
2054
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -2069,6 +2074,10 @@
|
|
2069
2074
|
<!-- fn processing -->
|
2070
2075
|
<xsl:call-template name="fn_display"/>
|
2071
2076
|
|
2077
|
+
|
2078
|
+
<!-- for PAS display Notes after footnotes -->
|
2079
|
+
|
2080
|
+
|
2072
2081
|
</fo:table-cell>
|
2073
2082
|
</fo:table-row>
|
2074
2083
|
</fo:table-body>
|
@@ -2126,6 +2135,7 @@
|
|
2126
2135
|
<xsl:if test="$parent-name = 'tfoot'">
|
2127
2136
|
|
2128
2137
|
|
2138
|
+
|
2129
2139
|
</xsl:if>
|
2130
2140
|
|
2131
2141
|
|
@@ -2254,8 +2264,13 @@
|
|
2254
2264
|
|
2255
2265
|
|
2256
2266
|
|
2267
|
+
|
2268
|
+
<!-- Table's note name (NOTE, for example) -->
|
2269
|
+
|
2257
2270
|
<fo:inline padding-right="2mm">
|
2258
2271
|
|
2272
|
+
|
2273
|
+
|
2259
2274
|
|
2260
2275
|
|
2261
2276
|
|
@@ -2263,6 +2278,8 @@
|
|
2263
2278
|
|
2264
2279
|
</fo:inline>
|
2265
2280
|
|
2281
|
+
|
2282
|
+
|
2266
2283
|
<xsl:apply-templates mode="process"/>
|
2267
2284
|
</fo:block>
|
2268
2285
|
|
@@ -2282,6 +2299,8 @@
|
|
2282
2299
|
<xsl:variable name="reference" select="@reference"/>
|
2283
2300
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2284
2301
|
<fo:block margin-bottom="12pt">
|
2302
|
+
|
2303
|
+
|
2285
2304
|
|
2286
2305
|
|
2287
2306
|
|
@@ -2301,6 +2320,7 @@
|
|
2301
2320
|
<xsl:value-of select="@reference"/>
|
2302
2321
|
|
2303
2322
|
|
2323
|
+
|
2304
2324
|
</fo:inline>
|
2305
2325
|
<fo:inline>
|
2306
2326
|
|
@@ -2450,6 +2470,7 @@
|
|
2450
2470
|
|
2451
2471
|
<xsl:value-of select="@reference"/>
|
2452
2472
|
|
2473
|
+
|
2453
2474
|
</fo:basic-link>
|
2454
2475
|
</fo:inline>
|
2455
2476
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -3458,6 +3479,7 @@
|
|
3458
3479
|
|
3459
3480
|
|
3460
3481
|
|
3482
|
+
|
3461
3483
|
<fo:block-container margin-left="0mm">
|
3462
3484
|
|
3463
3485
|
|
@@ -4651,9 +4673,10 @@
|
|
4651
4673
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4652
4674
|
|
4653
4675
|
</xsl:if>
|
4654
|
-
|
4676
|
+
|
4677
|
+
|
4678
|
+
|
4655
4679
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4656
|
-
|
4657
4680
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4658
4681
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
4659
4682
|
</xsl:if>
|
@@ -4661,6 +4684,7 @@
|
|
4661
4684
|
|
4662
4685
|
|
4663
4686
|
|
4687
|
+
|
4664
4688
|
</xsl:if>
|
4665
4689
|
|
4666
4690
|
<xsl:apply-templates/>
|
@@ -5584,4 +5608,100 @@
|
|
5584
5608
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5585
5609
|
</xsl:choose>
|
5586
5610
|
</xsl:attribute>
|
5611
|
+
</xsl:template><xsl:template name="number-to-words">
|
5612
|
+
<xsl:param name="number"/>
|
5613
|
+
<xsl:param name="first"/>
|
5614
|
+
<xsl:if test="$number != ''">
|
5615
|
+
<xsl:variable name="words">
|
5616
|
+
<words>
|
5617
|
+
<word cardinal="1">One-</word>
|
5618
|
+
<word ordinal="1">First </word>
|
5619
|
+
<word cardinal="2">Two-</word>
|
5620
|
+
<word ordinal="2">Second </word>
|
5621
|
+
<word cardinal="3">Three-</word>
|
5622
|
+
<word ordinal="3">Third </word>
|
5623
|
+
<word cardinal="4">Four-</word>
|
5624
|
+
<word ordinal="4">Fourth </word>
|
5625
|
+
<word cardinal="5">Five-</word>
|
5626
|
+
<word ordinal="5">Fifth </word>
|
5627
|
+
<word cardinal="6">Six-</word>
|
5628
|
+
<word ordinal="6">Sixth </word>
|
5629
|
+
<word cardinal="7">Seven-</word>
|
5630
|
+
<word ordinal="7">Seventh </word>
|
5631
|
+
<word cardinal="8">Eight-</word>
|
5632
|
+
<word ordinal="8">Eighth </word>
|
5633
|
+
<word cardinal="9">Nine-</word>
|
5634
|
+
<word ordinal="9">Ninth </word>
|
5635
|
+
<word ordinal="10">Tenth </word>
|
5636
|
+
<word ordinal="11">Eleventh </word>
|
5637
|
+
<word ordinal="12">Twelfth </word>
|
5638
|
+
<word ordinal="13">Thirteenth </word>
|
5639
|
+
<word ordinal="14">Fourteenth </word>
|
5640
|
+
<word ordinal="15">Fifteenth </word>
|
5641
|
+
<word ordinal="16">Sixteenth </word>
|
5642
|
+
<word ordinal="17">Seventeenth </word>
|
5643
|
+
<word ordinal="18">Eighteenth </word>
|
5644
|
+
<word ordinal="19">Nineteenth </word>
|
5645
|
+
<word cardinal="20">Twenty-</word>
|
5646
|
+
<word ordinal="20">Twentieth </word>
|
5647
|
+
<word cardinal="30">Thirty-</word>
|
5648
|
+
<word ordinal="30">Thirtieth </word>
|
5649
|
+
<word cardinal="40">Forty-</word>
|
5650
|
+
<word ordinal="40">Fortieth </word>
|
5651
|
+
<word cardinal="50">Fifty-</word>
|
5652
|
+
<word ordinal="50">Fiftieth </word>
|
5653
|
+
<word cardinal="60">Sixty-</word>
|
5654
|
+
<word ordinal="60">Sixtieth </word>
|
5655
|
+
<word cardinal="70">Seventy-</word>
|
5656
|
+
<word ordinal="70">Seventieth </word>
|
5657
|
+
<word cardinal="80">Eighty-</word>
|
5658
|
+
<word ordinal="80">Eightieth </word>
|
5659
|
+
<word cardinal="90">Ninety-</word>
|
5660
|
+
<word ordinal="90">Ninetieth </word>
|
5661
|
+
<word cardinal="100">Hundred-</word>
|
5662
|
+
<word ordinal="100">Hundredth </word>
|
5663
|
+
</words>
|
5664
|
+
</xsl:variable>
|
5665
|
+
|
5666
|
+
<xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
|
5667
|
+
|
5668
|
+
<xsl:variable name="value">
|
5669
|
+
<xsl:choose>
|
5670
|
+
<xsl:when test="$ordinal != ''">
|
5671
|
+
<xsl:value-of select="$ordinal"/>
|
5672
|
+
</xsl:when>
|
5673
|
+
<xsl:otherwise>
|
5674
|
+
<xsl:choose>
|
5675
|
+
<xsl:when test="$number < 100">
|
5676
|
+
<xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
|
5677
|
+
<xsl:variable name="digit" select="substring($number,2)"/>
|
5678
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
|
5679
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
|
5680
|
+
</xsl:when>
|
5681
|
+
<xsl:otherwise>
|
5682
|
+
<!-- more 100 -->
|
5683
|
+
<xsl:variable name="hundred" select="substring($number,1,1)"/>
|
5684
|
+
<xsl:variable name="digits" select="number(substring($number,2))"/>
|
5685
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
|
5686
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
|
5687
|
+
<xsl:call-template name="number-to-words">
|
5688
|
+
<xsl:with-param name="number" select="$digits"/>
|
5689
|
+
</xsl:call-template>
|
5690
|
+
</xsl:otherwise>
|
5691
|
+
</xsl:choose>
|
5692
|
+
</xsl:otherwise>
|
5693
|
+
</xsl:choose>
|
5694
|
+
</xsl:variable>
|
5695
|
+
<xsl:choose>
|
5696
|
+
<xsl:when test="$first = 'true'">
|
5697
|
+
<xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
|
5698
|
+
<xsl:call-template name="capitalize">
|
5699
|
+
<xsl:with-param name="str" select="$value_lc"/>
|
5700
|
+
</xsl:call-template>
|
5701
|
+
</xsl:when>
|
5702
|
+
<xsl:otherwise>
|
5703
|
+
<xsl:value-of select="$value"/>
|
5704
|
+
</xsl:otherwise>
|
5705
|
+
</xsl:choose>
|
5706
|
+
</xsl:if>
|
5587
5707
|
</xsl:template></xsl:stylesheet>
|
@@ -2036,6 +2036,7 @@
|
|
2036
2036
|
|
2037
2037
|
|
2038
2038
|
|
2039
|
+
|
2039
2040
|
<!-- fn will be processed inside 'note' processing -->
|
2040
2041
|
|
2041
2042
|
|
@@ -2044,6 +2045,10 @@
|
|
2044
2045
|
|
2045
2046
|
|
2046
2047
|
|
2048
|
+
|
2049
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
2050
|
+
|
2051
|
+
|
2047
2052
|
<!-- except gb -->
|
2048
2053
|
|
2049
2054
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -2069,6 +2074,10 @@
|
|
2069
2074
|
<!-- fn processing -->
|
2070
2075
|
<xsl:call-template name="fn_display"/>
|
2071
2076
|
|
2077
|
+
|
2078
|
+
<!-- for PAS display Notes after footnotes -->
|
2079
|
+
|
2080
|
+
|
2072
2081
|
</fo:table-cell>
|
2073
2082
|
</fo:table-row>
|
2074
2083
|
</fo:table-body>
|
@@ -2126,6 +2135,7 @@
|
|
2126
2135
|
<xsl:if test="$parent-name = 'tfoot'">
|
2127
2136
|
|
2128
2137
|
|
2138
|
+
|
2129
2139
|
</xsl:if>
|
2130
2140
|
|
2131
2141
|
|
@@ -2254,8 +2264,13 @@
|
|
2254
2264
|
|
2255
2265
|
|
2256
2266
|
|
2267
|
+
|
2268
|
+
<!-- Table's note name (NOTE, for example) -->
|
2269
|
+
|
2257
2270
|
<fo:inline padding-right="2mm">
|
2258
2271
|
|
2272
|
+
|
2273
|
+
|
2259
2274
|
|
2260
2275
|
|
2261
2276
|
|
@@ -2263,6 +2278,8 @@
|
|
2263
2278
|
|
2264
2279
|
</fo:inline>
|
2265
2280
|
|
2281
|
+
|
2282
|
+
|
2266
2283
|
<xsl:apply-templates mode="process"/>
|
2267
2284
|
</fo:block>
|
2268
2285
|
|
@@ -2282,6 +2299,8 @@
|
|
2282
2299
|
<xsl:variable name="reference" select="@reference"/>
|
2283
2300
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2284
2301
|
<fo:block margin-bottom="12pt">
|
2302
|
+
|
2303
|
+
|
2285
2304
|
|
2286
2305
|
|
2287
2306
|
|
@@ -2301,6 +2320,7 @@
|
|
2301
2320
|
<xsl:value-of select="@reference"/>
|
2302
2321
|
|
2303
2322
|
|
2323
|
+
|
2304
2324
|
</fo:inline>
|
2305
2325
|
<fo:inline>
|
2306
2326
|
|
@@ -2450,6 +2470,7 @@
|
|
2450
2470
|
|
2451
2471
|
<xsl:value-of select="@reference"/>
|
2452
2472
|
|
2473
|
+
|
2453
2474
|
</fo:basic-link>
|
2454
2475
|
</fo:inline>
|
2455
2476
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -3458,6 +3479,7 @@
|
|
3458
3479
|
|
3459
3480
|
|
3460
3481
|
|
3482
|
+
|
3461
3483
|
<fo:block-container margin-left="0mm">
|
3462
3484
|
|
3463
3485
|
|
@@ -4651,9 +4673,10 @@
|
|
4651
4673
|
<xsl:attribute name="vertical-align">super</xsl:attribute>
|
4652
4674
|
|
4653
4675
|
</xsl:if>
|
4654
|
-
|
4676
|
+
|
4677
|
+
|
4678
|
+
|
4655
4679
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4656
|
-
|
4657
4680
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4658
4681
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
4659
4682
|
</xsl:if>
|
@@ -4661,6 +4684,7 @@
|
|
4661
4684
|
|
4662
4685
|
|
4663
4686
|
|
4687
|
+
|
4664
4688
|
</xsl:if>
|
4665
4689
|
|
4666
4690
|
<xsl:apply-templates/>
|
@@ -5584,4 +5608,100 @@
|
|
5584
5608
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5585
5609
|
</xsl:choose>
|
5586
5610
|
</xsl:attribute>
|
5611
|
+
</xsl:template><xsl:template name="number-to-words">
|
5612
|
+
<xsl:param name="number"/>
|
5613
|
+
<xsl:param name="first"/>
|
5614
|
+
<xsl:if test="$number != ''">
|
5615
|
+
<xsl:variable name="words">
|
5616
|
+
<words>
|
5617
|
+
<word cardinal="1">One-</word>
|
5618
|
+
<word ordinal="1">First </word>
|
5619
|
+
<word cardinal="2">Two-</word>
|
5620
|
+
<word ordinal="2">Second </word>
|
5621
|
+
<word cardinal="3">Three-</word>
|
5622
|
+
<word ordinal="3">Third </word>
|
5623
|
+
<word cardinal="4">Four-</word>
|
5624
|
+
<word ordinal="4">Fourth </word>
|
5625
|
+
<word cardinal="5">Five-</word>
|
5626
|
+
<word ordinal="5">Fifth </word>
|
5627
|
+
<word cardinal="6">Six-</word>
|
5628
|
+
<word ordinal="6">Sixth </word>
|
5629
|
+
<word cardinal="7">Seven-</word>
|
5630
|
+
<word ordinal="7">Seventh </word>
|
5631
|
+
<word cardinal="8">Eight-</word>
|
5632
|
+
<word ordinal="8">Eighth </word>
|
5633
|
+
<word cardinal="9">Nine-</word>
|
5634
|
+
<word ordinal="9">Ninth </word>
|
5635
|
+
<word ordinal="10">Tenth </word>
|
5636
|
+
<word ordinal="11">Eleventh </word>
|
5637
|
+
<word ordinal="12">Twelfth </word>
|
5638
|
+
<word ordinal="13">Thirteenth </word>
|
5639
|
+
<word ordinal="14">Fourteenth </word>
|
5640
|
+
<word ordinal="15">Fifteenth </word>
|
5641
|
+
<word ordinal="16">Sixteenth </word>
|
5642
|
+
<word ordinal="17">Seventeenth </word>
|
5643
|
+
<word ordinal="18">Eighteenth </word>
|
5644
|
+
<word ordinal="19">Nineteenth </word>
|
5645
|
+
<word cardinal="20">Twenty-</word>
|
5646
|
+
<word ordinal="20">Twentieth </word>
|
5647
|
+
<word cardinal="30">Thirty-</word>
|
5648
|
+
<word ordinal="30">Thirtieth </word>
|
5649
|
+
<word cardinal="40">Forty-</word>
|
5650
|
+
<word ordinal="40">Fortieth </word>
|
5651
|
+
<word cardinal="50">Fifty-</word>
|
5652
|
+
<word ordinal="50">Fiftieth </word>
|
5653
|
+
<word cardinal="60">Sixty-</word>
|
5654
|
+
<word ordinal="60">Sixtieth </word>
|
5655
|
+
<word cardinal="70">Seventy-</word>
|
5656
|
+
<word ordinal="70">Seventieth </word>
|
5657
|
+
<word cardinal="80">Eighty-</word>
|
5658
|
+
<word ordinal="80">Eightieth </word>
|
5659
|
+
<word cardinal="90">Ninety-</word>
|
5660
|
+
<word ordinal="90">Ninetieth </word>
|
5661
|
+
<word cardinal="100">Hundred-</word>
|
5662
|
+
<word ordinal="100">Hundredth </word>
|
5663
|
+
</words>
|
5664
|
+
</xsl:variable>
|
5665
|
+
|
5666
|
+
<xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
|
5667
|
+
|
5668
|
+
<xsl:variable name="value">
|
5669
|
+
<xsl:choose>
|
5670
|
+
<xsl:when test="$ordinal != ''">
|
5671
|
+
<xsl:value-of select="$ordinal"/>
|
5672
|
+
</xsl:when>
|
5673
|
+
<xsl:otherwise>
|
5674
|
+
<xsl:choose>
|
5675
|
+
<xsl:when test="$number < 100">
|
5676
|
+
<xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
|
5677
|
+
<xsl:variable name="digit" select="substring($number,2)"/>
|
5678
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
|
5679
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
|
5680
|
+
</xsl:when>
|
5681
|
+
<xsl:otherwise>
|
5682
|
+
<!-- more 100 -->
|
5683
|
+
<xsl:variable name="hundred" select="substring($number,1,1)"/>
|
5684
|
+
<xsl:variable name="digits" select="number(substring($number,2))"/>
|
5685
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
|
5686
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
|
5687
|
+
<xsl:call-template name="number-to-words">
|
5688
|
+
<xsl:with-param name="number" select="$digits"/>
|
5689
|
+
</xsl:call-template>
|
5690
|
+
</xsl:otherwise>
|
5691
|
+
</xsl:choose>
|
5692
|
+
</xsl:otherwise>
|
5693
|
+
</xsl:choose>
|
5694
|
+
</xsl:variable>
|
5695
|
+
<xsl:choose>
|
5696
|
+
<xsl:when test="$first = 'true'">
|
5697
|
+
<xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
|
5698
|
+
<xsl:call-template name="capitalize">
|
5699
|
+
<xsl:with-param name="str" select="$value_lc"/>
|
5700
|
+
</xsl:call-template>
|
5701
|
+
</xsl:when>
|
5702
|
+
<xsl:otherwise>
|
5703
|
+
<xsl:value-of select="$value"/>
|
5704
|
+
</xsl:otherwise>
|
5705
|
+
</xsl:choose>
|
5706
|
+
</xsl:if>
|
5587
5707
|
</xsl:template></xsl:stylesheet>
|
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.7.
|
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-
|
11
|
+
date: 2021-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|