metanorma-cc 2.7.1 → 2.7.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 +4 -4
- data/lib/isodoc/cc/cc.standard.xsl +111 -32
- data/lib/isodoc/cc/metadata.rb +5 -2
- data/lib/metanorma/cc/biblio-standoc.rng +0 -49
- data/lib/metanorma/cc/biblio.rng +11 -1
- data/lib/metanorma/cc/converter.rb +0 -15
- data/lib/metanorma/cc/isodoc.rng +6 -1
- data/lib/metanorma/cc/relaton-cc.rng +0 -15
- data/lib/metanorma/cc/version.rb +1 -1
- data/metanorma.yml +2 -0
- 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: d3917b61450c3f05e1ad1334238db14e403978ad43086f5b4f3c82a33be560b7
|
4
|
+
data.tar.gz: 9040216710ff9b11ace3fcd58c521c32b0bd70786224ef0ade142456d9b80a01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb51d8d34704bad1f8da99e4786bc57811b55f53cae917bca44f29e5b01c6dd3cb2236f079c0eda17b7b1506f22f0ef8f5e0cf66b393747bed060de8c72aacb1
|
7
|
+
data.tar.gz: 28bb1190b80152a151da5a848f6bf98d1c775335f4204738370461c2c2d43f215cd649c6f00c9a40cd76ff0b98866951c1f49ffbf81feda84c80b66bb125f3af
|
@@ -300,9 +300,8 @@
|
|
300
300
|
<fo:block margin-bottom="12pt">
|
301
301
|
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:copyright/mn:owner/mn:organization/mn:name"/>
|
302
302
|
<xsl:text> TC </xsl:text>
|
303
|
-
<xsl:value-of select="/mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"/>
|
304
|
-
|
305
|
-
<xsl:value-of select="//mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author' and mn:description[normalize-space(@language) = ''] = 'Technical committee']]/mn:organization/mn:subdivision[@type = 'Technical committee']/mn:identifier"/> -->
|
303
|
+
<!-- <xsl:value-of select="/mn:metanorma/mn:bibdata/mn:ext/mn:editorialgroup/mn:technical-committee"/> -->
|
304
|
+
<xsl:value-of select="//mn:metanorma/mn:bibdata/mn:contributor[mn:role[@type = 'author']/mn:description = 'committee']/mn:organization/mn:subdivision[@type = 'Technical committee']/mn:name"/>
|
306
305
|
<xsl:text> </xsl:text>
|
307
306
|
</fo:block>
|
308
307
|
</fo:block>
|
@@ -2210,13 +2209,23 @@
|
|
2210
2209
|
<xsl:attribute-set name="copyright-statement-style">
|
2211
2210
|
</xsl:attribute-set> <!-- copyright-statement-style -->
|
2212
2211
|
|
2212
|
+
<xsl:template name="refine_copyright-statement-style">
|
2213
|
+
</xsl:template>
|
2214
|
+
|
2213
2215
|
<xsl:attribute-set name="copyright-statement-title-style">
|
2214
2216
|
</xsl:attribute-set> <!-- copyright-statement-title-style -->
|
2215
2217
|
|
2218
|
+
<xsl:template name="refine_copyright-statement-title-style">
|
2219
|
+
</xsl:template>
|
2220
|
+
|
2216
2221
|
<xsl:attribute-set name="copyright-statement-p-style">
|
2217
2222
|
</xsl:attribute-set> <!-- copyright-statement-p-style -->
|
2218
2223
|
|
2219
|
-
|
2224
|
+
<xsl:template name="refine_copyright-statement-p-style">
|
2225
|
+
|
2226
|
+
</xsl:template>
|
2227
|
+
|
2228
|
+
<xsl:attribute-set name="license-statement-style">
|
2220
2229
|
</xsl:attribute-set> <!-- license-statement-style -->
|
2221
2230
|
|
2222
2231
|
<xsl:attribute-set name="license-statement-title-style">
|
@@ -2226,6 +2235,10 @@
|
|
2226
2235
|
<xsl:attribute-set name="license-statement-p-style">
|
2227
2236
|
</xsl:attribute-set> <!-- license-statement-p-style -->
|
2228
2237
|
|
2238
|
+
<xsl:template name="refine_license-statement-p-style">
|
2239
|
+
|
2240
|
+
</xsl:template>
|
2241
|
+
|
2229
2242
|
<xsl:attribute-set name="legal-statement-style">
|
2230
2243
|
</xsl:attribute-set> <!-- legal-statement-style -->
|
2231
2244
|
|
@@ -2253,6 +2266,8 @@
|
|
2253
2266
|
<!-- ================================= -->
|
2254
2267
|
<xsl:template match="mn:copyright-statement">
|
2255
2268
|
<fo:block xsl:use-attribute-sets="copyright-statement-style" role="SKIP">
|
2269
|
+
<xsl:call-template name="refine_copyright-statement-style"/>
|
2270
|
+
|
2256
2271
|
<xsl:apply-templates/>
|
2257
2272
|
</fo:block>
|
2258
2273
|
</xsl:template> <!-- copyright-statement -->
|
@@ -3349,7 +3364,7 @@
|
|
3349
3364
|
</xsl:otherwise>
|
3350
3365
|
</xsl:choose>
|
3351
3366
|
</xsl:variable>
|
3352
|
-
<xsl:if test="$key = 'font-family' or
|
3367
|
+
<xsl:if test="$key = 'font-family' or $key = 'font-size' or $key = 'color' or $key = 'baseline-shift' or $key = 'line-height' ">
|
3353
3368
|
<style name="{$key}"><xsl:value-of select="$value"/></style>
|
3354
3369
|
</xsl:if>
|
3355
3370
|
<xsl:if test="$key = 'text-indent'">
|
@@ -10846,13 +10861,31 @@
|
|
10846
10861
|
<!-- skip here, see the template 'fmt-review-start' -->
|
10847
10862
|
</xsl:when>
|
10848
10863
|
<xsl:otherwise>
|
10849
|
-
|
10850
|
-
|
10851
|
-
|
10852
|
-
|
10864
|
+
<xsl:choose>
|
10865
|
+
<xsl:when test="parent::mn:example or parent::mn:termexample or parent::mn:note or parent::mn:termnote">
|
10866
|
+
<fo:block font-size="1pt" line-height="0.1">
|
10867
|
+
<xsl:call-template name="fo_inline_bookmark">
|
10868
|
+
<xsl:with-param name="bookmark_id" select="$bookmark_id"/>
|
10869
|
+
</xsl:call-template>
|
10870
|
+
</fo:block>
|
10871
|
+
</xsl:when>
|
10872
|
+
<xsl:otherwise>
|
10873
|
+
<xsl:call-template name="fo_inline_bookmark">
|
10874
|
+
<xsl:with-param name="bookmark_id" select="$bookmark_id"/>
|
10875
|
+
</xsl:call-template>
|
10876
|
+
</xsl:otherwise>
|
10877
|
+
</xsl:choose>
|
10853
10878
|
</xsl:otherwise>
|
10854
10879
|
</xsl:choose>
|
10855
10880
|
</xsl:template>
|
10881
|
+
|
10882
|
+
<xsl:template name="fo_inline_bookmark">
|
10883
|
+
<xsl:param name="bookmark_id"/>
|
10884
|
+
<!-- <fo:inline id="{@id}" font-size="1pt"/> -->
|
10885
|
+
<fo:inline id="{@id}" font-size="1pt"><xsl:if test="preceding-sibling::node()[self::mn:fmt-annotation-start][@source = $bookmark_id] and following-sibling::node()[self::mn:fmt-annotation-end][@source = $bookmark_id]"><xsl:attribute name="line-height">0.1</xsl:attribute></xsl:if><xsl:value-of select="$hair_space"/></fo:inline>
|
10886
|
+
<!-- we need to add zero-width space, otherwise this fo:inline is missing in IF xml -->
|
10887
|
+
<xsl:if test="not(following-sibling::node()[normalize-space() != ''])"><fo:inline font-size="1pt"> </fo:inline></xsl:if>
|
10888
|
+
</xsl:template>
|
10856
10889
|
<!-- =================== -->
|
10857
10890
|
<!-- End of Index processing -->
|
10858
10891
|
<!-- =================== -->
|
@@ -12740,11 +12773,35 @@
|
|
12740
12773
|
|
12741
12774
|
<xsl:template match="mn:svgmap"/>
|
12742
12775
|
|
12776
|
+
<xsl:template match="mn:name[following-sibling::*[1][self::mn:fmt-name]]"/>
|
12777
|
+
|
12743
12778
|
<!-- for correct rendering combining chars, added in mode="update_xml_step2" -->
|
12744
12779
|
<xsl:template match="*[local-name() = 'lang_none']">
|
12745
12780
|
<fo:inline xml:lang="none"><xsl:value-of select="."/></fo:inline>
|
12746
12781
|
</xsl:template>
|
12747
12782
|
|
12783
|
+
<xsl:template name="addTagElementT">
|
12784
|
+
<xsl:variable name="title_">
|
12785
|
+
<xsl:apply-templates select="mn:fmt-title"/>
|
12786
|
+
</xsl:variable>
|
12787
|
+
<xsl:variable name="title__">
|
12788
|
+
<xsl:for-each select="xalan:nodeset($title_)/*/node()">
|
12789
|
+
<xsl:choose>
|
12790
|
+
<xsl:when test="self::text()"><xsl:text> </xsl:text><xsl:value-of select="."/><xsl:text> </xsl:text></xsl:when>
|
12791
|
+
<xsl:otherwise><xsl:text> </xsl:text><xsl:copy-of select="."/><xsl:text> </xsl:text></xsl:otherwise>
|
12792
|
+
</xsl:choose>
|
12793
|
+
</xsl:for-each>
|
12794
|
+
</xsl:variable>
|
12795
|
+
<xsl:variable name="title" select="normalize-space($title__)"/>
|
12796
|
+
<xsl:if test="$title != ''">
|
12797
|
+
<xsl:attribute name="fox:title">
|
12798
|
+
<xsl:if test="ancestor::mn:sections">
|
12799
|
+
<xsl:text>Section </xsl:text>
|
12800
|
+
</xsl:if>
|
12801
|
+
<xsl:value-of select="$title"/></xsl:attribute>
|
12802
|
+
</xsl:if>
|
12803
|
+
</xsl:template>
|
12804
|
+
|
12748
12805
|
<xsl:template name="replaceChar">
|
12749
12806
|
<xsl:param name="text"/>
|
12750
12807
|
<xsl:param name="replace"/>
|
@@ -13511,6 +13568,13 @@
|
|
13511
13568
|
<xsl:with-param name="default" select="$text_align_default"/>
|
13512
13569
|
</xsl:call-template>
|
13513
13570
|
<xsl:call-template name="setKeepAttributes"/>
|
13571
|
+
<xsl:if test="node()[1][self::mn:span][contains(@style, 'line-height')]">
|
13572
|
+
<xsl:variable name="styles">
|
13573
|
+
<xsl:apply-templates select="*[1]"/>
|
13574
|
+
</xsl:variable>
|
13575
|
+
<!-- move attribute line-height from inline to block -->
|
13576
|
+
<xsl:attribute name="line-height"><xsl:value-of select="xalan:nodeset($styles)//*/@line-height"/></xsl:attribute>
|
13577
|
+
</xsl:if>
|
13514
13578
|
</xsl:template>
|
13515
13579
|
|
13516
13580
|
<xsl:template name="setKeepAttributes">
|
@@ -13536,34 +13600,41 @@
|
|
13536
13600
|
<fo:block-container absolute-position="fixed" left="0mm" top="0mm" font-size="0" id="__internal_layout__coverpage{$suffix}_{$name}_{$number}_{generate-id()}">
|
13537
13601
|
<fo:block>
|
13538
13602
|
<xsl:for-each select="/mn:metanorma/mn:metanorma-extension/mn:presentation-metadata[mn:name = $name][1]/mn:value/mn:image[$num]">
|
13539
|
-
|
13540
|
-
|
13541
|
-
|
13542
|
-
<xsl:attribute name="content-height"><xsl:value-of select="$pageHeight"/>mm</xsl:attribute>
|
13543
|
-
<xsl:call-template name="getSVG"/>
|
13544
|
-
</fo:instream-foreign-object>
|
13545
|
-
</xsl:when>
|
13546
|
-
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
13547
|
-
<fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
|
13548
|
-
</xsl:when>
|
13549
|
-
<xsl:otherwise> <!-- bitmap image -->
|
13550
|
-
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
13551
|
-
<xsl:if test="$coverimage_src != ''">
|
13552
|
-
<xsl:variable name="coverpage">
|
13553
|
-
<xsl:call-template name="getImageURL">
|
13554
|
-
<xsl:with-param name="src" select="$coverimage_src"/>
|
13555
|
-
</xsl:call-template>
|
13556
|
-
</xsl:variable>
|
13557
|
-
<!-- <xsl:variable name="coverpage" select="concat('url(file:',$basepath, 'coverpage1.png', ')')"/> --> <!-- for DEBUG -->
|
13558
|
-
<fo:external-graphic src="{$coverpage}" width="{$pageWidth}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
13559
|
-
</xsl:if>
|
13560
|
-
</xsl:otherwise>
|
13561
|
-
</xsl:choose>
|
13603
|
+
|
13604
|
+
<xsl:call-template name="insertPageImage"/>
|
13605
|
+
|
13562
13606
|
</xsl:for-each>
|
13563
13607
|
</fo:block>
|
13564
13608
|
</fo:block-container>
|
13565
13609
|
</xsl:template>
|
13566
13610
|
|
13611
|
+
<xsl:template name="insertPageImage">
|
13612
|
+
<xsl:param name="svg_content_height" select="$pageHeight"/>
|
13613
|
+
<xsl:param name="bitmap_width" select="$pageWidth"/>
|
13614
|
+
<xsl:choose>
|
13615
|
+
<xsl:when test="*[local-name() = 'svg'] or java:endsWith(java:java.lang.String.new(@src), '.svg')">
|
13616
|
+
<fo:instream-foreign-object fox:alt-text="Image Front">
|
13617
|
+
<xsl:attribute name="content-height"><xsl:value-of select="$svg_content_height"/>mm</xsl:attribute>
|
13618
|
+
<xsl:call-template name="getSVG"/>
|
13619
|
+
</fo:instream-foreign-object>
|
13620
|
+
</xsl:when>
|
13621
|
+
<xsl:when test="starts-with(@src, 'data:application/pdf;base64')">
|
13622
|
+
<fo:external-graphic src="{@src}" fox:alt-text="Image Front"/>
|
13623
|
+
</xsl:when>
|
13624
|
+
<xsl:otherwise> <!-- bitmap image -->
|
13625
|
+
<xsl:variable name="coverimage_src" select="normalize-space(@src)"/>
|
13626
|
+
<xsl:if test="$coverimage_src != ''">
|
13627
|
+
<xsl:variable name="coverpage">
|
13628
|
+
<xsl:call-template name="getImageURL">
|
13629
|
+
<xsl:with-param name="src" select="$coverimage_src"/>
|
13630
|
+
</xsl:call-template>
|
13631
|
+
</xsl:variable>
|
13632
|
+
<fo:external-graphic src="{$coverpage}" width="{$bitmap_width}mm" content-height="scale-to-fit" scaling="uniform" fox:alt-text="Image Front"/>
|
13633
|
+
</xsl:if>
|
13634
|
+
</xsl:otherwise>
|
13635
|
+
</xsl:choose>
|
13636
|
+
</xsl:template>
|
13637
|
+
|
13567
13638
|
<xsl:template name="getImageURL">
|
13568
13639
|
<xsl:param name="src"/>
|
13569
13640
|
<xsl:choose>
|
@@ -13991,6 +14062,14 @@
|
|
13991
14062
|
</xsl:attribute>
|
13992
14063
|
</xsl:template>
|
13993
14064
|
|
14065
|
+
<xsl:template name="getCharByCodePoint">
|
14066
|
+
<xsl:param name="codepoint"/>
|
14067
|
+
<xsl:param name="radix">16</xsl:param>
|
14068
|
+
<xsl:variable name="codepointInt" select="java:java.lang.Integer.parseInt($codepoint,$radix)"/>
|
14069
|
+
<xsl:variable name="chars" select="java:java.lang.Character.toChars($codepointInt)"/>
|
14070
|
+
<xsl:value-of select="java:java.lang.String.new($chars)"/>
|
14071
|
+
</xsl:template>
|
14072
|
+
|
13994
14073
|
<xsl:template name="substring-after-last">
|
13995
14074
|
<xsl:param name="value"/>
|
13996
14075
|
<xsl:param name="delimiter"/>
|
data/lib/isodoc/cc/metadata.rb
CHANGED
@@ -14,7 +14,8 @@ module IsoDoc
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def title(isoxml, _out)
|
17
|
-
main = isoxml.at(ns("//bibdata/title[@language='en']"))
|
17
|
+
main = isoxml.at(ns("//bibdata/title[@language='en']"))
|
18
|
+
&.children&.to_xml
|
18
19
|
set(:doctitle, main)
|
19
20
|
end
|
20
21
|
|
@@ -23,7 +24,9 @@ module IsoDoc
|
|
23
24
|
end
|
24
25
|
|
25
26
|
def author(isoxml, _out)
|
26
|
-
tc = isoxml.at(ns("//bibdata/
|
27
|
+
tc = isoxml.at(ns("//bibdata/contributor[role/@type = 'author']" \
|
28
|
+
"[role/description = 'committee']/organization/subdivision" \
|
29
|
+
"[@type = 'Technical committee']/name"))
|
27
30
|
set(:tc, tc.text) if tc
|
28
31
|
super
|
29
32
|
end
|
@@ -76,12 +76,6 @@ from other documents in the same doctype</a:documentation>
|
|
76
76
|
<ref name="flavor">
|
77
77
|
<a:documentation>Flavour of Metanorma used to process this document</a:documentation>
|
78
78
|
</ref>
|
79
|
-
<optional>
|
80
|
-
<ref name="editorialgroup">
|
81
|
-
<a:documentation>Groups associated with the production of the standards document, typically within
|
82
|
-
a standards definition organization</a:documentation>
|
83
|
-
</ref>
|
84
|
-
</optional>
|
85
79
|
<zeroOrMore>
|
86
80
|
<ref name="ics">
|
87
81
|
<a:documentation>Classification of the document contents taken from the International Classification of Standards</a:documentation>
|
@@ -130,49 +124,6 @@ a standards definition organization</a:documentation>
|
|
130
124
|
However we prefer not to hardcode it, given ongoing extension.</a:documentation>
|
131
125
|
<text/>
|
132
126
|
</define>
|
133
|
-
<define name="editorialgroup">
|
134
|
-
<a:documentation>A group associated with the production of the standards document, typically within
|
135
|
-
a standards definition organization</a:documentation>
|
136
|
-
<element name="editorialgroup">
|
137
|
-
<oneOrMore>
|
138
|
-
<ref name="technical-committee">
|
139
|
-
<a:documentation>A technical committee associated with the production of the standards document</a:documentation>
|
140
|
-
</ref>
|
141
|
-
</oneOrMore>
|
142
|
-
</element>
|
143
|
-
</define>
|
144
|
-
<define name="technical-committee">
|
145
|
-
<a:documentation>Technical committee associated with the production of a standards document</a:documentation>
|
146
|
-
<element name="technical-committee">
|
147
|
-
<ref name="IsoWorkgroup"/>
|
148
|
-
</element>
|
149
|
-
</define>
|
150
|
-
<define name="IsoWorkgroup">
|
151
|
-
<optional>
|
152
|
-
<attribute name="number">
|
153
|
-
<a:documentation>Numeric identifier of the technical committee</a:documentation>
|
154
|
-
</attribute>
|
155
|
-
</optional>
|
156
|
-
<optional>
|
157
|
-
<attribute name="type">
|
158
|
-
<a:documentation>Type of the technical committee, used in identifying the technical committee</a:documentation>
|
159
|
-
</attribute>
|
160
|
-
</optional>
|
161
|
-
<optional>
|
162
|
-
<attribute name="identifier">
|
163
|
-
<a:documentation>Non-numeric, complete identifier of the technical committee</a:documentation>
|
164
|
-
</attribute>
|
165
|
-
</optional>
|
166
|
-
<optional>
|
167
|
-
<attribute name="prefix">
|
168
|
-
<a:documentation>Disambiguating prefix added to number to form the identifier of the technical committee,
|
169
|
-
typically indicating its type</a:documentation>
|
170
|
-
</attribute>
|
171
|
-
</optional>
|
172
|
-
<text>
|
173
|
-
<a:documentation>Name of the technical committee</a:documentation>
|
174
|
-
</text>
|
175
|
-
</define>
|
176
127
|
<define name="ics">
|
177
128
|
<a:documentation>Classification taken from the International Classification of Standards.
|
178
129
|
ICS is defined by ISO here -- https://www.iso.org/publication/PUB100033.html</a:documentation>
|
data/lib/metanorma/cc/biblio.rng
CHANGED
@@ -242,6 +242,8 @@ Detailed in https://www.relaton.org/model/creator/</a:documentation>
|
|
242
242
|
</choice>
|
243
243
|
</define>
|
244
244
|
<define name="roledescription">
|
245
|
+
<a:documentation>A more detailed description of the role of the contributor
|
246
|
+
Some descriptions are reserved words; in particular, the editorial committee of a standard has the role description "committee"</a:documentation>
|
245
247
|
<element name="description">
|
246
248
|
<ref name="LocalizedMarkedUpString"/>
|
247
249
|
</element>
|
@@ -443,7 +445,10 @@ real names (if the person is named with a pseudonym or user name); previous lega
|
|
443
445
|
</oneOrMore>
|
444
446
|
<zeroOrMore>
|
445
447
|
<ref name="subdivision">
|
446
|
-
<a:documentation>The subdivision of the organization directly involved with the production of the bibliographic item
|
448
|
+
<a:documentation>The subdivision of the organization directly involved with the production of the bibliographic item.
|
449
|
+
Multiple subdivisions can be specified for an organization, with no implication of hierarchical
|
450
|
+
relation between them
|
451
|
+
Editorial and advisory groups are represented as consecutive subdivisions of the SDO</a:documentation>
|
447
452
|
</ref>
|
448
453
|
</zeroOrMore>
|
449
454
|
<optional>
|
@@ -485,6 +490,11 @@ real names (if the person is named with a pseudonym or user name); previous lega
|
|
485
490
|
<a:documentation>The type of subdivision</a:documentation>
|
486
491
|
</attribute>
|
487
492
|
</optional>
|
493
|
+
<optional>
|
494
|
+
<attribute name="subtype">
|
495
|
+
<a:documentation>The subtype of subdivision; e.g. different types of technical committee</a:documentation>
|
496
|
+
</attribute>
|
497
|
+
</optional>
|
488
498
|
<ref name="OrganizationType">
|
489
499
|
<a:documentation>The subdivision, modelled recursively as an organization</a:documentation>
|
490
500
|
</ref>
|
@@ -16,21 +16,6 @@ module Metanorma
|
|
16
16
|
Metanorma::Cc.configuration
|
17
17
|
end
|
18
18
|
|
19
|
-
def metadata_committee(node, xml)
|
20
|
-
return unless node.attr("technical-committee")
|
21
|
-
|
22
|
-
xml.editorialgroup do |a|
|
23
|
-
a.committee node.attr("technical-committee"),
|
24
|
-
**attr_code(type: node.attr("technical-committee-type"))
|
25
|
-
i = 2
|
26
|
-
while node.attr("technical-committee_#{i}")
|
27
|
-
a.committee node.attr("technical-committee_#{i}"),
|
28
|
-
**attr_code(type: node.attr("technical-committee-type_#{i}"))
|
29
|
-
i += 1
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
19
|
def outputs(node, ret)
|
35
20
|
File.open("#{@filename}.xml", "w:UTF-8") { |f| f.write(ret) }
|
36
21
|
presentation_xml_converter(node).convert("#{@filename}.xml")
|
data/lib/metanorma/cc/isodoc.rng
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- VERSION v2.1.
|
3
|
+
<!-- VERSION v2.1.1 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -2233,6 +2233,11 @@ used in document amendments</a:documentation>
|
|
2233
2233
|
<ref name="RequiredId"/>
|
2234
2234
|
<ref name="NumberingAttributes"/>
|
2235
2235
|
<ref name="BlockAttributes"/>
|
2236
|
+
<optional>
|
2237
|
+
<attribute name="type">
|
2238
|
+
<a:documentation>Semantic classification of note</a:documentation>
|
2239
|
+
</attribute>
|
2240
|
+
</optional>
|
2236
2241
|
<oneOrMore>
|
2237
2242
|
<choice>
|
2238
2243
|
<a:documentation>Content of the term note</a:documentation>
|
@@ -14,20 +14,5 @@
|
|
14
14
|
<value>advisory</value>
|
15
15
|
</choice>
|
16
16
|
</define>
|
17
|
-
<define name="editorialgroup">
|
18
|
-
<element name="editorialgroup">
|
19
|
-
<oneOrMore>
|
20
|
-
<ref name="technical-committee"/>
|
21
|
-
</oneOrMore>
|
22
|
-
</element>
|
23
|
-
</define>
|
24
|
-
<define name="technical-committee">
|
25
|
-
<element name="committee">
|
26
|
-
<optional>
|
27
|
-
<attribute name="type"/>
|
28
|
-
</optional>
|
29
|
-
<text/>
|
30
|
-
</element>
|
31
|
-
</define>
|
32
17
|
</include>
|
33
18
|
</grammar>
|
data/lib/metanorma/cc/version.rb
CHANGED
data/metanorma.yml
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: 2.7.
|
4
|
+
version: 2.7.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: 2025-08-
|
11
|
+
date: 2025-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: metanorma-generic
|