metanorma-mpfa 0.6.6 → 0.6.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/mpfa/isodoc.rng +32 -7
- data/lib/isodoc/mpfa/mpfa.circular.xsl +122 -2
- data/lib/isodoc/mpfa/mpfa.compliance-standards-for-mpf-trustees.xsl +122 -2
- data/lib/isodoc/mpfa/mpfa.guidelines.xsl +122 -2
- data/lib/isodoc/mpfa/mpfa.standards.xsl +122 -2
- data/lib/isodoc/mpfa/mpfa.supervision-of-mpf-intermediaries.xsl +122 -2
- data/lib/metanorma/mpfa/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: c818430af1d1598cedf9fdb864222fe07444a590c359d35395851328acd8c493
|
4
|
+
data.tar.gz: 16d387bc8dae24d430ae296c260ecc0be3bf9a2fa226aada3e486bdd5624bcd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b367fb98cab4120873e8083476f6c7058558c0941dbd4f259055793698d56bebbb068687d70261bd764a9bfb8bc9a98ae23914537feff88dbbe05021b4a8b51a
|
7
|
+
data.tar.gz: 599e33cbd382cb25ccd516deb193c48d0afebd168bcc6ea8680d4c1e01283e65f779df5e78b495d7c6ccc2743a3a5afd3b900d1751f7abf60756854a9ba84056
|
@@ -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>
|
@@ -1906,6 +1906,7 @@
|
|
1906
1906
|
|
1907
1907
|
|
1908
1908
|
|
1909
|
+
|
1909
1910
|
<!-- fn will be processed inside 'note' processing -->
|
1910
1911
|
|
1911
1912
|
|
@@ -1914,6 +1915,10 @@
|
|
1914
1915
|
|
1915
1916
|
|
1916
1917
|
|
1918
|
+
|
1919
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
1920
|
+
|
1921
|
+
|
1917
1922
|
<!-- except gb -->
|
1918
1923
|
|
1919
1924
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -1939,6 +1944,10 @@
|
|
1939
1944
|
<!-- fn processing -->
|
1940
1945
|
<xsl:call-template name="fn_display"/>
|
1941
1946
|
|
1947
|
+
|
1948
|
+
<!-- for PAS display Notes after footnotes -->
|
1949
|
+
|
1950
|
+
|
1942
1951
|
</fo:table-cell>
|
1943
1952
|
</fo:table-row>
|
1944
1953
|
</fo:table-body>
|
@@ -1996,6 +2005,7 @@
|
|
1996
2005
|
<xsl:if test="$parent-name = 'tfoot'">
|
1997
2006
|
|
1998
2007
|
|
2008
|
+
|
1999
2009
|
</xsl:if>
|
2000
2010
|
|
2001
2011
|
|
@@ -2127,8 +2137,13 @@
|
|
2127
2137
|
|
2128
2138
|
|
2129
2139
|
|
2140
|
+
|
2141
|
+
<!-- Table's note name (NOTE, for example) -->
|
2142
|
+
|
2130
2143
|
<fo:inline padding-right="2mm">
|
2131
2144
|
|
2145
|
+
|
2146
|
+
|
2132
2147
|
|
2133
2148
|
|
2134
2149
|
|
@@ -2136,6 +2151,8 @@
|
|
2136
2151
|
|
2137
2152
|
</fo:inline>
|
2138
2153
|
|
2154
|
+
|
2155
|
+
|
2139
2156
|
<xsl:apply-templates mode="process"/>
|
2140
2157
|
</fo:block>
|
2141
2158
|
|
@@ -2155,6 +2172,8 @@
|
|
2155
2172
|
<xsl:variable name="reference" select="@reference"/>
|
2156
2173
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2157
2174
|
<fo:block margin-bottom="12pt">
|
2175
|
+
|
2176
|
+
|
2158
2177
|
|
2159
2178
|
|
2160
2179
|
|
@@ -2172,6 +2191,7 @@
|
|
2172
2191
|
<xsl:value-of select="@reference"/>
|
2173
2192
|
|
2174
2193
|
|
2194
|
+
|
2175
2195
|
</fo:inline>
|
2176
2196
|
<fo:inline>
|
2177
2197
|
|
@@ -2321,6 +2341,7 @@
|
|
2321
2341
|
|
2322
2342
|
<xsl:value-of select="@reference"/>
|
2323
2343
|
|
2344
|
+
|
2324
2345
|
</fo:basic-link>
|
2325
2346
|
</fo:inline>
|
2326
2347
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -3324,6 +3345,7 @@
|
|
3324
3345
|
|
3325
3346
|
|
3326
3347
|
|
3348
|
+
|
3327
3349
|
<fo:block-container margin-left="0mm">
|
3328
3350
|
|
3329
3351
|
|
@@ -4522,9 +4544,10 @@
|
|
4522
4544
|
|
4523
4545
|
|
4524
4546
|
</xsl:if>
|
4525
|
-
|
4547
|
+
|
4548
|
+
|
4549
|
+
|
4526
4550
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4527
|
-
|
4528
4551
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4529
4552
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
4530
4553
|
</xsl:if>
|
@@ -4535,6 +4558,7 @@
|
|
4535
4558
|
|
4536
4559
|
|
4537
4560
|
|
4561
|
+
|
4538
4562
|
</xsl:if>
|
4539
4563
|
|
4540
4564
|
<xsl:apply-templates/>
|
@@ -5436,4 +5460,100 @@
|
|
5436
5460
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5437
5461
|
</xsl:choose>
|
5438
5462
|
</xsl:attribute>
|
5463
|
+
</xsl:template><xsl:template name="number-to-words">
|
5464
|
+
<xsl:param name="number"/>
|
5465
|
+
<xsl:param name="first"/>
|
5466
|
+
<xsl:if test="$number != ''">
|
5467
|
+
<xsl:variable name="words">
|
5468
|
+
<words>
|
5469
|
+
<word cardinal="1">One-</word>
|
5470
|
+
<word ordinal="1">First </word>
|
5471
|
+
<word cardinal="2">Two-</word>
|
5472
|
+
<word ordinal="2">Second </word>
|
5473
|
+
<word cardinal="3">Three-</word>
|
5474
|
+
<word ordinal="3">Third </word>
|
5475
|
+
<word cardinal="4">Four-</word>
|
5476
|
+
<word ordinal="4">Fourth </word>
|
5477
|
+
<word cardinal="5">Five-</word>
|
5478
|
+
<word ordinal="5">Fifth </word>
|
5479
|
+
<word cardinal="6">Six-</word>
|
5480
|
+
<word ordinal="6">Sixth </word>
|
5481
|
+
<word cardinal="7">Seven-</word>
|
5482
|
+
<word ordinal="7">Seventh </word>
|
5483
|
+
<word cardinal="8">Eight-</word>
|
5484
|
+
<word ordinal="8">Eighth </word>
|
5485
|
+
<word cardinal="9">Nine-</word>
|
5486
|
+
<word ordinal="9">Ninth </word>
|
5487
|
+
<word ordinal="10">Tenth </word>
|
5488
|
+
<word ordinal="11">Eleventh </word>
|
5489
|
+
<word ordinal="12">Twelfth </word>
|
5490
|
+
<word ordinal="13">Thirteenth </word>
|
5491
|
+
<word ordinal="14">Fourteenth </word>
|
5492
|
+
<word ordinal="15">Fifteenth </word>
|
5493
|
+
<word ordinal="16">Sixteenth </word>
|
5494
|
+
<word ordinal="17">Seventeenth </word>
|
5495
|
+
<word ordinal="18">Eighteenth </word>
|
5496
|
+
<word ordinal="19">Nineteenth </word>
|
5497
|
+
<word cardinal="20">Twenty-</word>
|
5498
|
+
<word ordinal="20">Twentieth </word>
|
5499
|
+
<word cardinal="30">Thirty-</word>
|
5500
|
+
<word ordinal="30">Thirtieth </word>
|
5501
|
+
<word cardinal="40">Forty-</word>
|
5502
|
+
<word ordinal="40">Fortieth </word>
|
5503
|
+
<word cardinal="50">Fifty-</word>
|
5504
|
+
<word ordinal="50">Fiftieth </word>
|
5505
|
+
<word cardinal="60">Sixty-</word>
|
5506
|
+
<word ordinal="60">Sixtieth </word>
|
5507
|
+
<word cardinal="70">Seventy-</word>
|
5508
|
+
<word ordinal="70">Seventieth </word>
|
5509
|
+
<word cardinal="80">Eighty-</word>
|
5510
|
+
<word ordinal="80">Eightieth </word>
|
5511
|
+
<word cardinal="90">Ninety-</word>
|
5512
|
+
<word ordinal="90">Ninetieth </word>
|
5513
|
+
<word cardinal="100">Hundred-</word>
|
5514
|
+
<word ordinal="100">Hundredth </word>
|
5515
|
+
</words>
|
5516
|
+
</xsl:variable>
|
5517
|
+
|
5518
|
+
<xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
|
5519
|
+
|
5520
|
+
<xsl:variable name="value">
|
5521
|
+
<xsl:choose>
|
5522
|
+
<xsl:when test="$ordinal != ''">
|
5523
|
+
<xsl:value-of select="$ordinal"/>
|
5524
|
+
</xsl:when>
|
5525
|
+
<xsl:otherwise>
|
5526
|
+
<xsl:choose>
|
5527
|
+
<xsl:when test="$number < 100">
|
5528
|
+
<xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
|
5529
|
+
<xsl:variable name="digit" select="substring($number,2)"/>
|
5530
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
|
5531
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
|
5532
|
+
</xsl:when>
|
5533
|
+
<xsl:otherwise>
|
5534
|
+
<!-- more 100 -->
|
5535
|
+
<xsl:variable name="hundred" select="substring($number,1,1)"/>
|
5536
|
+
<xsl:variable name="digits" select="number(substring($number,2))"/>
|
5537
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
|
5538
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
|
5539
|
+
<xsl:call-template name="number-to-words">
|
5540
|
+
<xsl:with-param name="number" select="$digits"/>
|
5541
|
+
</xsl:call-template>
|
5542
|
+
</xsl:otherwise>
|
5543
|
+
</xsl:choose>
|
5544
|
+
</xsl:otherwise>
|
5545
|
+
</xsl:choose>
|
5546
|
+
</xsl:variable>
|
5547
|
+
<xsl:choose>
|
5548
|
+
<xsl:when test="$first = 'true'">
|
5549
|
+
<xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
|
5550
|
+
<xsl:call-template name="capitalize">
|
5551
|
+
<xsl:with-param name="str" select="$value_lc"/>
|
5552
|
+
</xsl:call-template>
|
5553
|
+
</xsl:when>
|
5554
|
+
<xsl:otherwise>
|
5555
|
+
<xsl:value-of select="$value"/>
|
5556
|
+
</xsl:otherwise>
|
5557
|
+
</xsl:choose>
|
5558
|
+
</xsl:if>
|
5439
5559
|
</xsl:template></xsl:stylesheet>
|
@@ -1906,6 +1906,7 @@
|
|
1906
1906
|
|
1907
1907
|
|
1908
1908
|
|
1909
|
+
|
1909
1910
|
<!-- fn will be processed inside 'note' processing -->
|
1910
1911
|
|
1911
1912
|
|
@@ -1914,6 +1915,10 @@
|
|
1914
1915
|
|
1915
1916
|
|
1916
1917
|
|
1918
|
+
|
1919
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
1920
|
+
|
1921
|
+
|
1917
1922
|
<!-- except gb -->
|
1918
1923
|
|
1919
1924
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -1939,6 +1944,10 @@
|
|
1939
1944
|
<!-- fn processing -->
|
1940
1945
|
<xsl:call-template name="fn_display"/>
|
1941
1946
|
|
1947
|
+
|
1948
|
+
<!-- for PAS display Notes after footnotes -->
|
1949
|
+
|
1950
|
+
|
1942
1951
|
</fo:table-cell>
|
1943
1952
|
</fo:table-row>
|
1944
1953
|
</fo:table-body>
|
@@ -1996,6 +2005,7 @@
|
|
1996
2005
|
<xsl:if test="$parent-name = 'tfoot'">
|
1997
2006
|
|
1998
2007
|
|
2008
|
+
|
1999
2009
|
</xsl:if>
|
2000
2010
|
|
2001
2011
|
|
@@ -2127,8 +2137,13 @@
|
|
2127
2137
|
|
2128
2138
|
|
2129
2139
|
|
2140
|
+
|
2141
|
+
<!-- Table's note name (NOTE, for example) -->
|
2142
|
+
|
2130
2143
|
<fo:inline padding-right="2mm">
|
2131
2144
|
|
2145
|
+
|
2146
|
+
|
2132
2147
|
|
2133
2148
|
|
2134
2149
|
|
@@ -2136,6 +2151,8 @@
|
|
2136
2151
|
|
2137
2152
|
</fo:inline>
|
2138
2153
|
|
2154
|
+
|
2155
|
+
|
2139
2156
|
<xsl:apply-templates mode="process"/>
|
2140
2157
|
</fo:block>
|
2141
2158
|
|
@@ -2155,6 +2172,8 @@
|
|
2155
2172
|
<xsl:variable name="reference" select="@reference"/>
|
2156
2173
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2157
2174
|
<fo:block margin-bottom="12pt">
|
2175
|
+
|
2176
|
+
|
2158
2177
|
|
2159
2178
|
|
2160
2179
|
|
@@ -2172,6 +2191,7 @@
|
|
2172
2191
|
<xsl:value-of select="@reference"/>
|
2173
2192
|
|
2174
2193
|
|
2194
|
+
|
2175
2195
|
</fo:inline>
|
2176
2196
|
<fo:inline>
|
2177
2197
|
|
@@ -2321,6 +2341,7 @@
|
|
2321
2341
|
|
2322
2342
|
<xsl:value-of select="@reference"/>
|
2323
2343
|
|
2344
|
+
|
2324
2345
|
</fo:basic-link>
|
2325
2346
|
</fo:inline>
|
2326
2347
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -3324,6 +3345,7 @@
|
|
3324
3345
|
|
3325
3346
|
|
3326
3347
|
|
3348
|
+
|
3327
3349
|
<fo:block-container margin-left="0mm">
|
3328
3350
|
|
3329
3351
|
|
@@ -4522,9 +4544,10 @@
|
|
4522
4544
|
|
4523
4545
|
|
4524
4546
|
</xsl:if>
|
4525
|
-
|
4547
|
+
|
4548
|
+
|
4549
|
+
|
4526
4550
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4527
|
-
|
4528
4551
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4529
4552
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
4530
4553
|
</xsl:if>
|
@@ -4535,6 +4558,7 @@
|
|
4535
4558
|
|
4536
4559
|
|
4537
4560
|
|
4561
|
+
|
4538
4562
|
</xsl:if>
|
4539
4563
|
|
4540
4564
|
<xsl:apply-templates/>
|
@@ -5436,4 +5460,100 @@
|
|
5436
5460
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5437
5461
|
</xsl:choose>
|
5438
5462
|
</xsl:attribute>
|
5463
|
+
</xsl:template><xsl:template name="number-to-words">
|
5464
|
+
<xsl:param name="number"/>
|
5465
|
+
<xsl:param name="first"/>
|
5466
|
+
<xsl:if test="$number != ''">
|
5467
|
+
<xsl:variable name="words">
|
5468
|
+
<words>
|
5469
|
+
<word cardinal="1">One-</word>
|
5470
|
+
<word ordinal="1">First </word>
|
5471
|
+
<word cardinal="2">Two-</word>
|
5472
|
+
<word ordinal="2">Second </word>
|
5473
|
+
<word cardinal="3">Three-</word>
|
5474
|
+
<word ordinal="3">Third </word>
|
5475
|
+
<word cardinal="4">Four-</word>
|
5476
|
+
<word ordinal="4">Fourth </word>
|
5477
|
+
<word cardinal="5">Five-</word>
|
5478
|
+
<word ordinal="5">Fifth </word>
|
5479
|
+
<word cardinal="6">Six-</word>
|
5480
|
+
<word ordinal="6">Sixth </word>
|
5481
|
+
<word cardinal="7">Seven-</word>
|
5482
|
+
<word ordinal="7">Seventh </word>
|
5483
|
+
<word cardinal="8">Eight-</word>
|
5484
|
+
<word ordinal="8">Eighth </word>
|
5485
|
+
<word cardinal="9">Nine-</word>
|
5486
|
+
<word ordinal="9">Ninth </word>
|
5487
|
+
<word ordinal="10">Tenth </word>
|
5488
|
+
<word ordinal="11">Eleventh </word>
|
5489
|
+
<word ordinal="12">Twelfth </word>
|
5490
|
+
<word ordinal="13">Thirteenth </word>
|
5491
|
+
<word ordinal="14">Fourteenth </word>
|
5492
|
+
<word ordinal="15">Fifteenth </word>
|
5493
|
+
<word ordinal="16">Sixteenth </word>
|
5494
|
+
<word ordinal="17">Seventeenth </word>
|
5495
|
+
<word ordinal="18">Eighteenth </word>
|
5496
|
+
<word ordinal="19">Nineteenth </word>
|
5497
|
+
<word cardinal="20">Twenty-</word>
|
5498
|
+
<word ordinal="20">Twentieth </word>
|
5499
|
+
<word cardinal="30">Thirty-</word>
|
5500
|
+
<word ordinal="30">Thirtieth </word>
|
5501
|
+
<word cardinal="40">Forty-</word>
|
5502
|
+
<word ordinal="40">Fortieth </word>
|
5503
|
+
<word cardinal="50">Fifty-</word>
|
5504
|
+
<word ordinal="50">Fiftieth </word>
|
5505
|
+
<word cardinal="60">Sixty-</word>
|
5506
|
+
<word ordinal="60">Sixtieth </word>
|
5507
|
+
<word cardinal="70">Seventy-</word>
|
5508
|
+
<word ordinal="70">Seventieth </word>
|
5509
|
+
<word cardinal="80">Eighty-</word>
|
5510
|
+
<word ordinal="80">Eightieth </word>
|
5511
|
+
<word cardinal="90">Ninety-</word>
|
5512
|
+
<word ordinal="90">Ninetieth </word>
|
5513
|
+
<word cardinal="100">Hundred-</word>
|
5514
|
+
<word ordinal="100">Hundredth </word>
|
5515
|
+
</words>
|
5516
|
+
</xsl:variable>
|
5517
|
+
|
5518
|
+
<xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
|
5519
|
+
|
5520
|
+
<xsl:variable name="value">
|
5521
|
+
<xsl:choose>
|
5522
|
+
<xsl:when test="$ordinal != ''">
|
5523
|
+
<xsl:value-of select="$ordinal"/>
|
5524
|
+
</xsl:when>
|
5525
|
+
<xsl:otherwise>
|
5526
|
+
<xsl:choose>
|
5527
|
+
<xsl:when test="$number < 100">
|
5528
|
+
<xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
|
5529
|
+
<xsl:variable name="digit" select="substring($number,2)"/>
|
5530
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
|
5531
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
|
5532
|
+
</xsl:when>
|
5533
|
+
<xsl:otherwise>
|
5534
|
+
<!-- more 100 -->
|
5535
|
+
<xsl:variable name="hundred" select="substring($number,1,1)"/>
|
5536
|
+
<xsl:variable name="digits" select="number(substring($number,2))"/>
|
5537
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
|
5538
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
|
5539
|
+
<xsl:call-template name="number-to-words">
|
5540
|
+
<xsl:with-param name="number" select="$digits"/>
|
5541
|
+
</xsl:call-template>
|
5542
|
+
</xsl:otherwise>
|
5543
|
+
</xsl:choose>
|
5544
|
+
</xsl:otherwise>
|
5545
|
+
</xsl:choose>
|
5546
|
+
</xsl:variable>
|
5547
|
+
<xsl:choose>
|
5548
|
+
<xsl:when test="$first = 'true'">
|
5549
|
+
<xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
|
5550
|
+
<xsl:call-template name="capitalize">
|
5551
|
+
<xsl:with-param name="str" select="$value_lc"/>
|
5552
|
+
</xsl:call-template>
|
5553
|
+
</xsl:when>
|
5554
|
+
<xsl:otherwise>
|
5555
|
+
<xsl:value-of select="$value"/>
|
5556
|
+
</xsl:otherwise>
|
5557
|
+
</xsl:choose>
|
5558
|
+
</xsl:if>
|
5439
5559
|
</xsl:template></xsl:stylesheet>
|
@@ -1906,6 +1906,7 @@
|
|
1906
1906
|
|
1907
1907
|
|
1908
1908
|
|
1909
|
+
|
1909
1910
|
<!-- fn will be processed inside 'note' processing -->
|
1910
1911
|
|
1911
1912
|
|
@@ -1914,6 +1915,10 @@
|
|
1914
1915
|
|
1915
1916
|
|
1916
1917
|
|
1918
|
+
|
1919
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
1920
|
+
|
1921
|
+
|
1917
1922
|
<!-- except gb -->
|
1918
1923
|
|
1919
1924
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -1939,6 +1944,10 @@
|
|
1939
1944
|
<!-- fn processing -->
|
1940
1945
|
<xsl:call-template name="fn_display"/>
|
1941
1946
|
|
1947
|
+
|
1948
|
+
<!-- for PAS display Notes after footnotes -->
|
1949
|
+
|
1950
|
+
|
1942
1951
|
</fo:table-cell>
|
1943
1952
|
</fo:table-row>
|
1944
1953
|
</fo:table-body>
|
@@ -1996,6 +2005,7 @@
|
|
1996
2005
|
<xsl:if test="$parent-name = 'tfoot'">
|
1997
2006
|
|
1998
2007
|
|
2008
|
+
|
1999
2009
|
</xsl:if>
|
2000
2010
|
|
2001
2011
|
|
@@ -2127,8 +2137,13 @@
|
|
2127
2137
|
|
2128
2138
|
|
2129
2139
|
|
2140
|
+
|
2141
|
+
<!-- Table's note name (NOTE, for example) -->
|
2142
|
+
|
2130
2143
|
<fo:inline padding-right="2mm">
|
2131
2144
|
|
2145
|
+
|
2146
|
+
|
2132
2147
|
|
2133
2148
|
|
2134
2149
|
|
@@ -2136,6 +2151,8 @@
|
|
2136
2151
|
|
2137
2152
|
</fo:inline>
|
2138
2153
|
|
2154
|
+
|
2155
|
+
|
2139
2156
|
<xsl:apply-templates mode="process"/>
|
2140
2157
|
</fo:block>
|
2141
2158
|
|
@@ -2155,6 +2172,8 @@
|
|
2155
2172
|
<xsl:variable name="reference" select="@reference"/>
|
2156
2173
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2157
2174
|
<fo:block margin-bottom="12pt">
|
2175
|
+
|
2176
|
+
|
2158
2177
|
|
2159
2178
|
|
2160
2179
|
|
@@ -2172,6 +2191,7 @@
|
|
2172
2191
|
<xsl:value-of select="@reference"/>
|
2173
2192
|
|
2174
2193
|
|
2194
|
+
|
2175
2195
|
</fo:inline>
|
2176
2196
|
<fo:inline>
|
2177
2197
|
|
@@ -2321,6 +2341,7 @@
|
|
2321
2341
|
|
2322
2342
|
<xsl:value-of select="@reference"/>
|
2323
2343
|
|
2344
|
+
|
2324
2345
|
</fo:basic-link>
|
2325
2346
|
</fo:inline>
|
2326
2347
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -3324,6 +3345,7 @@
|
|
3324
3345
|
|
3325
3346
|
|
3326
3347
|
|
3348
|
+
|
3327
3349
|
<fo:block-container margin-left="0mm">
|
3328
3350
|
|
3329
3351
|
|
@@ -4522,9 +4544,10 @@
|
|
4522
4544
|
|
4523
4545
|
|
4524
4546
|
</xsl:if>
|
4525
|
-
|
4547
|
+
|
4548
|
+
|
4549
|
+
|
4526
4550
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4527
|
-
|
4528
4551
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4529
4552
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
4530
4553
|
</xsl:if>
|
@@ -4535,6 +4558,7 @@
|
|
4535
4558
|
|
4536
4559
|
|
4537
4560
|
|
4561
|
+
|
4538
4562
|
</xsl:if>
|
4539
4563
|
|
4540
4564
|
<xsl:apply-templates/>
|
@@ -5436,4 +5460,100 @@
|
|
5436
5460
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5437
5461
|
</xsl:choose>
|
5438
5462
|
</xsl:attribute>
|
5463
|
+
</xsl:template><xsl:template name="number-to-words">
|
5464
|
+
<xsl:param name="number"/>
|
5465
|
+
<xsl:param name="first"/>
|
5466
|
+
<xsl:if test="$number != ''">
|
5467
|
+
<xsl:variable name="words">
|
5468
|
+
<words>
|
5469
|
+
<word cardinal="1">One-</word>
|
5470
|
+
<word ordinal="1">First </word>
|
5471
|
+
<word cardinal="2">Two-</word>
|
5472
|
+
<word ordinal="2">Second </word>
|
5473
|
+
<word cardinal="3">Three-</word>
|
5474
|
+
<word ordinal="3">Third </word>
|
5475
|
+
<word cardinal="4">Four-</word>
|
5476
|
+
<word ordinal="4">Fourth </word>
|
5477
|
+
<word cardinal="5">Five-</word>
|
5478
|
+
<word ordinal="5">Fifth </word>
|
5479
|
+
<word cardinal="6">Six-</word>
|
5480
|
+
<word ordinal="6">Sixth </word>
|
5481
|
+
<word cardinal="7">Seven-</word>
|
5482
|
+
<word ordinal="7">Seventh </word>
|
5483
|
+
<word cardinal="8">Eight-</word>
|
5484
|
+
<word ordinal="8">Eighth </word>
|
5485
|
+
<word cardinal="9">Nine-</word>
|
5486
|
+
<word ordinal="9">Ninth </word>
|
5487
|
+
<word ordinal="10">Tenth </word>
|
5488
|
+
<word ordinal="11">Eleventh </word>
|
5489
|
+
<word ordinal="12">Twelfth </word>
|
5490
|
+
<word ordinal="13">Thirteenth </word>
|
5491
|
+
<word ordinal="14">Fourteenth </word>
|
5492
|
+
<word ordinal="15">Fifteenth </word>
|
5493
|
+
<word ordinal="16">Sixteenth </word>
|
5494
|
+
<word ordinal="17">Seventeenth </word>
|
5495
|
+
<word ordinal="18">Eighteenth </word>
|
5496
|
+
<word ordinal="19">Nineteenth </word>
|
5497
|
+
<word cardinal="20">Twenty-</word>
|
5498
|
+
<word ordinal="20">Twentieth </word>
|
5499
|
+
<word cardinal="30">Thirty-</word>
|
5500
|
+
<word ordinal="30">Thirtieth </word>
|
5501
|
+
<word cardinal="40">Forty-</word>
|
5502
|
+
<word ordinal="40">Fortieth </word>
|
5503
|
+
<word cardinal="50">Fifty-</word>
|
5504
|
+
<word ordinal="50">Fiftieth </word>
|
5505
|
+
<word cardinal="60">Sixty-</word>
|
5506
|
+
<word ordinal="60">Sixtieth </word>
|
5507
|
+
<word cardinal="70">Seventy-</word>
|
5508
|
+
<word ordinal="70">Seventieth </word>
|
5509
|
+
<word cardinal="80">Eighty-</word>
|
5510
|
+
<word ordinal="80">Eightieth </word>
|
5511
|
+
<word cardinal="90">Ninety-</word>
|
5512
|
+
<word ordinal="90">Ninetieth </word>
|
5513
|
+
<word cardinal="100">Hundred-</word>
|
5514
|
+
<word ordinal="100">Hundredth </word>
|
5515
|
+
</words>
|
5516
|
+
</xsl:variable>
|
5517
|
+
|
5518
|
+
<xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
|
5519
|
+
|
5520
|
+
<xsl:variable name="value">
|
5521
|
+
<xsl:choose>
|
5522
|
+
<xsl:when test="$ordinal != ''">
|
5523
|
+
<xsl:value-of select="$ordinal"/>
|
5524
|
+
</xsl:when>
|
5525
|
+
<xsl:otherwise>
|
5526
|
+
<xsl:choose>
|
5527
|
+
<xsl:when test="$number < 100">
|
5528
|
+
<xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
|
5529
|
+
<xsl:variable name="digit" select="substring($number,2)"/>
|
5530
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
|
5531
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
|
5532
|
+
</xsl:when>
|
5533
|
+
<xsl:otherwise>
|
5534
|
+
<!-- more 100 -->
|
5535
|
+
<xsl:variable name="hundred" select="substring($number,1,1)"/>
|
5536
|
+
<xsl:variable name="digits" select="number(substring($number,2))"/>
|
5537
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
|
5538
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
|
5539
|
+
<xsl:call-template name="number-to-words">
|
5540
|
+
<xsl:with-param name="number" select="$digits"/>
|
5541
|
+
</xsl:call-template>
|
5542
|
+
</xsl:otherwise>
|
5543
|
+
</xsl:choose>
|
5544
|
+
</xsl:otherwise>
|
5545
|
+
</xsl:choose>
|
5546
|
+
</xsl:variable>
|
5547
|
+
<xsl:choose>
|
5548
|
+
<xsl:when test="$first = 'true'">
|
5549
|
+
<xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
|
5550
|
+
<xsl:call-template name="capitalize">
|
5551
|
+
<xsl:with-param name="str" select="$value_lc"/>
|
5552
|
+
</xsl:call-template>
|
5553
|
+
</xsl:when>
|
5554
|
+
<xsl:otherwise>
|
5555
|
+
<xsl:value-of select="$value"/>
|
5556
|
+
</xsl:otherwise>
|
5557
|
+
</xsl:choose>
|
5558
|
+
</xsl:if>
|
5439
5559
|
</xsl:template></xsl:stylesheet>
|
@@ -1906,6 +1906,7 @@
|
|
1906
1906
|
|
1907
1907
|
|
1908
1908
|
|
1909
|
+
|
1909
1910
|
<!-- fn will be processed inside 'note' processing -->
|
1910
1911
|
|
1911
1912
|
|
@@ -1914,6 +1915,10 @@
|
|
1914
1915
|
|
1915
1916
|
|
1916
1917
|
|
1918
|
+
|
1919
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
1920
|
+
|
1921
|
+
|
1917
1922
|
<!-- except gb -->
|
1918
1923
|
|
1919
1924
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -1939,6 +1944,10 @@
|
|
1939
1944
|
<!-- fn processing -->
|
1940
1945
|
<xsl:call-template name="fn_display"/>
|
1941
1946
|
|
1947
|
+
|
1948
|
+
<!-- for PAS display Notes after footnotes -->
|
1949
|
+
|
1950
|
+
|
1942
1951
|
</fo:table-cell>
|
1943
1952
|
</fo:table-row>
|
1944
1953
|
</fo:table-body>
|
@@ -1996,6 +2005,7 @@
|
|
1996
2005
|
<xsl:if test="$parent-name = 'tfoot'">
|
1997
2006
|
|
1998
2007
|
|
2008
|
+
|
1999
2009
|
</xsl:if>
|
2000
2010
|
|
2001
2011
|
|
@@ -2127,8 +2137,13 @@
|
|
2127
2137
|
|
2128
2138
|
|
2129
2139
|
|
2140
|
+
|
2141
|
+
<!-- Table's note name (NOTE, for example) -->
|
2142
|
+
|
2130
2143
|
<fo:inline padding-right="2mm">
|
2131
2144
|
|
2145
|
+
|
2146
|
+
|
2132
2147
|
|
2133
2148
|
|
2134
2149
|
|
@@ -2136,6 +2151,8 @@
|
|
2136
2151
|
|
2137
2152
|
</fo:inline>
|
2138
2153
|
|
2154
|
+
|
2155
|
+
|
2139
2156
|
<xsl:apply-templates mode="process"/>
|
2140
2157
|
</fo:block>
|
2141
2158
|
|
@@ -2155,6 +2172,8 @@
|
|
2155
2172
|
<xsl:variable name="reference" select="@reference"/>
|
2156
2173
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2157
2174
|
<fo:block margin-bottom="12pt">
|
2175
|
+
|
2176
|
+
|
2158
2177
|
|
2159
2178
|
|
2160
2179
|
|
@@ -2172,6 +2191,7 @@
|
|
2172
2191
|
<xsl:value-of select="@reference"/>
|
2173
2192
|
|
2174
2193
|
|
2194
|
+
|
2175
2195
|
</fo:inline>
|
2176
2196
|
<fo:inline>
|
2177
2197
|
|
@@ -2321,6 +2341,7 @@
|
|
2321
2341
|
|
2322
2342
|
<xsl:value-of select="@reference"/>
|
2323
2343
|
|
2344
|
+
|
2324
2345
|
</fo:basic-link>
|
2325
2346
|
</fo:inline>
|
2326
2347
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -3324,6 +3345,7 @@
|
|
3324
3345
|
|
3325
3346
|
|
3326
3347
|
|
3348
|
+
|
3327
3349
|
<fo:block-container margin-left="0mm">
|
3328
3350
|
|
3329
3351
|
|
@@ -4522,9 +4544,10 @@
|
|
4522
4544
|
|
4523
4545
|
|
4524
4546
|
</xsl:if>
|
4525
|
-
|
4547
|
+
|
4548
|
+
|
4549
|
+
|
4526
4550
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4527
|
-
|
4528
4551
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4529
4552
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
4530
4553
|
</xsl:if>
|
@@ -4535,6 +4558,7 @@
|
|
4535
4558
|
|
4536
4559
|
|
4537
4560
|
|
4561
|
+
|
4538
4562
|
</xsl:if>
|
4539
4563
|
|
4540
4564
|
<xsl:apply-templates/>
|
@@ -5436,4 +5460,100 @@
|
|
5436
5460
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5437
5461
|
</xsl:choose>
|
5438
5462
|
</xsl:attribute>
|
5463
|
+
</xsl:template><xsl:template name="number-to-words">
|
5464
|
+
<xsl:param name="number"/>
|
5465
|
+
<xsl:param name="first"/>
|
5466
|
+
<xsl:if test="$number != ''">
|
5467
|
+
<xsl:variable name="words">
|
5468
|
+
<words>
|
5469
|
+
<word cardinal="1">One-</word>
|
5470
|
+
<word ordinal="1">First </word>
|
5471
|
+
<word cardinal="2">Two-</word>
|
5472
|
+
<word ordinal="2">Second </word>
|
5473
|
+
<word cardinal="3">Three-</word>
|
5474
|
+
<word ordinal="3">Third </word>
|
5475
|
+
<word cardinal="4">Four-</word>
|
5476
|
+
<word ordinal="4">Fourth </word>
|
5477
|
+
<word cardinal="5">Five-</word>
|
5478
|
+
<word ordinal="5">Fifth </word>
|
5479
|
+
<word cardinal="6">Six-</word>
|
5480
|
+
<word ordinal="6">Sixth </word>
|
5481
|
+
<word cardinal="7">Seven-</word>
|
5482
|
+
<word ordinal="7">Seventh </word>
|
5483
|
+
<word cardinal="8">Eight-</word>
|
5484
|
+
<word ordinal="8">Eighth </word>
|
5485
|
+
<word cardinal="9">Nine-</word>
|
5486
|
+
<word ordinal="9">Ninth </word>
|
5487
|
+
<word ordinal="10">Tenth </word>
|
5488
|
+
<word ordinal="11">Eleventh </word>
|
5489
|
+
<word ordinal="12">Twelfth </word>
|
5490
|
+
<word ordinal="13">Thirteenth </word>
|
5491
|
+
<word ordinal="14">Fourteenth </word>
|
5492
|
+
<word ordinal="15">Fifteenth </word>
|
5493
|
+
<word ordinal="16">Sixteenth </word>
|
5494
|
+
<word ordinal="17">Seventeenth </word>
|
5495
|
+
<word ordinal="18">Eighteenth </word>
|
5496
|
+
<word ordinal="19">Nineteenth </word>
|
5497
|
+
<word cardinal="20">Twenty-</word>
|
5498
|
+
<word ordinal="20">Twentieth </word>
|
5499
|
+
<word cardinal="30">Thirty-</word>
|
5500
|
+
<word ordinal="30">Thirtieth </word>
|
5501
|
+
<word cardinal="40">Forty-</word>
|
5502
|
+
<word ordinal="40">Fortieth </word>
|
5503
|
+
<word cardinal="50">Fifty-</word>
|
5504
|
+
<word ordinal="50">Fiftieth </word>
|
5505
|
+
<word cardinal="60">Sixty-</word>
|
5506
|
+
<word ordinal="60">Sixtieth </word>
|
5507
|
+
<word cardinal="70">Seventy-</word>
|
5508
|
+
<word ordinal="70">Seventieth </word>
|
5509
|
+
<word cardinal="80">Eighty-</word>
|
5510
|
+
<word ordinal="80">Eightieth </word>
|
5511
|
+
<word cardinal="90">Ninety-</word>
|
5512
|
+
<word ordinal="90">Ninetieth </word>
|
5513
|
+
<word cardinal="100">Hundred-</word>
|
5514
|
+
<word ordinal="100">Hundredth </word>
|
5515
|
+
</words>
|
5516
|
+
</xsl:variable>
|
5517
|
+
|
5518
|
+
<xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
|
5519
|
+
|
5520
|
+
<xsl:variable name="value">
|
5521
|
+
<xsl:choose>
|
5522
|
+
<xsl:when test="$ordinal != ''">
|
5523
|
+
<xsl:value-of select="$ordinal"/>
|
5524
|
+
</xsl:when>
|
5525
|
+
<xsl:otherwise>
|
5526
|
+
<xsl:choose>
|
5527
|
+
<xsl:when test="$number < 100">
|
5528
|
+
<xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
|
5529
|
+
<xsl:variable name="digit" select="substring($number,2)"/>
|
5530
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
|
5531
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
|
5532
|
+
</xsl:when>
|
5533
|
+
<xsl:otherwise>
|
5534
|
+
<!-- more 100 -->
|
5535
|
+
<xsl:variable name="hundred" select="substring($number,1,1)"/>
|
5536
|
+
<xsl:variable name="digits" select="number(substring($number,2))"/>
|
5537
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
|
5538
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
|
5539
|
+
<xsl:call-template name="number-to-words">
|
5540
|
+
<xsl:with-param name="number" select="$digits"/>
|
5541
|
+
</xsl:call-template>
|
5542
|
+
</xsl:otherwise>
|
5543
|
+
</xsl:choose>
|
5544
|
+
</xsl:otherwise>
|
5545
|
+
</xsl:choose>
|
5546
|
+
</xsl:variable>
|
5547
|
+
<xsl:choose>
|
5548
|
+
<xsl:when test="$first = 'true'">
|
5549
|
+
<xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
|
5550
|
+
<xsl:call-template name="capitalize">
|
5551
|
+
<xsl:with-param name="str" select="$value_lc"/>
|
5552
|
+
</xsl:call-template>
|
5553
|
+
</xsl:when>
|
5554
|
+
<xsl:otherwise>
|
5555
|
+
<xsl:value-of select="$value"/>
|
5556
|
+
</xsl:otherwise>
|
5557
|
+
</xsl:choose>
|
5558
|
+
</xsl:if>
|
5439
5559
|
</xsl:template></xsl:stylesheet>
|
@@ -1906,6 +1906,7 @@
|
|
1906
1906
|
|
1907
1907
|
|
1908
1908
|
|
1909
|
+
|
1909
1910
|
<!-- fn will be processed inside 'note' processing -->
|
1910
1911
|
|
1911
1912
|
|
@@ -1914,6 +1915,10 @@
|
|
1914
1915
|
|
1915
1916
|
|
1916
1917
|
|
1918
|
+
|
1919
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
1920
|
+
|
1921
|
+
|
1917
1922
|
<!-- except gb -->
|
1918
1923
|
|
1919
1924
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -1939,6 +1944,10 @@
|
|
1939
1944
|
<!-- fn processing -->
|
1940
1945
|
<xsl:call-template name="fn_display"/>
|
1941
1946
|
|
1947
|
+
|
1948
|
+
<!-- for PAS display Notes after footnotes -->
|
1949
|
+
|
1950
|
+
|
1942
1951
|
</fo:table-cell>
|
1943
1952
|
</fo:table-row>
|
1944
1953
|
</fo:table-body>
|
@@ -1996,6 +2005,7 @@
|
|
1996
2005
|
<xsl:if test="$parent-name = 'tfoot'">
|
1997
2006
|
|
1998
2007
|
|
2008
|
+
|
1999
2009
|
</xsl:if>
|
2000
2010
|
|
2001
2011
|
|
@@ -2127,8 +2137,13 @@
|
|
2127
2137
|
|
2128
2138
|
|
2129
2139
|
|
2140
|
+
|
2141
|
+
<!-- Table's note name (NOTE, for example) -->
|
2142
|
+
|
2130
2143
|
<fo:inline padding-right="2mm">
|
2131
2144
|
|
2145
|
+
|
2146
|
+
|
2132
2147
|
|
2133
2148
|
|
2134
2149
|
|
@@ -2136,6 +2151,8 @@
|
|
2136
2151
|
|
2137
2152
|
</fo:inline>
|
2138
2153
|
|
2154
|
+
|
2155
|
+
|
2139
2156
|
<xsl:apply-templates mode="process"/>
|
2140
2157
|
</fo:block>
|
2141
2158
|
|
@@ -2155,6 +2172,8 @@
|
|
2155
2172
|
<xsl:variable name="reference" select="@reference"/>
|
2156
2173
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2157
2174
|
<fo:block margin-bottom="12pt">
|
2175
|
+
|
2176
|
+
|
2158
2177
|
|
2159
2178
|
|
2160
2179
|
|
@@ -2172,6 +2191,7 @@
|
|
2172
2191
|
<xsl:value-of select="@reference"/>
|
2173
2192
|
|
2174
2193
|
|
2194
|
+
|
2175
2195
|
</fo:inline>
|
2176
2196
|
<fo:inline>
|
2177
2197
|
|
@@ -2321,6 +2341,7 @@
|
|
2321
2341
|
|
2322
2342
|
<xsl:value-of select="@reference"/>
|
2323
2343
|
|
2344
|
+
|
2324
2345
|
</fo:basic-link>
|
2325
2346
|
</fo:inline>
|
2326
2347
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -3324,6 +3345,7 @@
|
|
3324
3345
|
|
3325
3346
|
|
3326
3347
|
|
3348
|
+
|
3327
3349
|
<fo:block-container margin-left="0mm">
|
3328
3350
|
|
3329
3351
|
|
@@ -4522,9 +4544,10 @@
|
|
4522
4544
|
|
4523
4545
|
|
4524
4546
|
</xsl:if>
|
4525
|
-
|
4547
|
+
|
4548
|
+
|
4549
|
+
|
4526
4550
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4527
|
-
|
4528
4551
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4529
4552
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
4530
4553
|
</xsl:if>
|
@@ -4535,6 +4558,7 @@
|
|
4535
4558
|
|
4536
4559
|
|
4537
4560
|
|
4561
|
+
|
4538
4562
|
</xsl:if>
|
4539
4563
|
|
4540
4564
|
<xsl:apply-templates/>
|
@@ -5436,4 +5460,100 @@
|
|
5436
5460
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5437
5461
|
</xsl:choose>
|
5438
5462
|
</xsl:attribute>
|
5463
|
+
</xsl:template><xsl:template name="number-to-words">
|
5464
|
+
<xsl:param name="number"/>
|
5465
|
+
<xsl:param name="first"/>
|
5466
|
+
<xsl:if test="$number != ''">
|
5467
|
+
<xsl:variable name="words">
|
5468
|
+
<words>
|
5469
|
+
<word cardinal="1">One-</word>
|
5470
|
+
<word ordinal="1">First </word>
|
5471
|
+
<word cardinal="2">Two-</word>
|
5472
|
+
<word ordinal="2">Second </word>
|
5473
|
+
<word cardinal="3">Three-</word>
|
5474
|
+
<word ordinal="3">Third </word>
|
5475
|
+
<word cardinal="4">Four-</word>
|
5476
|
+
<word ordinal="4">Fourth </word>
|
5477
|
+
<word cardinal="5">Five-</word>
|
5478
|
+
<word ordinal="5">Fifth </word>
|
5479
|
+
<word cardinal="6">Six-</word>
|
5480
|
+
<word ordinal="6">Sixth </word>
|
5481
|
+
<word cardinal="7">Seven-</word>
|
5482
|
+
<word ordinal="7">Seventh </word>
|
5483
|
+
<word cardinal="8">Eight-</word>
|
5484
|
+
<word ordinal="8">Eighth </word>
|
5485
|
+
<word cardinal="9">Nine-</word>
|
5486
|
+
<word ordinal="9">Ninth </word>
|
5487
|
+
<word ordinal="10">Tenth </word>
|
5488
|
+
<word ordinal="11">Eleventh </word>
|
5489
|
+
<word ordinal="12">Twelfth </word>
|
5490
|
+
<word ordinal="13">Thirteenth </word>
|
5491
|
+
<word ordinal="14">Fourteenth </word>
|
5492
|
+
<word ordinal="15">Fifteenth </word>
|
5493
|
+
<word ordinal="16">Sixteenth </word>
|
5494
|
+
<word ordinal="17">Seventeenth </word>
|
5495
|
+
<word ordinal="18">Eighteenth </word>
|
5496
|
+
<word ordinal="19">Nineteenth </word>
|
5497
|
+
<word cardinal="20">Twenty-</word>
|
5498
|
+
<word ordinal="20">Twentieth </word>
|
5499
|
+
<word cardinal="30">Thirty-</word>
|
5500
|
+
<word ordinal="30">Thirtieth </word>
|
5501
|
+
<word cardinal="40">Forty-</word>
|
5502
|
+
<word ordinal="40">Fortieth </word>
|
5503
|
+
<word cardinal="50">Fifty-</word>
|
5504
|
+
<word ordinal="50">Fiftieth </word>
|
5505
|
+
<word cardinal="60">Sixty-</word>
|
5506
|
+
<word ordinal="60">Sixtieth </word>
|
5507
|
+
<word cardinal="70">Seventy-</word>
|
5508
|
+
<word ordinal="70">Seventieth </word>
|
5509
|
+
<word cardinal="80">Eighty-</word>
|
5510
|
+
<word ordinal="80">Eightieth </word>
|
5511
|
+
<word cardinal="90">Ninety-</word>
|
5512
|
+
<word ordinal="90">Ninetieth </word>
|
5513
|
+
<word cardinal="100">Hundred-</word>
|
5514
|
+
<word ordinal="100">Hundredth </word>
|
5515
|
+
</words>
|
5516
|
+
</xsl:variable>
|
5517
|
+
|
5518
|
+
<xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
|
5519
|
+
|
5520
|
+
<xsl:variable name="value">
|
5521
|
+
<xsl:choose>
|
5522
|
+
<xsl:when test="$ordinal != ''">
|
5523
|
+
<xsl:value-of select="$ordinal"/>
|
5524
|
+
</xsl:when>
|
5525
|
+
<xsl:otherwise>
|
5526
|
+
<xsl:choose>
|
5527
|
+
<xsl:when test="$number < 100">
|
5528
|
+
<xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
|
5529
|
+
<xsl:variable name="digit" select="substring($number,2)"/>
|
5530
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
|
5531
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
|
5532
|
+
</xsl:when>
|
5533
|
+
<xsl:otherwise>
|
5534
|
+
<!-- more 100 -->
|
5535
|
+
<xsl:variable name="hundred" select="substring($number,1,1)"/>
|
5536
|
+
<xsl:variable name="digits" select="number(substring($number,2))"/>
|
5537
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
|
5538
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
|
5539
|
+
<xsl:call-template name="number-to-words">
|
5540
|
+
<xsl:with-param name="number" select="$digits"/>
|
5541
|
+
</xsl:call-template>
|
5542
|
+
</xsl:otherwise>
|
5543
|
+
</xsl:choose>
|
5544
|
+
</xsl:otherwise>
|
5545
|
+
</xsl:choose>
|
5546
|
+
</xsl:variable>
|
5547
|
+
<xsl:choose>
|
5548
|
+
<xsl:when test="$first = 'true'">
|
5549
|
+
<xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
|
5550
|
+
<xsl:call-template name="capitalize">
|
5551
|
+
<xsl:with-param name="str" select="$value_lc"/>
|
5552
|
+
</xsl:call-template>
|
5553
|
+
</xsl:when>
|
5554
|
+
<xsl:otherwise>
|
5555
|
+
<xsl:value-of select="$value"/>
|
5556
|
+
</xsl:otherwise>
|
5557
|
+
</xsl:choose>
|
5558
|
+
</xsl:if>
|
5439
5559
|
</xsl:template></xsl:stylesheet>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-mpfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.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
|