metanorma-ietf 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb1cec379fce7c480cf942fe54bee31b39fa8a3ecf0ef754c4905dd66b8be9d3
4
- data.tar.gz: 75ad3c77bf523775e8fa8c5037509a5b822129b61e3525207f7097e26693523d
3
+ metadata.gz: 2f3bd81f995368fb7fd47b7566ab1d74c70c58e53e030b93203dbbc761bba4a9
4
+ data.tar.gz: ae1f956c086bbc4e649999a3aa368bd8c38b17a344efd44c6d0dd3816c9f6c68
5
5
  SHA512:
6
- metadata.gz: 3baa60b30f4f004ac154d9b56a5cf806e56cb84f46e94a3709b1dff5e99056ecc87876884220f1d51ec17c4da8ec057b9f1ad483538a1515434765e91ce2a8ef
7
- data.tar.gz: e0f663bb17f825e401c547fbb5c84e4143e075f5ff290cf512d96add28c04ba0fa395ee4f98158e395c697d801ab768224746a0eba75a97f78a49fe7b2182e83
6
+ metadata.gz: '08a29292e245d8deb7075f51a230dc768b18f0fb363255a76d6d4ed1098268e40a799d299e2477cb240d30c763a15d018d2f204d306327d6a1699902e1cf2618'
7
+ data.tar.gz: 4a494998ec4e47cf4eb7b8469e037919c85592f137bc5acf7439794fb9a7c9a265c74dae048cf2cbb6795dbad2aa8e18915e83170332e7bec595237d28b41742
@@ -8,6 +8,8 @@ require_relative "./validate"
8
8
  module Asciidoctor
9
9
  module Ietf
10
10
  class Converter < ::Asciidoctor::Standoc::Converter
11
+ XML_ROOT_TAG = "ietf-standard".freeze
12
+ XML_NAMESPACE = "https://www.metanorma.com/ns/ietf".freeze
11
13
 
12
14
  register_for "ietf"
13
15
 
@@ -17,18 +19,10 @@ module Asciidoctor
17
19
  end
18
20
 
19
21
  def makexml(node)
20
- result = ["<?xml version='1.0' encoding='UTF-8'?>\n<ietf-standard>"]
21
22
  @draft = node.attributes.has_key?("draft")
22
23
  @workgroups = cache_workgroup(node)
23
24
  @bcp_bold = !node.attr?("no-rfc-bold-bcp14")
24
- result << noko { |ixml| front node, ixml }
25
- result << noko { |ixml| middle node, ixml }
26
- result << "</ietf-standard>"
27
- result = textcleanup(result)
28
- ret1 = cleanup(Nokogiri::XML(result))
29
- validate(ret1) unless @novalid
30
- ret1.root.add_namespace(nil, "https://open.ribose.com/standards/ietf")
31
- ret1
25
+ super
32
26
  end
33
27
 
34
28
  def document(node)
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
2
+ <grammar ns="https://www.metanorma.com/ns/ietf" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
3
  <!--
4
4
  Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
5
5
  we cannot have a new default namespace: we will end up with a grammar with two different
@@ -68,6 +68,9 @@ module IsoDoc::Ietf
68
68
  def page_break(_out)
69
69
  end
70
70
 
71
+ def pagebreak_parse(_node, _out)
72
+ end
73
+
71
74
  def br_parse(node, out)
72
75
  if @sourcecode
73
76
  out.br
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ietf
3
- VERSION = "2.0.2".freeze
3
+ VERSION = "2.0.3".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: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc