metanorma-generic 3.2.0 → 3.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22323f43a3dd010a733c4e125a219b0fa1e6c6ae9f566acdb6540c9aa04fc927
4
- data.tar.gz: 1bc07cc00da944bd36c832427da46fa4a93107873256b172b453a4d1f940ee4c
3
+ metadata.gz: 612b2975e8d6a1884052d9cac7af493ebd1fe1de013524f7baa511eb0ffa620a
4
+ data.tar.gz: 0ac333266ae8ed70ac3adbb3e01a46b817393dc44410c63dd726a7a74bd891c9
5
5
  SHA512:
6
- metadata.gz: 574d5c20ca45f7d74d1865548f5aa9fe09187efaeaeadf984f2768264e20184b750fd434885ec069dcf3ed03d6493c8fb75c59bc9f862a51eae418aead9db9a9
7
- data.tar.gz: 6fda9039ba49b66fc273671af0daa1543aacdd74d8206088a555d67978a0ec6d86bd4488e1a6aa972820a9aaa1ba4da7ddfa4c14bb9746f5ca6ea74d96ce1e1e
6
+ metadata.gz: 992917cef52052efc53fbd3799f5c703d140c9c8d33fabef331116e4e68a726be58a53e81df4c9fefc1ca948a36a6b068de39c702709d87eae92caeb87569373
7
+ data.tar.gz: 6d75f39b8b7f89db43a5d03f413fd3f659e00876421d0f8c94df81969c3e8b739c1a7209604d27d79f1ac7b64a3772456cfbad55d5d1fada9c35af33a65d4fc8
@@ -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
- <data type="IDREF"/>
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="ISO8601Date"/>
1299
+ <ref name="ISO8601DateTime"/>
1300
1300
  </element>
1301
1301
  </define>
1302
1302
  <define name="validityEnds">
1303
1303
  <element name="validityEnds">
1304
- <ref name="ISO8601Date"/>
1304
+ <ref name="ISO8601DateTime"/>
1305
1305
  </element>
1306
1306
  </define>
1307
1307
  <define name="validityRevision">
1308
1308
  <element name="revision">
1309
- <ref name="ISO8601Date"/>
1309
+ <ref name="ISO8601DateTime"/>
1310
1310
  </element>
1311
1311
  </define>
1312
1312
  <define name="TypedTitleString">
@@ -27,10 +27,14 @@ module Metanorma
27
27
 
28
28
  def metadata_status(node, xml)
29
29
  xml.status do |s|
30
- s.stage ( node.attr("status") || node.attr("docstage") ||
30
+ add_noko_elem(s, "stage", node.attr("status") || node.attr("docstage") ||
31
31
  configuration.default_stage || "published")
32
- x = node.attr("substage") and s.substage x
33
- x = node.attr("iteration") and s.iteration x
32
+ # s.stage ( node.attr("status") || node.attr("docstage") ||
33
+ # configuration.default_stage || "published")
34
+ add_noko_elem(s, "substage", node.attr("substage"))
35
+ # x = node.attr("substage") and s.substage x
36
+ add_noko_elem(s, "iteration", node.attr("iteration"))
37
+ # x = node.attr("iteration") and s.iteration x
34
38
  end
35
39
  end
36
40
 
@@ -65,13 +69,14 @@ module Metanorma
65
69
  removed_count += 1
66
70
  end
67
71
  removed_count.zero? and break # Stop when no elems removed this pass
68
-
69
72
  end
70
73
  end
71
74
 
72
75
  def metadata_doctype(node, xml)
73
76
  d = doctype(node)
74
- xml.doctype d, attr_code(abbreviation: configuration&.doctypes&.dig(d))
77
+ add_noko_elem(xml, "doctype", d,
78
+ abbreviation: configuration&.doctypes&.dig(d))
79
+ # xml.doctype d, attr_code(abbreviation: configuration&.doctypes&.dig(d))
75
80
  end
76
81
 
77
82
  EXT_STRUCT = %w(_output _attribute _list).freeze
@@ -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 -->
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
- <element name="svg">
909
- <a:documentation>Add svg mark up to image</a:documentation>
910
- <oneOrMore>
911
- <choice>
912
- <text/>
913
- <ref name="AnyElement"/>
914
- </choice>
915
- </oneOrMore>
916
- </element>
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">
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Generic
3
- VERSION = "3.2.0".freeze
3
+ VERSION = "3.2.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-generic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.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-03 00:00:00.000000000 Z
11
+ date: 2025-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc