metanorma-cc 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/cc/isodoc.rng +32 -7
- data/lib/isodoc/cc/cc.standard.xsl +122 -2
- data/lib/metanorma/cc/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: ff890df09212f9af0060e20ca9303d3ac0939cfaeaeae4c3e9dbf9fce1e4e21d
|
4
|
+
data.tar.gz: 1c70cb2dab8b0a5af72c4f3dd7b7b91398b280997b39c8fec0d7203ef49d82ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aac2d5367e7f35ad86f6af110b5fd62e7b7cf449f1a62dcadb5688312a04d60c6ffa8afecd7ba5bfc311739b7d16367727c086ebfc5a032d8c9ea34f5cf03b8
|
7
|
+
data.tar.gz: 4c659675adaef96f5d48d752c220855f163571411bdd324850b63203aab68db9fdf9cf961adcdb1507faae581ed37b390a5eef835cc14e1abf2673d629e1b44e
|
@@ -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>
|
@@ -1953,6 +1953,7 @@
|
|
1953
1953
|
|
1954
1954
|
|
1955
1955
|
|
1956
|
+
|
1956
1957
|
<!-- fn will be processed inside 'note' processing -->
|
1957
1958
|
|
1958
1959
|
|
@@ -1961,6 +1962,10 @@
|
|
1961
1962
|
|
1962
1963
|
|
1963
1964
|
|
1965
|
+
|
1966
|
+
<!-- for BSI (not PAS) display Notes before footnotes -->
|
1967
|
+
|
1968
|
+
|
1964
1969
|
<!-- except gb -->
|
1965
1970
|
|
1966
1971
|
<xsl:apply-templates select="../*[local-name()='note']" mode="process"/>
|
@@ -1986,6 +1991,10 @@
|
|
1986
1991
|
<!-- fn processing -->
|
1987
1992
|
<xsl:call-template name="fn_display"/>
|
1988
1993
|
|
1994
|
+
|
1995
|
+
<!-- for PAS display Notes after footnotes -->
|
1996
|
+
|
1997
|
+
|
1989
1998
|
</fo:table-cell>
|
1990
1999
|
</fo:table-row>
|
1991
2000
|
</fo:table-body>
|
@@ -2043,6 +2052,7 @@
|
|
2043
2052
|
<xsl:if test="$parent-name = 'tfoot'">
|
2044
2053
|
|
2045
2054
|
|
2055
|
+
|
2046
2056
|
</xsl:if>
|
2047
2057
|
|
2048
2058
|
|
@@ -2171,8 +2181,13 @@
|
|
2171
2181
|
|
2172
2182
|
|
2173
2183
|
|
2184
|
+
|
2185
|
+
<!-- Table's note name (NOTE, for example) -->
|
2186
|
+
|
2174
2187
|
<fo:inline padding-right="2mm">
|
2175
2188
|
|
2189
|
+
|
2190
|
+
|
2176
2191
|
|
2177
2192
|
|
2178
2193
|
|
@@ -2180,6 +2195,8 @@
|
|
2180
2195
|
|
2181
2196
|
</fo:inline>
|
2182
2197
|
|
2198
|
+
|
2199
|
+
|
2183
2200
|
<xsl:apply-templates mode="process"/>
|
2184
2201
|
</fo:block>
|
2185
2202
|
|
@@ -2199,6 +2216,8 @@
|
|
2199
2216
|
<xsl:variable name="reference" select="@reference"/>
|
2200
2217
|
<xsl:if test="not(preceding-sibling::*[@reference = $reference])"> <!-- only unique reference puts in note-->
|
2201
2218
|
<fo:block margin-bottom="12pt">
|
2219
|
+
|
2220
|
+
|
2202
2221
|
|
2203
2222
|
|
2204
2223
|
|
@@ -2218,6 +2237,7 @@
|
|
2218
2237
|
<xsl:value-of select="@reference"/>
|
2219
2238
|
|
2220
2239
|
|
2240
|
+
|
2221
2241
|
</fo:inline>
|
2222
2242
|
<fo:inline>
|
2223
2243
|
|
@@ -2367,6 +2387,7 @@
|
|
2367
2387
|
|
2368
2388
|
<xsl:value-of select="@reference"/>
|
2369
2389
|
|
2390
|
+
|
2370
2391
|
</fo:basic-link>
|
2371
2392
|
</fo:inline>
|
2372
2393
|
</xsl:template><xsl:template match="*[local-name()='fn']/*[local-name()='p']">
|
@@ -3372,6 +3393,7 @@
|
|
3372
3393
|
|
3373
3394
|
|
3374
3395
|
|
3396
|
+
|
3375
3397
|
<fo:block-container margin-left="0mm">
|
3376
3398
|
|
3377
3399
|
|
@@ -4574,9 +4596,10 @@
|
|
4574
4596
|
|
4575
4597
|
|
4576
4598
|
</xsl:if>
|
4577
|
-
|
4599
|
+
|
4600
|
+
|
4601
|
+
|
4578
4602
|
<fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
|
4579
|
-
|
4580
4603
|
<xsl:if test="normalize-space(@citeas) = ''">
|
4581
4604
|
<xsl:attribute name="fox:alt-text"><xsl:value-of select="."/></xsl:attribute>
|
4582
4605
|
</xsl:if>
|
@@ -4587,6 +4610,7 @@
|
|
4587
4610
|
|
4588
4611
|
|
4589
4612
|
|
4613
|
+
|
4590
4614
|
</xsl:if>
|
4591
4615
|
|
4592
4616
|
<xsl:apply-templates/>
|
@@ -5506,4 +5530,100 @@
|
|
5506
5530
|
<xsl:otherwise><xsl:value-of select="$default"/></xsl:otherwise>
|
5507
5531
|
</xsl:choose>
|
5508
5532
|
</xsl:attribute>
|
5533
|
+
</xsl:template><xsl:template name="number-to-words">
|
5534
|
+
<xsl:param name="number"/>
|
5535
|
+
<xsl:param name="first"/>
|
5536
|
+
<xsl:if test="$number != ''">
|
5537
|
+
<xsl:variable name="words">
|
5538
|
+
<words>
|
5539
|
+
<word cardinal="1">One-</word>
|
5540
|
+
<word ordinal="1">First </word>
|
5541
|
+
<word cardinal="2">Two-</word>
|
5542
|
+
<word ordinal="2">Second </word>
|
5543
|
+
<word cardinal="3">Three-</word>
|
5544
|
+
<word ordinal="3">Third </word>
|
5545
|
+
<word cardinal="4">Four-</word>
|
5546
|
+
<word ordinal="4">Fourth </word>
|
5547
|
+
<word cardinal="5">Five-</word>
|
5548
|
+
<word ordinal="5">Fifth </word>
|
5549
|
+
<word cardinal="6">Six-</word>
|
5550
|
+
<word ordinal="6">Sixth </word>
|
5551
|
+
<word cardinal="7">Seven-</word>
|
5552
|
+
<word ordinal="7">Seventh </word>
|
5553
|
+
<word cardinal="8">Eight-</word>
|
5554
|
+
<word ordinal="8">Eighth </word>
|
5555
|
+
<word cardinal="9">Nine-</word>
|
5556
|
+
<word ordinal="9">Ninth </word>
|
5557
|
+
<word ordinal="10">Tenth </word>
|
5558
|
+
<word ordinal="11">Eleventh </word>
|
5559
|
+
<word ordinal="12">Twelfth </word>
|
5560
|
+
<word ordinal="13">Thirteenth </word>
|
5561
|
+
<word ordinal="14">Fourteenth </word>
|
5562
|
+
<word ordinal="15">Fifteenth </word>
|
5563
|
+
<word ordinal="16">Sixteenth </word>
|
5564
|
+
<word ordinal="17">Seventeenth </word>
|
5565
|
+
<word ordinal="18">Eighteenth </word>
|
5566
|
+
<word ordinal="19">Nineteenth </word>
|
5567
|
+
<word cardinal="20">Twenty-</word>
|
5568
|
+
<word ordinal="20">Twentieth </word>
|
5569
|
+
<word cardinal="30">Thirty-</word>
|
5570
|
+
<word ordinal="30">Thirtieth </word>
|
5571
|
+
<word cardinal="40">Forty-</word>
|
5572
|
+
<word ordinal="40">Fortieth </word>
|
5573
|
+
<word cardinal="50">Fifty-</word>
|
5574
|
+
<word ordinal="50">Fiftieth </word>
|
5575
|
+
<word cardinal="60">Sixty-</word>
|
5576
|
+
<word ordinal="60">Sixtieth </word>
|
5577
|
+
<word cardinal="70">Seventy-</word>
|
5578
|
+
<word ordinal="70">Seventieth </word>
|
5579
|
+
<word cardinal="80">Eighty-</word>
|
5580
|
+
<word ordinal="80">Eightieth </word>
|
5581
|
+
<word cardinal="90">Ninety-</word>
|
5582
|
+
<word ordinal="90">Ninetieth </word>
|
5583
|
+
<word cardinal="100">Hundred-</word>
|
5584
|
+
<word ordinal="100">Hundredth </word>
|
5585
|
+
</words>
|
5586
|
+
</xsl:variable>
|
5587
|
+
|
5588
|
+
<xsl:variable name="ordinal" select="xalan:nodeset($words)//word[@ordinal = $number]/text()"/>
|
5589
|
+
|
5590
|
+
<xsl:variable name="value">
|
5591
|
+
<xsl:choose>
|
5592
|
+
<xsl:when test="$ordinal != ''">
|
5593
|
+
<xsl:value-of select="$ordinal"/>
|
5594
|
+
</xsl:when>
|
5595
|
+
<xsl:otherwise>
|
5596
|
+
<xsl:choose>
|
5597
|
+
<xsl:when test="$number < 100">
|
5598
|
+
<xsl:variable name="decade" select="concat(substring($number,1,1), '0')"/>
|
5599
|
+
<xsl:variable name="digit" select="substring($number,2)"/>
|
5600
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $decade]/text()"/>
|
5601
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@ordinal = $digit]/text()"/>
|
5602
|
+
</xsl:when>
|
5603
|
+
<xsl:otherwise>
|
5604
|
+
<!-- more 100 -->
|
5605
|
+
<xsl:variable name="hundred" select="substring($number,1,1)"/>
|
5606
|
+
<xsl:variable name="digits" select="number(substring($number,2))"/>
|
5607
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = $hundred]/text()"/>
|
5608
|
+
<xsl:value-of select="xalan:nodeset($words)//word[@cardinal = '100']/text()"/>
|
5609
|
+
<xsl:call-template name="number-to-words">
|
5610
|
+
<xsl:with-param name="number" select="$digits"/>
|
5611
|
+
</xsl:call-template>
|
5612
|
+
</xsl:otherwise>
|
5613
|
+
</xsl:choose>
|
5614
|
+
</xsl:otherwise>
|
5615
|
+
</xsl:choose>
|
5616
|
+
</xsl:variable>
|
5617
|
+
<xsl:choose>
|
5618
|
+
<xsl:when test="$first = 'true'">
|
5619
|
+
<xsl:variable name="value_lc" select="java:toLowerCase(java:java.lang.String.new($value))"/>
|
5620
|
+
<xsl:call-template name="capitalize">
|
5621
|
+
<xsl:with-param name="str" select="$value_lc"/>
|
5622
|
+
</xsl:call-template>
|
5623
|
+
</xsl:when>
|
5624
|
+
<xsl:otherwise>
|
5625
|
+
<xsl:value-of select="$value"/>
|
5626
|
+
</xsl:otherwise>
|
5627
|
+
</xsl:choose>
|
5628
|
+
</xsl:if>
|
5509
5629
|
</xsl:template></xsl:stylesheet>
|
data/lib/metanorma/cc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-cc
|
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: metanorma-generic
|