metanorma-ietf 3.6.6 → 3.6.7

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: edd5d53757c7142ccf379c7ffb83ecc79874c544593de69a9b1421a00e90cc3f
4
- data.tar.gz: ce343131a888ca5c1b617abfea081e2bee46c2f6c2162bd99331e0ce05add13e
3
+ metadata.gz: 6a507adfdfc4defd2390ebf2f7fb144c2ff4fbebeaa728a5df4c786c2410f0a9
4
+ data.tar.gz: efb0bb23d05e4e647c3effbdf1f5555a7781ef453534bddc5f0109811e4676fb
5
5
  SHA512:
6
- metadata.gz: 3440d8db12dda0936d60ded38bbe47c72fb76ffbbc5aac8ee914b0bb03f3808f93078bba4aeb69edf4133d7b4d6e2561419b9b1e8eaedeb2ce803f0817db1c73
7
- data.tar.gz: 74564e708027fd31b303cf215d6a5a98c25e4e8ed40bf58e207805d9a7a49ac6a882f483fbae3db4fdc92c973c5db22deb133b3ecfb0380d471b9d32954d1485
6
+ metadata.gz: 8c2a5ebe1e425b5389a7ec27e2f00acbf35ff7cd771e3344a332ae887fed53e37adb737de71f944151569ba4657070835d59cf3708db2687e4baa2322761c96e
7
+ data.tar.gz: 2305e96e1affa68ad4d9dc2c6ceaf2fc747f24f25edaf071fce2a2cc78762ba411b29453cd1a80f494c02dd1cf48abe1ca654ee6fafcea6922a932a837100dd8
@@ -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">
@@ -161,6 +161,10 @@ module Metanorma
161
161
  end
162
162
  end
163
163
 
164
+ def default_svg_conform_profile
165
+ :svg_1_2_rfc
166
+ end
167
+
164
168
  def html_extract_attributes(node)
165
169
  super.merge(usexinclude: node.attr("use-xinclude"))
166
170
  end
@@ -26,13 +26,16 @@ module Metanorma
26
26
 
27
27
  def metadata_series(node, xml)
28
28
  xml.series **{ type: "stream" } do |s|
29
- s.title (node.attr("submission-type") || "IETF")
29
+ add_noko_elem(s, "title", node.attr("submission-type") || "IETF")
30
+ # s.title (node.attr("submission-type") || "IETF")
30
31
  end
31
32
  a = node.attr("intended-series") and
32
33
  xml.series **{ type: "intended" } do |s|
33
34
  parts = a.split(/ /)
34
- s.title parts[0]
35
- s.number parts[1..-1].join(" ") if parts.size > 1
35
+ add_noko_elem(s, "title", parts[0])
36
+ # s.title parts[0]
37
+ add_noko_elem(s, "number", parts[1..-1].join(" ")) if parts.size > 1
38
+ # s.number parts[1..-1].join(" ") if parts.size > 1
36
39
  end
37
40
  end
38
41
 
@@ -53,16 +56,20 @@ module Metanorma
53
56
  def metadata_ext(node, xml)
54
57
  super
55
58
  x = node.attr("area") and x.split(/,\s*/).each do |a|
56
- xml.area a
59
+ add_noko_elem(xml, "area", a)
60
+ # xml.area a
57
61
  end
58
- xml.ipr (node.attr("ipr") || "trust200902")
62
+ add_noko_elem(xml, "ipr", node.attr("ipr") || "trust200902")
63
+ # xml.ipr (node.attr("ipr") || "trust200902")
59
64
  x = node.attr("consensus") and xml.consensus (x != "false")
60
65
  x = node.attr("index-include") and xml.indexInclude (x != "false")
61
- x = node.attr("ipr-extract") and xml.iprExtract x
66
+ add_noko_elem(xml, "iprExtract", node.attr("ipr-extract"))
67
+ # x = node.attr("ipr-extract") and xml.iprExtract x
62
68
  x = node.attr("sort-refs") and xml.sortRefs (x != "false")
63
69
  x = node.attr("sym-refs") and xml.symRefs (x != "false")
64
70
  x = node.attr("toc-include") and xml.tocInclude (x != "false")
65
- x = node.attr("toc-depth") and xml.tocDepth x
71
+ add_noko_elem(xml, "tocDepth", node.attr("toc-depth"))
72
+ # x = node.attr("toc-depth") and xml.tocDepth x
66
73
  x = node.attr("show-on-front-page") and xml.showOnFrontPage (x != "false")
67
74
  xml.pi { |pi| set_pi(node, pi) }
68
75
  end
@@ -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 Ietf
3
- VERSION = "3.6.6".freeze
3
+ VERSION = "3.6.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.6
4
+ version: 3.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: 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-ietf-data