metanorma-ieee 1.6.0 → 1.6.1
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/ieee/ieee.amendment.xsl +20 -22
- data/lib/isodoc/ieee/ieee.standard.xsl +20 -22
- data/lib/metanorma/ieee/biblio.rng +4 -4
- data/lib/metanorma/ieee/front.rb +45 -23
- data/lib/metanorma/ieee/isodoc.rng +27 -10
- data/lib/metanorma/ieee/validate_section.rb +3 -3
- data/lib/metanorma/ieee/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: 981de660026400309643f712f0472336c1d318c07bff099eb3f79919359d41ae
|
|
4
|
+
data.tar.gz: bb78f47367fec5a7862ef9a3a56cbf21d5e18110c4115e470552e3066d1e0be0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec4df0967a7721bca9e26755e5a9d43719a14f02e48abb2fd0a4065bfca35f1d1cba1382048b76c5ceca03d805651edfeab250de49b33b57b4fd691bf0669020
|
|
7
|
+
data.tar.gz: f534d6ec8797629482c4bde760a08eb7c58505c3408d64ce20b924f31208fd6a24ec8294812344ff5fc0f7511aabd840e0ad7a4853900d8543b692b74daec572
|
|
@@ -2272,22 +2272,6 @@
|
|
|
2272
2272
|
<!-- title -->
|
|
2273
2273
|
<!-- ====== -->
|
|
2274
2274
|
|
|
2275
|
-
<!-- <xsl:template match="mn:annex/mn:title">
|
|
2276
|
-
<fo:block font-size="16pt" text-align="center" margin-bottom="48pt" keep-with-next="always">
|
|
2277
|
-
<xsl:apply-templates />
|
|
2278
|
-
</fo:block>
|
|
2279
|
-
</xsl:template> -->
|
|
2280
|
-
|
|
2281
|
-
<!-- Bibliography -->
|
|
2282
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:fmt-title">
|
|
2283
|
-
<fo:block xsl:use-attribute-sets="references-non-normative-title-style">
|
|
2284
|
-
|
|
2285
|
-
<xsl:call-template name="refine_references-non-normative-title-style"/>
|
|
2286
|
-
|
|
2287
|
-
<xsl:apply-templates/>
|
|
2288
|
-
</fo:block>
|
|
2289
|
-
</xsl:template>
|
|
2290
|
-
|
|
2291
2275
|
<!-- <xsl:template match="mn:fmt-title[@inline-header = 'true'][following-sibling::*[1][self::mn:p] or following-sibling::*[1][self::mn:clause] or not(following-sibling::*)]" priority="3"> -->
|
|
2292
2276
|
<xsl:template match="mn:fmt-title[../@inline-header = 'true'][following-sibling::*[1][self::mn:p] or following-sibling::*[1][self::mn:clause] or not(following-sibling::*)]" priority="3">
|
|
2293
2277
|
<fo:block>
|
|
@@ -2358,7 +2342,7 @@
|
|
|
2358
2342
|
</xsl:variable>
|
|
2359
2343
|
|
|
2360
2344
|
<xsl:choose>
|
|
2361
|
-
<xsl:when test="string-length($section) != 0 and $element-name = 'fo:block' and ($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report')">
|
|
2345
|
+
<xsl:when test="string-length($section) != 0 and $element-name = 'fo:block' and ($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and not(parent::mn:references[not(@normative='true')])">
|
|
2362
2346
|
<fo:list-block>
|
|
2363
2347
|
<xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*"/>
|
|
2364
2348
|
|
|
@@ -13937,16 +13921,17 @@
|
|
|
13937
13921
|
<!-- END Admonition -->
|
|
13938
13922
|
<!-- ================ -->
|
|
13939
13923
|
|
|
13940
|
-
<xsl:attribute-set name="
|
|
13924
|
+
<xsl:attribute-set name="bibliography-title-style">
|
|
13941
13925
|
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
|
13942
13926
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
13943
13927
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
|
13928
|
+
<xsl:attribute name="space-before">0pt</xsl:attribute>
|
|
13944
13929
|
<xsl:attribute name="margin-bottom">36pt</xsl:attribute>
|
|
13945
13930
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
13946
13931
|
<xsl:attribute name="role">H1</xsl:attribute>
|
|
13947
13932
|
</xsl:attribute-set>
|
|
13948
13933
|
|
|
13949
|
-
<xsl:template name="
|
|
13934
|
+
<xsl:template name="refine_bibliography-title-style">
|
|
13950
13935
|
</xsl:template>
|
|
13951
13936
|
|
|
13952
13937
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
|
@@ -16027,6 +16012,9 @@
|
|
|
16027
16012
|
<!-- ===================================== -->
|
|
16028
16013
|
|
|
16029
16014
|
<xsl:attribute-set name="annex-title-style">
|
|
16015
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
16016
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
16017
|
+
<xsl:attribute name="margin-bottom">24pt</xsl:attribute>
|
|
16030
16018
|
</xsl:attribute-set> <!-- annex-title-style -->
|
|
16031
16019
|
|
|
16032
16020
|
<xsl:template name="refine_annex-title-style">
|
|
@@ -16162,9 +16150,6 @@
|
|
|
16162
16150
|
<xsl:if test="ancestor::mn:acknowledgements">
|
|
16163
16151
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
16164
16152
|
</xsl:if>
|
|
16165
|
-
<xsl:if test="ancestor::mn:annex">
|
|
16166
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
16167
|
-
</xsl:if>
|
|
16168
16153
|
<xsl:if test="not(following-sibling::*[1][self::mn:clause])">
|
|
16169
16154
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16170
16155
|
</xsl:if>
|
|
@@ -16172,6 +16157,12 @@
|
|
|
16172
16157
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16173
16158
|
</xsl:if>
|
|
16174
16159
|
</xsl:if>
|
|
16160
|
+
<xsl:if test="parent::mn:annex"><!-- Annex title -->
|
|
16161
|
+
<xsl:variable name="annex_title_styles">
|
|
16162
|
+
<styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
|
|
16163
|
+
</xsl:variable>
|
|
16164
|
+
<xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
|
|
16165
|
+
</xsl:if>
|
|
16175
16166
|
<xsl:if test="$level >= 2">
|
|
16176
16167
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16177
16168
|
</xsl:if>
|
|
@@ -16190,6 +16181,13 @@
|
|
|
16190
16181
|
<xsl:attribute name="space-before"><xsl:value-of select="$space_before"/></xsl:attribute>
|
|
16191
16182
|
<xsl:if test="ancestor::mn:introduction"><xsl:attribute name="margin-top"><xsl:value-of select="$space_before"/></xsl:attribute></xsl:if>
|
|
16192
16183
|
|
|
16184
|
+
<xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
|
|
16185
|
+
<xsl:variable name="bibliography_title_styles">
|
|
16186
|
+
<styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
|
|
16187
|
+
</xsl:variable>
|
|
16188
|
+
<xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
|
|
16189
|
+
</xsl:if>
|
|
16190
|
+
|
|
16193
16191
|
<xsl:if test="@type = 'floating-title' or @type = 'section-title'">
|
|
16194
16192
|
<xsl:copy-of select="@id"/>
|
|
16195
16193
|
</xsl:if>
|
|
@@ -2272,22 +2272,6 @@
|
|
|
2272
2272
|
<!-- title -->
|
|
2273
2273
|
<!-- ====== -->
|
|
2274
2274
|
|
|
2275
|
-
<!-- <xsl:template match="mn:annex/mn:title">
|
|
2276
|
-
<fo:block font-size="16pt" text-align="center" margin-bottom="48pt" keep-with-next="always">
|
|
2277
|
-
<xsl:apply-templates />
|
|
2278
|
-
</fo:block>
|
|
2279
|
-
</xsl:template> -->
|
|
2280
|
-
|
|
2281
|
-
<!-- Bibliography -->
|
|
2282
|
-
<xsl:template match="mn:references[not(@normative='true')]/mn:fmt-title">
|
|
2283
|
-
<fo:block xsl:use-attribute-sets="references-non-normative-title-style">
|
|
2284
|
-
|
|
2285
|
-
<xsl:call-template name="refine_references-non-normative-title-style"/>
|
|
2286
|
-
|
|
2287
|
-
<xsl:apply-templates/>
|
|
2288
|
-
</fo:block>
|
|
2289
|
-
</xsl:template>
|
|
2290
|
-
|
|
2291
2275
|
<!-- <xsl:template match="mn:fmt-title[@inline-header = 'true'][following-sibling::*[1][self::mn:p] or following-sibling::*[1][self::mn:clause] or not(following-sibling::*)]" priority="3"> -->
|
|
2292
2276
|
<xsl:template match="mn:fmt-title[../@inline-header = 'true'][following-sibling::*[1][self::mn:p] or following-sibling::*[1][self::mn:clause] or not(following-sibling::*)]" priority="3">
|
|
2293
2277
|
<fo:block>
|
|
@@ -2358,7 +2342,7 @@
|
|
|
2358
2342
|
</xsl:variable>
|
|
2359
2343
|
|
|
2360
2344
|
<xsl:choose>
|
|
2361
|
-
<xsl:when test="string-length($section) != 0 and $element-name = 'fo:block' and ($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report')">
|
|
2345
|
+
<xsl:when test="string-length($section) != 0 and $element-name = 'fo:block' and ($current_template = 'whitepaper' or $current_template = 'icap-whitepaper' or $current_template = 'industry-connection-report') and not(parent::mn:references[not(@normative='true')])">
|
|
2362
2346
|
<fo:list-block>
|
|
2363
2347
|
<xsl:copy-of select="xalan:nodeset($title_styles)/styles/@*"/>
|
|
2364
2348
|
|
|
@@ -13937,16 +13921,17 @@
|
|
|
13937
13921
|
<!-- END Admonition -->
|
|
13938
13922
|
<!-- ================ -->
|
|
13939
13923
|
|
|
13940
|
-
<xsl:attribute-set name="
|
|
13924
|
+
<xsl:attribute-set name="bibliography-title-style">
|
|
13941
13925
|
<xsl:attribute name="font-size">16pt</xsl:attribute>
|
|
13942
13926
|
<xsl:attribute name="font-weight">bold</xsl:attribute>
|
|
13943
13927
|
<xsl:attribute name="margin-top">6pt</xsl:attribute>
|
|
13928
|
+
<xsl:attribute name="space-before">0pt</xsl:attribute>
|
|
13944
13929
|
<xsl:attribute name="margin-bottom">36pt</xsl:attribute>
|
|
13945
13930
|
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
13946
13931
|
<xsl:attribute name="role">H1</xsl:attribute>
|
|
13947
13932
|
</xsl:attribute-set>
|
|
13948
13933
|
|
|
13949
|
-
<xsl:template name="
|
|
13934
|
+
<xsl:template name="refine_bibliography-title-style">
|
|
13950
13935
|
</xsl:template>
|
|
13951
13936
|
|
|
13952
13937
|
<!-- bibitem in Normative References (references/@normative="true") -->
|
|
@@ -16027,6 +16012,9 @@
|
|
|
16027
16012
|
<!-- ===================================== -->
|
|
16028
16013
|
|
|
16029
16014
|
<xsl:attribute-set name="annex-title-style">
|
|
16015
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
|
16016
|
+
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
16017
|
+
<xsl:attribute name="margin-bottom">24pt</xsl:attribute>
|
|
16030
16018
|
</xsl:attribute-set> <!-- annex-title-style -->
|
|
16031
16019
|
|
|
16032
16020
|
<xsl:template name="refine_annex-title-style">
|
|
@@ -16162,9 +16150,6 @@
|
|
|
16162
16150
|
<xsl:if test="ancestor::mn:acknowledgements">
|
|
16163
16151
|
<xsl:attribute name="font-size">11pt</xsl:attribute>
|
|
16164
16152
|
</xsl:if>
|
|
16165
|
-
<xsl:if test="ancestor::mn:annex">
|
|
16166
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
16167
|
-
</xsl:if>
|
|
16168
16153
|
<xsl:if test="not(following-sibling::*[1][self::mn:clause])">
|
|
16169
16154
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16170
16155
|
</xsl:if>
|
|
@@ -16172,6 +16157,12 @@
|
|
|
16172
16157
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16173
16158
|
</xsl:if>
|
|
16174
16159
|
</xsl:if>
|
|
16160
|
+
<xsl:if test="parent::mn:annex"><!-- Annex title -->
|
|
16161
|
+
<xsl:variable name="annex_title_styles">
|
|
16162
|
+
<styles xsl:use-attribute-sets="annex-title-style"><xsl:call-template name="refine_annex-title-style"/></styles>
|
|
16163
|
+
</xsl:variable>
|
|
16164
|
+
<xsl:copy-of select="xalan:nodeset($annex_title_styles)/styles/@*"/>
|
|
16165
|
+
</xsl:if>
|
|
16175
16166
|
<xsl:if test="$level >= 2">
|
|
16176
16167
|
<xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
|
16177
16168
|
</xsl:if>
|
|
@@ -16190,6 +16181,13 @@
|
|
|
16190
16181
|
<xsl:attribute name="space-before"><xsl:value-of select="$space_before"/></xsl:attribute>
|
|
16191
16182
|
<xsl:if test="ancestor::mn:introduction"><xsl:attribute name="margin-top"><xsl:value-of select="$space_before"/></xsl:attribute></xsl:if>
|
|
16192
16183
|
|
|
16184
|
+
<xsl:if test="parent::mn:references[not(@normative='true')]"><!-- Bibliography section title -->
|
|
16185
|
+
<xsl:variable name="bibliography_title_styles">
|
|
16186
|
+
<styles xsl:use-attribute-sets="bibliography-title-style"><xsl:call-template name="refine_bibliography-title-style"/></styles>
|
|
16187
|
+
</xsl:variable>
|
|
16188
|
+
<xsl:copy-of select="xalan:nodeset($bibliography_title_styles)/styles/@*"/>
|
|
16189
|
+
</xsl:if>
|
|
16190
|
+
|
|
16193
16191
|
<xsl:if test="@type = 'floating-title' or @type = 'section-title'">
|
|
16194
16192
|
<xsl:copy-of select="@id"/>
|
|
16195
16193
|
</xsl:if>
|
|
@@ -690,7 +690,7 @@ Examples include GRID, LEI, CrossRef, and Ringgold</a:documentation>
|
|
|
690
690
|
<define name="CitationType">
|
|
691
691
|
<attribute name="bibitemid">
|
|
692
692
|
<a:documentation>Bibliographic item that the citation applies to, referenced as the anchor of a bibliographic description</a:documentation>
|
|
693
|
-
<
|
|
693
|
+
<ref name="IdRefType"/>
|
|
694
694
|
</attribute>
|
|
695
695
|
<choice>
|
|
696
696
|
<zeroOrMore>
|
|
@@ -1296,17 +1296,17 @@ for which this claim of validity is made, if applicable</a:documentation>
|
|
|
1296
1296
|
</define>
|
|
1297
1297
|
<define name="validityBegins">
|
|
1298
1298
|
<element name="validityBegins">
|
|
1299
|
-
<ref name="
|
|
1299
|
+
<ref name="ISO8601DateTime"/>
|
|
1300
1300
|
</element>
|
|
1301
1301
|
</define>
|
|
1302
1302
|
<define name="validityEnds">
|
|
1303
1303
|
<element name="validityEnds">
|
|
1304
|
-
<ref name="
|
|
1304
|
+
<ref name="ISO8601DateTime"/>
|
|
1305
1305
|
</element>
|
|
1306
1306
|
</define>
|
|
1307
1307
|
<define name="validityRevision">
|
|
1308
1308
|
<element name="revision">
|
|
1309
|
-
<ref name="
|
|
1309
|
+
<ref name="ISO8601DateTime"/>
|
|
1310
1310
|
</element>
|
|
1311
1311
|
</define>
|
|
1312
1312
|
<define name="TypedTitleString">
|
data/lib/metanorma/ieee/front.rb
CHANGED
|
@@ -52,22 +52,32 @@ module Metanorma
|
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def metadata_other_id(node, xml)
|
|
55
|
-
a = node.attr("isbn-pdf") and
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
# a = node.attr("isbn-pdf") and
|
|
56
|
+
add_noko_elem(xml, "docidentifier", node.attr("isbn-pdf"),
|
|
57
|
+
type: "ISBN", scope: "PDF")
|
|
58
|
+
# xml.docidentifier a, type: "ISBN", scope: "PDF"
|
|
59
|
+
# a = node.attr("isbn-print") and
|
|
60
|
+
# xml.docidentifier a, type: "ISBN", scope: "print"
|
|
61
|
+
add_noko_elem(xml, "docidentifier", node.attr("isbn-print"),
|
|
62
|
+
type: "ISBN", scope: "print")
|
|
63
|
+
add_noko_elem(xml, "docnumber", node.attr("docnumber"))
|
|
64
|
+
# xml.docnumber node.attr("docnumber")
|
|
60
65
|
end
|
|
61
66
|
|
|
62
67
|
def metadata_id(node, xml)
|
|
63
68
|
if id = node.attr("docidentifier")
|
|
64
|
-
xml.docidentifier id, **attr_code(type: "IEEE", primary: "true")
|
|
69
|
+
# xml.docidentifier id, **attr_code(type: "IEEE", primary: "true")
|
|
70
|
+
add_noko_elem(xml, "docidentifier", id, type: "IEEE", primary: "true")
|
|
65
71
|
else ieee_id(node, xml)
|
|
66
72
|
end
|
|
67
|
-
id = node.attr("stdid-pdf") and
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
# id = node.attr("stdid-pdf") and
|
|
74
|
+
# xml.docidentifier id, type: "IEEE", scope: "PDF"
|
|
75
|
+
add_noko_elem(xml, "docidentifier", node.attr("stdid-pdf"),
|
|
76
|
+
type: "IEEE", scope: "PDF")
|
|
77
|
+
# id = node.attr("stdid-print") and
|
|
78
|
+
# xml.docidentifier id, type: "IEEE", scope: "print"
|
|
79
|
+
add_noko_elem(xml, "docidentifier", node.attr("stdid-print"),
|
|
80
|
+
type: "IEEE", scope: "print")
|
|
71
81
|
end
|
|
72
82
|
|
|
73
83
|
def ieee_id(node, xml)
|
|
@@ -128,8 +138,11 @@ module Metanorma
|
|
|
128
138
|
end
|
|
129
139
|
|
|
130
140
|
def ieee_id_out(xml, params)
|
|
131
|
-
id = pubid_select(params).create(**params)
|
|
132
|
-
xml.docidentifier id.to_s, type: "IEEE", primary: "true"
|
|
141
|
+
# id = pubid_select(params).create(**params)
|
|
142
|
+
# xml.docidentifier id.to_s, type: "IEEE", primary: "true"
|
|
143
|
+
add_noko_elem(xml, "docidentifier",
|
|
144
|
+
pubid_select(params).create(**params).to_s,
|
|
145
|
+
type: "IEEE", primary: "true")
|
|
133
146
|
end
|
|
134
147
|
|
|
135
148
|
def pubid_select(_params)
|
|
@@ -148,7 +161,8 @@ module Metanorma
|
|
|
148
161
|
status = node.attr("status") || node.attr("docstage") ||
|
|
149
162
|
(node.attr("version") || node.attr("draft") ? "draft" : "approved")
|
|
150
163
|
xml.status do |s|
|
|
151
|
-
s
|
|
164
|
+
add_noko_elem(s, "stage", status)
|
|
165
|
+
# s.stage status
|
|
152
166
|
end
|
|
153
167
|
end
|
|
154
168
|
|
|
@@ -157,7 +171,8 @@ module Metanorma
|
|
|
157
171
|
end
|
|
158
172
|
|
|
159
173
|
def metadata_subdoctype(node, xml)
|
|
160
|
-
xml.subdoctype (node.attr("docsubtype") || "document")
|
|
174
|
+
# xml.subdoctype (node.attr("docsubtype") || "document")
|
|
175
|
+
add_noko_elem(xml, "subdoctype", node.attr("docsubtype") || "document")
|
|
161
176
|
end
|
|
162
177
|
|
|
163
178
|
def org_abbrev
|
|
@@ -172,25 +187,32 @@ module Metanorma
|
|
|
172
187
|
|
|
173
188
|
def metadata_ext(node, xml)
|
|
174
189
|
super
|
|
175
|
-
|
|
190
|
+
add_noko_elem(xml, "trial_use", node.attr("trial-use"))
|
|
176
191
|
program(node, xml)
|
|
177
192
|
end
|
|
178
193
|
|
|
179
194
|
def program(node, xml)
|
|
180
|
-
|
|
195
|
+
add_noko_elem(xml, "program", node.attr("program"))
|
|
181
196
|
end
|
|
182
197
|
|
|
183
198
|
def structured_id(node, xml)
|
|
184
199
|
node.attr("docnumber") or return
|
|
185
200
|
xml.structuredidentifier do |i|
|
|
186
|
-
i
|
|
187
|
-
i.
|
|
201
|
+
add_noko_elem(i, "docnumber", node.attr("docnumber"))
|
|
202
|
+
# i.docnumber node.attr("docnumber")
|
|
203
|
+
add_noko_elem(i, "agency", "IEEE")
|
|
204
|
+
# i.agency "IEEE"
|
|
188
205
|
i.class_ doctype(node)
|
|
189
|
-
|
|
190
|
-
a =
|
|
191
|
-
|
|
192
|
-
a = node
|
|
193
|
-
|
|
206
|
+
add_noko_elem(i, "edition", node.attr("edition"))
|
|
207
|
+
# a = node.attr("edition") and i.edition a
|
|
208
|
+
add_noko_elem(i, "version", metadata_version_value(node))
|
|
209
|
+
# a = metadata_version_value(node) and i.version a
|
|
210
|
+
add_noko_elem(i, "amendment", node.attr("amendment-number"))
|
|
211
|
+
# a = node.attr("amendment-number") and i.amendment a
|
|
212
|
+
add_noko_elem(i, "corrigendum", node.attr("corrigendum-number"))
|
|
213
|
+
# a = node.attr("corrigendum-number") and i.corrigendum a
|
|
214
|
+
add_noko_elem(i, "year", node.attr("copyright-year"))
|
|
215
|
+
# a = node.attr("copyright-year") and i.year a
|
|
194
216
|
end
|
|
195
217
|
end
|
|
196
218
|
|
|
@@ -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.4 -->
|
|
4
4
|
|
|
5
5
|
<!--
|
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
|
@@ -905,15 +905,32 @@ titlecase, or lowercase</a:documentation>
|
|
|
905
905
|
</element>
|
|
906
906
|
</define>
|
|
907
907
|
<define name="image" combine="choice">
|
|
908
|
-
<
|
|
909
|
-
<
|
|
910
|
-
|
|
911
|
-
<
|
|
912
|
-
|
|
913
|
-
<
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
908
|
+
<choice>
|
|
909
|
+
<element name="image">
|
|
910
|
+
<ref name="RequiredId"/>
|
|
911
|
+
<ref name="ImageAttributes"/>
|
|
912
|
+
<optional>
|
|
913
|
+
<element name="svg">
|
|
914
|
+
<a:documentation>Allow svg in image/svg, for consistency</a:documentation>
|
|
915
|
+
<oneOrMore>
|
|
916
|
+
<choice>
|
|
917
|
+
<text/>
|
|
918
|
+
<ref name="AnyElement"/>
|
|
919
|
+
</choice>
|
|
920
|
+
</oneOrMore>
|
|
921
|
+
</element>
|
|
922
|
+
</optional>
|
|
923
|
+
</element>
|
|
924
|
+
<element name="svg">
|
|
925
|
+
<a:documentation>Add svg mark up to image</a:documentation>
|
|
926
|
+
<oneOrMore>
|
|
927
|
+
<choice>
|
|
928
|
+
<text/>
|
|
929
|
+
<ref name="AnyElement"/>
|
|
930
|
+
</choice>
|
|
931
|
+
</oneOrMore>
|
|
932
|
+
</element>
|
|
933
|
+
</choice>
|
|
917
934
|
</define>
|
|
918
935
|
<define name="ParagraphFnBody" combine="interleave">
|
|
919
936
|
<ref name="BlockSource">
|
|
@@ -50,10 +50,10 @@ module Metanorma
|
|
|
50
50
|
].freeze
|
|
51
51
|
|
|
52
52
|
SECTIONS_XPATH =
|
|
53
|
-
"//preface/abstract | //sections/terms |
|
|
53
|
+
"//preface/abstract | //sections/terms | //annex | "\
|
|
54
54
|
"//sections/definitions | //sections/clause | "\
|
|
55
|
-
"//references[not(parent::clause)] | "\
|
|
56
|
-
"//clause[descendant::references][not(parent::clause)]".freeze
|
|
55
|
+
"//references[not(parent::clause)][not(ancestor::boilerplate)] | "\
|
|
56
|
+
"//clause[descendant::references][not(parent::clause)][not(ancestor::boilerplate)]".freeze
|
|
57
57
|
|
|
58
58
|
def sections_sequence_validate(root)
|
|
59
59
|
names, n = sections_sequence_validate_start(root)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-ieee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.1
|
|
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-11-
|
|
11
|
+
date: 2025-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-standoc
|