metanorma-mpfd 0.3.21 → 0.3.23

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +17 -0
  3. data/Gemfile +1 -8
  4. data/README.adoc +1 -96
  5. data/lib/asciidoctor/mpfd/biblio.rng +166 -567
  6. data/lib/asciidoctor/mpfd/converter.rb +84 -7
  7. data/lib/asciidoctor/mpfd/isodoc.rng +727 -763
  8. data/lib/asciidoctor/mpfd/isostandard.rng +1054 -0
  9. data/lib/asciidoctor/mpfd/mpfd.rng +145 -11
  10. data/lib/asciidoctor/mpfd/pdf.js +31 -0
  11. data/lib/asciidoctor/mpfd/section.rb +51 -23
  12. data/lib/asciidoctor/mpfd.rb +1 -0
  13. data/lib/isodoc/mpfd/html/header.html +6 -64
  14. data/lib/isodoc/mpfd/html/html_rsd_titlepage.html +4 -4
  15. data/lib/isodoc/mpfd/html/htmlstyle.scss +505 -200
  16. data/lib/isodoc/mpfd/html/rsd.scss +30 -149
  17. data/lib/isodoc/mpfd/html/scripts.html +27 -25
  18. data/lib/isodoc/mpfd/html/scripts.pdf.html +70 -0
  19. data/lib/isodoc/mpfd/html/word_rsd_titlepage.html +2 -2
  20. data/lib/isodoc/mpfd/html/wordstyle.scss +9 -61
  21. data/lib/isodoc/mpfd/html_convert.rb +258 -4
  22. data/lib/isodoc/mpfd/i18n-en.yaml +0 -1
  23. data/lib/isodoc/mpfd/metadata.rb +32 -8
  24. data/lib/isodoc/mpfd/{base_convert.rb → pdf_convert.rb} +137 -40
  25. data/lib/isodoc/mpfd/word_convert.rb +292 -4
  26. data/lib/metanorma/mpfd/processor.rb +4 -8
  27. data/lib/metanorma/mpfd/version.rb +1 -1
  28. data/lib/metanorma-mpfd.rb +1 -0
  29. data/metanorma-mpfd.gemspec +8 -7
  30. metadata +66 -33
  31. data/.github/workflows/macos.yml +0 -39
  32. data/.github/workflows/ubuntu.yml +0 -53
  33. data/.github/workflows/windows.yml +0 -41
  34. data/.hound.yml +0 -3
  35. data/.rubocop.yml +0 -10
  36. data/lib/asciidoctor/mpfd/basicdoc.rng +0 -1059
  37. data/lib/asciidoctor/mpfd/reqt.rng +0 -171
  38. data/lib/asciidoctor/mpfd/validate.rb +0 -30
  39. data/lib/isodoc/mpfd/i18n-zh-Hans.yaml +0 -2
@@ -1,18 +1,102 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <grammar ns="https://www.metanorma.org/ns/mpfd" xmlns="http://relaxng.org/ns/structure/1.0">
2
+ <grammar 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
6
6
  namespaces, one for isostandard and one for csand additions. And we do not want that.
7
7
  -->
8
- <include href="isodoc.rng">
8
+ <include href="isostandard.rng">
9
9
  <start>
10
10
  <ref name="mpfd-standard"/>
11
11
  </start>
12
- <define name="DocumentType">
12
+ <define name="language">
13
+ <element name="language">
14
+ <value>en</value>
15
+ </element>
16
+ </define>
17
+ <define name="docidentifier">
18
+ <element name="docidentifier">
19
+ <text/>
20
+ </element>
21
+ </define>
22
+ <define name="btitle">
23
+ <element name="title">
24
+ <ref name="FormattedString"/>
25
+ </element>
26
+ </define>
27
+ <define name="figure">
28
+ <element name="figure">
29
+ <attribute name="id">
30
+ <data type="ID"/>
31
+ </attribute>
32
+ <optional>
33
+ <ref name="source"/>
34
+ </optional>
35
+ <optional>
36
+ <ref name="tname"/>
37
+ </optional>
38
+ <choice>
39
+ <oneOrMore>
40
+ <ref name="figure"/>
41
+ </oneOrMore>
42
+ <group>
43
+ <choice>
44
+ <zeroOrMore>
45
+ <ref name="TextElement"/>
46
+ </zeroOrMore>
47
+ <ref name="pre"/>
48
+ </choice>
49
+ <zeroOrMore>
50
+ <ref name="note"/>
51
+ </zeroOrMore>
52
+ <optional>
53
+ <ref name="dl"/>
54
+ </optional>
55
+ </group>
56
+ </choice>
57
+ </element>
58
+ </define>
59
+ <define name="status">
60
+ <element name="status">
61
+ <choice>
62
+ <value>proposal</value>
63
+ <value>working-draft</value>
64
+ <value>committee-draft</value>
65
+ <value>draft-standard</value>
66
+ <value>final-draft</value>
67
+ <value>published</value>
68
+ <value>withdrawn</value>
69
+ <ref name="LocalizedString"/>
70
+ </choice>
71
+ </element>
72
+ </define>
73
+ <!-- TextElement |= keyword -->
74
+ <define name="TextElement">
75
+ <choice>
76
+ <text/>
77
+ <ref name="em"/>
78
+ <ref name="eref"/>
79
+ <ref name="strong"/>
80
+ <ref name="stem"/>
81
+ <ref name="sub"/>
82
+ <ref name="sup"/>
83
+ <ref name="tt"/>
84
+ <ref name="strike"/>
85
+ <ref name="smallcap"/>
86
+ <ref name="xref"/>
87
+ <ref name="br"/>
88
+ <ref name="hyperlink"/>
89
+ <ref name="hr"/>
90
+ <ref name="pagebreak"/>
91
+ <ref name="bookmark"/>
92
+ <ref name="keyword"/>
93
+ </choice>
94
+ </define>
95
+ <define name="BibItemType" combine="choice">
13
96
  <choice>
14
97
  <value>policy-and-procedures</value>
15
98
  <value>best-practices</value>
99
+ <value>circular</value>
16
100
  <value>supporting-document</value>
17
101
  <value>report</value>
18
102
  <value>legal</value>
@@ -23,15 +107,55 @@
23
107
  </define>
24
108
  <define name="editorialgroup">
25
109
  <element name="editorialgroup">
26
- <oneOrMore>
27
- <ref name="committee"/>
28
- </oneOrMore>
110
+ <ref name="committee"/>
29
111
  </element>
30
112
  </define>
31
- <define name="BibDataExtensionType">
113
+ <define name="BibData">
114
+ <optional>
115
+ <attribute name="type">
116
+ <ref name="BibItemType"/>
117
+ </attribute>
118
+ </optional>
119
+ <oneOrMore>
120
+ <ref name="btitle"/>
121
+ </oneOrMore>
32
122
  <optional>
33
- <ref name="doctype"/>
123
+ <ref name="formattedref"/>
34
124
  </optional>
125
+ <zeroOrMore>
126
+ <ref name="bsource"/>
127
+ </zeroOrMore>
128
+ <zeroOrMore>
129
+ <ref name="docidentifier"/>
130
+ </zeroOrMore>
131
+ <zeroOrMore>
132
+ <ref name="bdate"/>
133
+ </zeroOrMore>
134
+ <zeroOrMore>
135
+ <ref name="contributor"/>
136
+ </zeroOrMore>
137
+ <optional>
138
+ <ref name="edition"/>
139
+ </optional>
140
+ <zeroOrMore>
141
+ <ref name="biblionote"/>
142
+ </zeroOrMore>
143
+ <zeroOrMore>
144
+ <ref name="language"/>
145
+ </zeroOrMore>
146
+ <zeroOrMore>
147
+ <ref name="script"/>
148
+ </zeroOrMore>
149
+ <zeroOrMore>
150
+ <ref name="abstract"/>
151
+ </zeroOrMore>
152
+ <optional>
153
+ <ref name="status"/>
154
+ </optional>
155
+ <ref name="copyright"/>
156
+ <zeroOrMore>
157
+ <ref name="docrelation"/>
158
+ </zeroOrMore>
35
159
  <ref name="editorialgroup"/>
36
160
  <zeroOrMore>
37
161
  <ref name="ics"/>
@@ -52,6 +176,16 @@
52
176
  <text/>
53
177
  </element>
54
178
  </define>
179
+ <define name="pre">
180
+ <element name="pre">
181
+ <text/>
182
+ </element>
183
+ </define>
184
+ <define name="keyword">
185
+ <element name="keyword">
186
+ <text/>
187
+ </element>
188
+ </define>
55
189
  <define name="security">
56
190
  <element name="security">
57
191
  <text/>
@@ -60,12 +194,12 @@
60
194
  <define name="mpfd-standard">
61
195
  <element name="mpfd-standard">
62
196
  <ref name="bibdata"/>
197
+ <optional>
198
+ <ref name="version"/>
199
+ </optional>
63
200
  <zeroOrMore>
64
201
  <ref name="termdocsource"/>
65
202
  </zeroOrMore>
66
- <optional>
67
- <ref name="boilerplate"/>
68
- </optional>
69
203
  <ref name="preface"/>
70
204
  <oneOrMore>
71
205
  <ref name="sections"/>
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ try {
4
+ require.resolve("puppeteer");
5
+ } catch(e) {
6
+ console.error("puppeteer Node library is not installed; will not generate PDF");
7
+ process.exit(e.code);
8
+ }
9
+
10
+ const puppeteer = require('puppeteer');
11
+
12
+ const createPdf = async() => {
13
+ let browser;
14
+ try {
15
+ browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
16
+ const page = await browser.newPage();
17
+ await page.goto(process.argv[2], {waitUntil: 'networkidle2'});
18
+ await page.pdf({
19
+ path: process.argv[3],
20
+ format: 'A4'
21
+ });
22
+ } catch (err) {
23
+ console.log(err.message);
24
+ } finally {
25
+ if (browser) {
26
+ browser.close();
27
+ }
28
+ process.exit();
29
+ }
30
+ };
31
+ createPdf();
@@ -17,46 +17,74 @@ module Asciidoctor
17
17
  x.xpath("//*[@inline-header]").each do |h|
18
18
  h.delete("inline-header")
19
19
  end
20
- x.xpath("//*[@guidance]").each do |h|
20
+ x.xpath("//[@guidance]").each do |h|
21
+ require "byebug"; byebug
21
22
  c = h.previous_element || next
22
23
  c.add_child h.remove
23
24
  end
24
25
  end
25
26
 
26
- def sectiontype_streamline(ret)
27
- case ret
28
- when "glossary" then "terms and definitions"
29
- else
30
- super
31
- end
27
+ def section(node)
28
+ a = { id: Asciidoctor::Standoc::Utils::anchor_or_uuid(node) }
29
+ noko do |xml|
30
+ case sectiontype(node)
31
+ when "introduction" then
32
+ if node.level == 1 then introduction_parse(a, xml, node)
33
+ else
34
+ clause_parse(a, xml, node)
35
+ end
36
+ when "terms and definitions",
37
+ "terms, definitions, symbols and abbreviated terms",
38
+ "terms, definitions, symbols and abbreviations",
39
+ "terms, definitions and symbols",
40
+ "terms, definitions and abbreviations",
41
+ "terms, definitions and abbreviated terms",
42
+ "glossary"
43
+ @term_def = true
44
+ term_def_parse(a, xml, node, true)
45
+ @term_def = false
46
+ when "symbols and abbreviated terms",
47
+ "symbols", "abbreviated terms", "abbrevations"
48
+ symbols_parse(a, xml, node)
49
+ when "bibliography" then bibliography_parse(a, xml, node)
50
+ else
51
+ if @term_def then term_def_subclause_parse(a, xml, node)
52
+ elsif @biblio then bibliography_parse(a, xml, node)
53
+ elsif node.attr("style") == "bibliography" && node.level == 1
54
+ bibliography_parse(a, xml, node)
55
+ elsif node.attr("style") == "appendix" && node.level == 1
56
+ annex_parse(a, xml, node)
57
+ elsif node.option? "appendix"
58
+ appendix_parse(a, xml, node)
59
+ else
60
+ clause_parse(a, xml, node)
61
+ end
62
+ end
63
+ end.join("\n")
32
64
  end
33
65
 
34
66
  def term_def_title(_toplevel, node)
35
67
  return node.title
36
68
  end
37
69
 
38
- def move_sections_into_preface(x, preface)
39
- foreword = x.at("//foreword")
40
- preface.add_child foreword.remove if foreword
41
- introduction = x.at("//introduction")
42
- preface.add_child introduction.remove if introduction
43
- terms = x.at("//sections/clause[descendant::terms]") || x.at("//terms")
44
- preface.add_child terms.remove if terms
45
- move_clauses_into_preface(x, preface)
46
- acknowledgements = x.at("//acknowledgements")
47
- preface.add_child acknowledgements.remove if acknowledgements
48
- end
49
-
50
70
  def make_preface(x, s)
51
- if x.at("//foreword | //introduction | //terms | //acknowledgements |"\
52
- "//abstract[not(ancestor::bibitem)] | //clause[@preface]")
71
+ if x.at("//foreword | //introduction | //terms")
53
72
  preface = s.add_previous_sibling("<preface/>").first
54
- move_sections_into_preface(x, preface)
55
- make_abstract(x, s)
73
+ foreword = x.at("//foreword")
74
+ preface.add_child foreword.remove if foreword
75
+ introduction = x.at("//introduction")
76
+ preface.add_child introduction.remove if introduction
77
+ terms = x.at("//terms")
78
+ preface.add_child terms.remove if terms
79
+ end
80
+ x.xpath("//clause[@preface]").each do |c|
81
+ c.delete("preface")
82
+ preface.add_child c.remove
56
83
  end
57
84
  end
58
85
 
59
86
  def clause_parse(attrs, xml, node)
87
+ attrs[:preface] = true if node.attr("style") == "preface"
60
88
  attrs[:guidance] = true if node.role == "guidance"
61
89
  attrs[:container] = true if node.role == "container"
62
90
  super
@@ -1,6 +1,7 @@
1
1
  module Asciidoctor
2
2
  module Mpfd
3
3
 
4
+ MPFD_NAMESPACE = "https://open.ribose.com/standards/mpfd"
4
5
 
5
6
  end
6
7
  end
@@ -98,26 +98,21 @@ Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></sp
98
98
  </div>
99
99
 
100
100
  <div style='mso-element:header' id=eh2>
101
+
101
102
  <p class=MsoHeader align=left style='text-align:left;line-height:12.0pt;
102
103
  mso-line-height-rule:exactly'><span lang=EN-GB>Ribose Group Inc.&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
103
- </div>
104
104
 
105
- <div style='mso-element:header' id=eh2l>
106
- <p class=MsoHeaderLandscape align=left style='text-align:left;line-height:12.0pt;
107
- mso-line-height-rule:exactly'><span lang=EN-GB>Ribose Group Inc.&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
108
105
  </div>
109
106
 
110
107
  <div style='mso-element:header' id=h2>
108
+
111
109
  <p class=MsoHeader align=right style='text-align:right;line-height:12.0pt;
112
110
  mso-line-height-rule:exactly'><span lang=EN-GB>Ribose Group Inc.&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
113
- </div>
114
111
 
115
- <div style='mso-element:header' id=h2l>
116
- <p class=MsoHeaderLandscape align=right style='text-align:right;line-height:12.0pt;
117
- mso-line-height-rule:exactly'><span lang=EN-GB>Ribose Group Inc.&nbsp;{{ docnumber }}:{{ docyear }}</span></p>
118
112
  </div>
119
113
 
120
114
  <div style='mso-element:footer' id=ef2>
115
+
121
116
  <p class=MsoFooter style='line-height:12.0pt;mso-line-height-rule:exactly'><!--[if supportFields]><span
122
117
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
123
118
  style='mso-element:field-begin'></span><span
@@ -130,24 +125,11 @@ style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
130
125
  style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span style='mso-tab-count:
131
126
  1'>                                                                                                                                                                           </span>©
132
127
  Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></span></p>
133
- </div>
134
128
 
135
- <div style='mso-element:footer' id=ef2l>
136
- <p class=MsoFooterLandscape style='line-height:12.0pt;mso-line-height-rule:exactly'><!--[if supportFields]><span
137
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
138
- style='mso-element:field-begin'></span><span
139
- style='mso-spacerun:yes'> </span>PAGE<span style='mso-spacerun:yes'>  
140
- </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span><![endif]--><span
141
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
142
- style='mso-no-proof:yes'>ii</span></span><!--[if supportFields]><span
143
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
144
- style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
145
- style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span style='mso-tab-count:
146
- 1'>                                                                                                                                                                           </span>©
147
- Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></span></p>
148
129
  </div>
149
130
 
150
131
  <div style='mso-element:footer' id=f2>
132
+
151
133
  <p class=MsoFooter style='line-height:12.0pt'><span lang=EN-GB
152
134
  style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All
153
135
  rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                          </span></span><!--[if supportFields]><span
@@ -159,23 +141,11 @@ style='mso-no-proof:yes'>iii</span></span><!--[if supportFields]><span
159
141
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
160
142
  style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
161
143
  style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
162
- </div>
163
144
 
164
- <div style='mso-element:footer' id=f2l>
165
- <p class=MsoFooterLandscape style='line-height:12.0pt'><span lang=EN-GB
166
- style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All
167
- rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                          </span></span><!--[if supportFields]><span
168
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
169
- style='mso-element:field-begin'></span> PAGE<span style='mso-spacerun:yes'>  
170
- </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span><![endif]--><span
171
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
172
- style='mso-no-proof:yes'>iii</span></span><!--[if supportFields]><span
173
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
174
- style='mso-element:field-end'></span></span><![endif]--><span lang=EN-GB
175
- style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
176
145
  </div>
177
146
 
178
147
  <div style='mso-element:footer' id=ef3>
148
+
179
149
  <p class=MsoFooter style='margin-top:12.0pt;line-height:12.0pt;mso-line-height-rule:
180
150
  exactly'><!--[if supportFields]><b style='mso-bidi-font-weight:normal'><span
181
151
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
@@ -189,25 +159,11 @@ mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b
189
159
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
190
160
  style='mso-tab-count:1'>                                                                                                                                                                           </span>©
191
161
  Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></span></p>
192
- </div>
193
162
 
194
- <div style='mso-element:footer' id=ef3l>
195
- <p class=MsoFooterLandscape style='margin-top:12.0pt;line-height:12.0pt;mso-line-height-rule:
196
- exactly'><!--[if supportFields]><b style='mso-bidi-font-weight:normal'><span
197
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
198
- style='mso-element:field-begin'></span><span
199
- style='mso-spacerun:yes'> </span>PAGE<span style='mso-spacerun:yes'>  
200
- </span>\* MERGEFORMAT <span style='mso-element:field-separator'></span></span></b><![endif]--><b
201
- style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
202
- mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>2</span></span></b><!--[if supportFields]><b
203
- style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
204
- mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
205
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><span
206
- style='mso-tab-count:1'>                                                                                                                                                                           </span>©
207
- Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All rights reserved<o:p></o:p></span></p>
208
163
  </div>
209
164
 
210
165
  <div style='mso-element:footer' id=f3>
166
+
211
167
  <p class=MsoFooter style='line-height:12.0pt'><span lang=EN-GB
212
168
  style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All
213
169
  rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                           </span></span><!--[if supportFields]><b
@@ -220,21 +176,7 @@ mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>3</span></span></b><!-
220
176
  style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
221
177
  mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
222
178
  lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
223
- </div>
224
179
 
225
- <div style='mso-element:footer' id=f3l>
226
- <p class=MsoFooterLandscape style='line-height:12.0pt'><span lang=EN-GB
227
- style='font-size:10.0pt;mso-bidi-font-size:11.0pt'>© Ribose Group Inc.&nbsp;{{ docyear }}&nbsp;– All
228
- rights reserved<span style='mso-tab-count:1'>                                                                                                                                                                           </span></span><!--[if supportFields]><b
229
- style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
230
- mso-bidi-font-size:11.0pt'><span style='mso-element:field-begin'></span>
231
- PAGE<span style='mso-spacerun:yes'>   </span>\* MERGEFORMAT <span
232
- style='mso-element:field-separator'></span></span></b><![endif]--><b
233
- style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
234
- mso-bidi-font-size:11.0pt'><span style='mso-no-proof:yes'>3</span></span></b><!--[if supportFields]><b
235
- style='mso-bidi-font-weight:normal'><span lang=EN-GB style='font-size:10.0pt;
236
- mso-bidi-font-size:11.0pt'><span style='mso-element:field-end'></span></span></b><![endif]--><span
237
- lang=EN-GB style='font-size:10.0pt;mso-bidi-font-size:11.0pt'><o:p></o:p></span></p>
238
180
  </div>
239
181
 
240
182
  </body>
@@ -1,9 +1,9 @@
1
1
  <!--
2
- <div class="document-stage-band" id="{{ stage | downcase | replace: ' ', '-' }}-band">
3
- <p class="document-stage">{{ stage }}</p>
2
+ <div class="document-stage-band" id='{{ status | downcase | replace: " ", "-" }}-band'>
3
+ <p class="document-stage">{{ status }}</p>
4
4
  </div>
5
5
 
6
- <div class="document-type-band" id="{{ doctype | downcase | replace: ' ', '-' }}-band">
6
+ <div class="document-type-band" id='{{ doctype | downcase | replace: " ", "-" }}-band'>
7
7
  <p class="document-type">Ribose {{ doctype }}</p>
8
8
  </div>
9
9
  -->
@@ -39,7 +39,7 @@
39
39
  <div class="coverpage-logo">
40
40
  <span class="doc-edition">{{ edition }} Edition</span>
41
41
  <span>{{ revdate_monthyear }} {{ draftinfo }}</span>
42
- <span>Status: {{ stage }}</span>
42
+ <span>Status: {{ status }}</span>
43
43
  </div>
44
44
 
45
45
  <div class="coverpage-location">