metanorma-iso 1.3.13 → 1.3.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,9 +54,9 @@
54
54
  <optional>
55
55
  <ref name="subject"/>
56
56
  </optional>
57
- <optional>
57
+ <zeroOrMore>
58
58
  <ref name="reqinherit"/>
59
- </optional>
59
+ </zeroOrMore>
60
60
  <zeroOrMore>
61
61
  <ref name="classification"/>
62
62
  </zeroOrMore>
@@ -58,14 +58,6 @@ module IsoDoc
58
58
  def error_parse(node, out)
59
59
  case node.name
60
60
  when "appendix" then clause_parse(node, out)
61
- when "copyright-statement"
62
- out.div **{class: "copyright"} do |div|
63
- node.children.each { |n| parse(n, div) }
64
- end
65
- when "license-statement"
66
- out.div **{class: "license"} do |div|
67
- node.children.each { |n| parse(n, out) }
68
- end
69
61
  else
70
62
  super
71
63
  end
@@ -197,21 +189,6 @@ module IsoDoc
197
189
  def clausedelim
198
190
  ""
199
191
  end
200
-
201
- def boilerplate(node, out)
202
- boilerplate = node.at(ns("//boilerplate")) or return
203
- out.div **{class: "authority"} do |s|
204
- boilerplate.children.each do |n|
205
- if n.name == "title"
206
- s.h1 do |h|
207
- n.children.each { |nn| parse(nn, h) }
208
- end
209
- else
210
- parse(n, s)
211
- end
212
- end
213
- end
214
- end
215
192
  end
216
193
  end
217
194
  end
@@ -1,4 +1,4 @@
1
- <div id="copyright"/>
1
+ <div id="boilerplate-copyright-destination"/>
2
2
 
3
3
  <nav>
4
4
 
@@ -44,7 +44,7 @@ name="CVP_Secretariat_Loca">Secretariat</a>: {{ secretariat }}</p>
44
44
 
45
45
  {% if unpublished %}
46
46
  <div class="coverpage_warning">
47
- <div id="license"/>
47
+ <div id="boilerplate-license-destination"/>
48
48
  <!--
49
49
  <p>Warning for WDs
50
50
  and CDs</p>
@@ -269,13 +269,36 @@ p.IntroTitle, li.IntroTitle, div.IntroTitle
269
269
  tab-stops:20.15pt;
270
270
  font-size:14.0pt;
271
271
  mso-bidi-font-size:11.0pt;
272
- page-break-before:always;
273
272
  font-family:$headerfont;
274
273
  mso-fareast-font-family:$headerfont;
275
274
  mso-bidi-font-family:$headerfont;
276
275
  mso-ansi-language:EN-GB;
277
276
  font-weight:bold;
277
+ page-break-before:always;
278
278
  mso-bidi-font-weight:normal;}
279
+ p.TitlePageSubhead, li.TitlePageSubhead, div.TitlePageSubhead {
280
+ mso-style-noshow:yes;
281
+ mso-style-unhide:no;
282
+ mso-style-parent:"Foreword Title";
283
+ margin-top:0cm;
284
+ margin-right:0cm;
285
+ margin-bottom:15.5pt;
286
+ margin-left:0cm;
287
+ text-align:center;
288
+ line-height:15.5pt;
289
+ mso-pagination:widow-orphan;
290
+ page-break-after:avoid;
291
+ mso-hyphenate:none;
292
+ tab-stops:20.15pt;
293
+ font-size:14.0pt;
294
+ mso-bidi-font-size:11.0pt;
295
+ font-family:$headerfont;
296
+ mso-fareast-font-family:$headerfont;
297
+ mso-bidi-font-family:$headerfont;
298
+ mso-ansi-language:EN-GB;
299
+ font-weight:bold;
300
+ mso-bidi-font-weight:normal;
301
+ }
279
302
  p.Terms, li.Terms, div.Terms
280
303
  {mso-style-name:"Term\(s\)";
281
304
  mso-style-priority:8;
@@ -704,16 +727,16 @@ div.coverpage_warning
704
727
  font-style: italic;
705
728
  }
706
729
 
707
- .copyright {
730
+ .boilerplate-copyright {
708
731
  padding: 1em;
709
732
  }
710
733
 
711
- .copyright .name {
734
+ .boilerplate-copyright .boilerplate-name {
712
735
  color: #485094;
713
736
  font-weight: 600;
714
737
  }
715
738
 
716
- .copyright .address {
739
+ .boilerplate-copyright .boilerplate-address {
717
740
  color: #485094;
718
741
  }
719
742
 
@@ -204,20 +204,19 @@ span.title {
204
204
  line-height: 0.5em;
205
205
  }
206
206
 
207
- .copyright .name {
207
+ .boilerplate-copyright #boilerplate-name {
208
208
  font-weight: 900;
209
209
  padding-top: 1em;
210
210
  }
211
211
 
212
- .copyright .year, .copyright .message,
213
- .copyright .name, .copyright .address {
212
+ .boilerplate-copyright p {
214
213
  margin-top: 1em;
215
214
  line-height: 1.1em;
216
215
  display: block;
217
216
  }
218
217
 
219
- .copyright .message, .copyright .name,
220
- .copyright .address {
218
+ .boilerplate-copyright #boilerplate-message, .boilerplate-copyright #boilerplate-name,
219
+ .boilerplate-copyright #boilerplate-address {
221
220
  font-size: 0.9em;
222
221
  }
223
222
 
@@ -205,14 +205,13 @@ span.partlabel {
205
205
  padding-bottom: 1em;
206
206
  }
207
207
 
208
- .copyright .year, .copyright .message,
209
- .copyright .name, .copyright .address {
208
+ .boilerplate-copyright p {
210
209
  margin-top: 1em;
211
210
  display: block;
212
211
  }
213
212
 
214
- .copyright .message, .copyright .name,
215
- .copyright .address {
213
+ .boilerplate-copyright #boilerplate-message, .boilerplate-copyright #boilerplate-name,
214
+ .boilerplate-copyright #boilerplate-address {
216
215
  font-size: 0.9em;
217
216
  }
218
217
 
@@ -2,7 +2,7 @@
2
2
  border-bottom-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:
3
3
  solid windowtext .5pt;mso-border-right-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 0cm 4.0pt;
4
4
  margin-left:5.1pt;margin-right:5.1pt'>
5
- <div id="copyright"/>
5
+ <div id="boilerplate-copyright-destination"/>
6
6
  </div>
7
7
 
8
8
  <p class="zzContents" style='margin-top:0cm'><span lang="EN-GB">Contents</span></p>
@@ -66,7 +66,7 @@ mso-border-alt:solid windowtext .5pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
66
66
  margin-left:4.25pt;margin-right:4.25pt'>
67
67
  -->
68
68
 
69
- <div id="license"/>
69
+ <div id="boilerplate-license-destination"/>
70
70
  <!--
71
71
  <p class="MsoNormal" align="center" style='margin-bottom:6.0pt;text-align:center;
72
72
  border:none;mso-border-alt:solid windowtext .5pt;padding:0cm;mso-padding-alt:
@@ -847,7 +847,6 @@ p.Tablebody, li.Tablebody, div.Tablebody
847
847
  mso-endnote-separator:url("file:///C:/Doc/FILENAME_files/header.html") es;
848
848
  mso-endnote-continuation-separator:url("file:///C:/Doc/FILENAME_files/header.html") ecs;
849
849
  mso-facing-pages:yes;
850
- mso-page-orientation: portrait;
851
850
  }
852
851
  @page WordSection1
853
852
  {size:595.0pt 842.0pt;
@@ -871,6 +870,26 @@ div.WordSection1
871
870
  mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
872
871
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
873
872
  mso-paper-source:0;}
873
+ @page WordSection2L
874
+ {size:841.9pt 595.3pt;
875
+ margin:39.7pt 53.85pt 1.0cm 53.85pt;
876
+ mso-header-margin:35.45pt;
877
+ mso-footer-margin:14.2pt;
878
+ mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
879
+ mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
880
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
881
+ mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
882
+ mso-paper-source:0;}
883
+ @page WordSection2P
884
+ {size:595.3pt 841.9pt;
885
+ margin:39.7pt 53.85pt 1.0cm 53.85pt;
886
+ mso-header-margin:35.45pt;
887
+ mso-footer-margin:14.2pt;
888
+ mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
889
+ mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
890
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
891
+ mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f2;
892
+ mso-paper-source:0;}
874
893
  div.WordSection2
875
894
  {page:WordSection2;}
876
895
  @page WordSection3
@@ -884,6 +903,26 @@ div.WordSection2
884
903
  mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
885
904
  mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
886
905
  mso-paper-source:0;}
906
+ @page WordSection3L
907
+ {size:841.9pt 595.3pt;
908
+ margin:39.7pt 53.85pt 1.0cm 53.85pt;
909
+ mso-header-margin:35.45pt;
910
+ mso-footer-margin:14.2pt;
911
+ mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
912
+ mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
913
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
914
+ mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
915
+ mso-paper-source:0;}
916
+ @page WordSection3P
917
+ {size:595.3pt 841.9pt;
918
+ margin:39.7pt 53.85pt 1.0cm 53.85pt;
919
+ mso-header-margin:35.45pt;
920
+ mso-footer-margin:14.2pt;
921
+ mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh2;
922
+ mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
923
+ mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef3;
924
+ mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
925
+ mso-paper-source:0;}
887
926
  div.WordSection3
888
927
  {page:WordSection3;}
889
928
  @page WordSection4
@@ -40,35 +40,6 @@ module IsoDoc
40
40
  insert
41
41
  end
42
42
 
43
- def make_body3(body, docxml)
44
- body.div **{ class: "main-section" } do |div3|
45
- boilerplate docxml, div3
46
- abstract docxml, div3
47
- foreword docxml, div3
48
- introduction docxml, div3
49
- middle docxml, div3
50
- footnotes div3
51
- comments div3
52
- end
53
- end
54
-
55
- def html_preface(docxml)
56
- super
57
- authority_cleanup(docxml)
58
- docxml
59
- end
60
-
61
- def authority_cleanup(docxml)
62
- dest = docxml.at("//div[@id = 'copyright']")
63
- auth = docxml.at("//div[@class = 'copyright']")
64
- auth&.xpath(".//h1 | .//h2")&.each { |h| h["class"] = "IntroTitle" }
65
- dest and auth and dest.replace(auth.remove)
66
- dest = docxml.at("//div[@id = 'license']")
67
- auth = docxml.at("//div[@class = 'license']")
68
- auth&.xpath(".//h1 | .//h2")&.each { |h| h["class"] = "IntroTitle" }
69
- dest and auth and dest.replace(auth.remove)
70
- end
71
-
72
43
  include BaseConvert
73
44
  end
74
45
  end
@@ -47,17 +47,6 @@ module IsoDoc
47
47
  end
48
48
  end
49
49
 
50
- def make_body2(body, docxml)
51
- body.div **{ class: "WordSection2" } do |div2|
52
- boilerplate docxml, div2
53
- abstract docxml, div2
54
- foreword docxml, div2
55
- introduction docxml, div2
56
- div2.p { |p| p << "&nbsp;" } # placeholder
57
- end
58
- section_break(body)
59
- end
60
-
61
50
  def colophon(body, docxml)
62
51
  stage = @meta.get[:stage_int]
63
52
  return if !stage.nil? && stage < 60
@@ -108,22 +97,22 @@ module IsoDoc
108
97
  end
109
98
 
110
99
  def authority_cleanup(docxml)
111
- insert = docxml.at("//div[@id = 'license']")
112
- auth = docxml&.at("//div[@class = 'license']")&.remove
100
+ insert = docxml.at("//div[@id = 'boilerplate-license-destination']")
101
+ auth = docxml&.at("//div[@class = 'boilerplate-license']")&.remove
113
102
  auth&.xpath(".//p[not(@class)]")&.each { |p| p["class"] = "zzWarning" }
114
103
  auth and insert.children = auth
115
- insert = docxml.at("//div[@id = 'copyright']")
116
- auth = docxml&.at("//div[@class = 'copyright']")&.remove
104
+ insert = docxml.at("//div[@id = 'boilerplate-copyright-destination']")
105
+ auth = docxml&.at("//div[@class = 'boilerplate-copyright']")&.remove
117
106
  auth&.xpath(".//p[not(@class)]")&.each { |p| p["class"] = "zzCopyright" }
118
- auth&.xpath(".//p[@id = 'authority2']")&.each { |p| p["class"] = "zzCopyright1" }
119
- auth&.xpath(".//p[@id = 'authority3']")&.each { |p| p["class"] = "zzAddress" }
107
+ auth&.xpath(".//p[@id = 'boilerplate-message']")&.each { |p| p["class"] = "zzCopyright1" }
108
+ auth&.xpath(".//p[@id = 'boilerplate-address']")&.each { |p| p["class"] = "zzAddress" }
109
+ auth&.xpath(".//p[@id = 'boilerplate-name']")&.each { |p| p["class"] = "boilerplate-name" }
120
110
  auth and insert.children = auth
121
111
  end
122
112
 
123
113
  def word_cleanup(docxml)
124
114
  authority_hdr_cleanup(docxml)
125
115
  super
126
- authority_cleanup(docxml)
127
116
  docxml
128
117
  end
129
118
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.3.13".freeze
3
+ VERSION = "1.3.15".freeze
4
4
  end
5
5
  end
@@ -191,7 +191,7 @@ RSpec.describe Asciidoctor::ISO do
191
191
  </foreword></preface><sections>
192
192
  </sections><bibliography><references id="_" obligation="informative">
193
193
  <title>Normative References</title>
194
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
194
+ <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
195
195
  <bibitem id="iso216" type="standard">
196
196
  <title format="text/plain">Reference</title>
197
197
  <docidentifier>ISO 216:2001</docidentifier>
@@ -230,7 +230,7 @@ RSpec.describe Asciidoctor::ISO do
230
230
  </foreword></preface><sections>
231
231
  </sections><bibliography><references id="_" obligation="informative">
232
232
  <title>Normative References</title>
233
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
233
+ <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
234
234
  <bibitem id="iso216" type="standard">
235
235
  <title format="text/plain">Reference</title>
236
236
  <docidentifier>ISO 216</docidentifier>
@@ -324,7 +324,7 @@ RSpec.describe Asciidoctor::ISO do
324
324
  #{BLANK_HDR}
325
325
  <sections></sections>
326
326
  <bibliography><references id="_" obligation="informative"><title>Normative References</title>
327
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
327
+ <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
328
328
  <bibitem id="iso216" type="standard">
329
329
  <title format="text/plain">Reference</title>
330
330
  <docidentifier>ISO 216</docidentifier>
@@ -628,7 +628,7 @@ RSpec.describe Asciidoctor::ISO do
628
628
  </p>
629
629
  </clause></sections><bibliography><references id="_" obligation="informative">
630
630
  <title>Normative References</title>
631
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
631
+ <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
632
632
  <bibitem id="iso123" type="standard">
633
633
  <title format="text/plain">Standard</title>
634
634
  <docidentifier>ISO 123:—</docidentifier>
@@ -129,7 +129,7 @@ RSpec.describe Asciidoctor::ISO do
129
129
 
130
130
  </sections><bibliography><references id="_" obligation="informative">
131
131
  <title>Normative References</title>
132
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
132
+ <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
133
133
  <bibitem id="ISO712">
134
134
  <formattedref format="application/x-isodoc+xml">Reference</formattedref>
135
135
  <docidentifier>x</docidentifier>
@@ -17,7 +17,7 @@ RSpec.describe Asciidoctor::ISO do
17
17
  <sections>
18
18
  </sections><bibliography><references id="_" obligation="informative">
19
19
  <title>Normative References</title>
20
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
20
+ <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
21
21
  <bibitem id="iso123" type="standard">
22
22
  <title format="text/plain">Standard</title>
23
23
  <docidentifier>ISO 123:—</docidentifier>
@@ -53,7 +53,7 @@ RSpec.describe Asciidoctor::ISO do
53
53
  <sections>
54
54
  </sections><bibliography><references id="_" obligation="informative">
55
55
  <title>Normative References</title>
56
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
56
+ <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
57
57
  <bibitem id="iso123" type="standard">
58
58
  <title format="text/plain">Standard</title>
59
59
  <docidentifier>ISO 123:1066 (all parts)</docidentifier>
@@ -88,7 +88,7 @@ RSpec.describe Asciidoctor::ISO do
88
88
 
89
89
  </sections><bibliography><references id="_" obligation="informative">
90
90
  <title>Normative References</title>
91
- <p>The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
91
+ <p id="_">The following documents are referred to in the text in such a way that some or all of their content constitutes requirements of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.</p>
92
92
  <bibitem id="iso123">
93
93
  <formattedref format="application/x-isodoc+xml">
94
94
  <em>Standard</em>
@@ -67,14 +67,14 @@ RSpec.describe Asciidoctor::ISO do
67
67
 
68
68
  <terms id="_" obligation="normative">
69
69
  <title>Terms and definitions</title>
70
- <p>For the purposes of this document, the following terms and definitions apply.</p>
71
- <p>ISO and IEC maintain terminological databases for use in
70
+ <p id="_">For the purposes of this document, the following terms and definitions apply.</p>
71
+ <p id="_">ISO and IEC maintain terminological databases for use in
72
72
  standardization at the following addresses:</p>
73
73
 
74
- <ul>
75
- <li> <p>ISO Online browsing platform: available at
74
+ <ul id="_">
75
+ <li> <p id="_">ISO Online browsing platform: available at
76
76
  <link target="http://www.iso.org/obp"/></p> </li>
77
- <li> <p>IEC Electropedia: available at
77
+ <li> <p id="_">IEC Electropedia: available at
78
78
  <link target="http://www.electropedia.org"/>
79
79
  </p> </li> </ul>
80
80
 
@@ -110,7 +110,7 @@ standardization at the following addresses:</p>
110
110
  <title>Appendix 1</title>
111
111
  </appendix></annex><bibliography><references id="_" obligation="informative">
112
112
  <title>Normative References</title>
113
- <p>There are no normative references in this document.</p>
113
+ <p id="_">There are no normative references in this document.</p>
114
114
  </references><clause id="_" obligation="informative">
115
115
  <title>Bibliography</title>
116
116
  <references id="_" obligation="informative">
@@ -198,14 +198,14 @@ standardization at the following addresses:</p>
198
198
 
199
199
  <terms id="_" obligation="normative">
200
200
  <title>Terms and definitions</title>
201
- <p>For the purposes of this document, the following terms and definitions apply.</p>
202
- <p>ISO and IEC maintain terminological databases for use in
201
+ <p id="_">For the purposes of this document, the following terms and definitions apply.</p>
202
+ <p id="_">ISO and IEC maintain terminological databases for use in
203
203
  standardization at the following addresses:</p>
204
204
 
205
- <ul>
206
- <li> <p>ISO Online browsing platform: available at
205
+ <ul id="_">
206
+ <li> <p id="_">ISO Online browsing platform: available at
207
207
  <link target="http://www.iso.org/obp"/></p> </li>
208
- <li> <p>IEC Electropedia: available at
208
+ <li> <p id="_">IEC Electropedia: available at
209
209
  <link target="http://www.electropedia.org"/>
210
210
  </p> </li> </ul>
211
211
  <term id="_">
@@ -249,7 +249,7 @@ standardization at the following addresses:</p>
249
249
  <bibliography>
250
250
  <references id='_' obligation='informative'>
251
251
  <title>Normative References</title>
252
- <p>There are no normative references in this document.</p>
252
+ <p id="_">There are no normative references in this document.</p>
253
253
  </references>
254
254
  <clause id='_' obligation='informative'>
255
255
  <title>Bibliography</title>
@@ -357,22 +357,21 @@ standardization at the following addresses:</p>
357
357
  === Term1
358
358
 
359
359
  INPUT
360
- #{BLANK_HDR}
361
- <termdocsource bibitemid="iso1234"/><termdocsource bibitemid="iso5678"/>
360
+ #{BLANK_HDR.sub(/<boilerplate>/, '<termdocsource bibitemid="iso1234"/><termdocsource bibitemid="iso5678"/><boilerplate>')}
362
361
  <preface><foreword obligation="informative">
363
362
  <title>Foreword</title>
364
363
  <p id="_">Foreword</p>
365
364
  </foreword></preface><sections>
366
365
  <terms id="_" obligation="normative">
367
- <title>Terms and definitions</title><p>For the purposes of this document, the terms and definitions
366
+ <title>Terms and definitions</title><p id="_">For the purposes of this document, the terms and definitions
368
367
  given in <eref bibitemid="iso1234"/> and <eref bibitemid="iso5678"/> and the following apply.</p>
369
- <p>ISO and IEC maintain terminological databases for use in
368
+ <p id="_">ISO and IEC maintain terminological databases for use in
370
369
  standardization at the following addresses:</p>
371
370
 
372
- <ul>
373
- <li> <p>ISO Online browsing platform: available at
371
+ <ul id="_">
372
+ <li> <p id="_">ISO Online browsing platform: available at
374
373
  <link target="http://www.iso.org/obp"/></p> </li>
375
- <li> <p>IEC Electropedia: available at
374
+ <li> <p id="_">IEC Electropedia: available at
376
375
  <link target="http://www.electropedia.org"/>
377
376
  </p> </li> </ul>
378
377
 
@@ -396,24 +395,37 @@ standardization at the following addresses:</p>
396
395
 
397
396
  INPUT
398
397
  #{BLANK_HDR}
399
- <preface><foreword obligation="informative">
400
- <title>Foreword</title>
401
- <p id="_">Foreword</p>
402
- </foreword></preface><sections>
403
- <terms id="_" obligation="normative">
404
- <title>Terms and definitions</title><p>No terms and definitions are listed in this document.</p>
405
- <p>ISO and IEC maintain terminological databases for use in
406
- standardization at the following addresses:</p>
407
-
408
- <ul>
409
- <li> <p>ISO Online browsing platform: available at
410
- <link target="http://www.iso.org/obp"/></p> </li>
411
- <li> <p>IEC Electropedia: available at
412
- <link target="http://www.electropedia.org"/>
413
- </p> </li> </ul>
414
-
415
- </terms></sections>
416
- </iso-standard>
398
+ <preface>
399
+ <foreword obligation='informative'>
400
+ <title>Foreword</title>
401
+ <p id='_'>Foreword</p>
402
+ </foreword>
403
+ </preface>
404
+ <sections>
405
+ <terms id='_' obligation='normative'>
406
+ <title>Terms and definitions</title>
407
+ <p id='_'>No terms and definitions are listed in this document.</p>
408
+ <p id='_'>
409
+ ISO and IEC maintain terminological databases for use in standardization
410
+ at the following addresses:
411
+ </p>
412
+ <ul id='_'>
413
+ <li>
414
+ <p id='_'>
415
+ ISO Online browsing platform: available at
416
+ <link target='http://www.iso.org/obp'/>
417
+ </p>
418
+ </li>
419
+ <li>
420
+ <p id='_'>
421
+ IEC Electropedia: available at
422
+ <link target='http://www.electropedia.org'/>
423
+ </p>
424
+ </li>
425
+ </ul>
426
+ </terms>
427
+ </sections>
428
+ </iso-standard>
417
429
 
418
430
  OUTPUT
419
431
  end
@@ -428,23 +440,22 @@ standardization at the following addresses:</p>
428
440
  == Terms and Definitions
429
441
 
430
442
  INPUT
431
- #{BLANK_HDR}
432
- <termdocsource bibitemid="iso1234"/><termdocsource bibitemid="iso5678"/>
443
+ #{BLANK_HDR.sub(/<boilerplate>/, '<termdocsource bibitemid="iso1234"/><termdocsource bibitemid="iso5678"/><boilerplate>')}
433
444
  <preface><foreword obligation="informative">
434
445
  <title>Foreword</title>
435
446
  <p id="_">Foreword</p>
436
447
  </foreword></preface><sections>
437
448
  <terms id="_" obligation="normative">
438
449
  <title>Terms and definitions</title>
439
- <p>For the purposes of this document,
450
+ <p id="_">For the purposes of this document,
440
451
  the terms and definitions given in <eref bibitemid="iso1234"/> and <eref bibitemid="iso5678"/> apply.</p>
441
- <p>ISO and IEC maintain terminological databases for use in
452
+ <p id="_">ISO and IEC maintain terminological databases for use in
442
453
  standardization at the following addresses:</p>
443
454
 
444
- <ul>
445
- <li> <p>ISO Online browsing platform: available at
455
+ <ul id="_">
456
+ <li> <p id="_">ISO Online browsing platform: available at
446
457
  <link target="http://www.iso.org/obp"/></p> </li>
447
- <li> <p>IEC Electropedia: available at
458
+ <li> <p id="_">IEC Electropedia: available at
448
459
  <link target="http://www.electropedia.org"/>
449
460
  </p> </li> </ul>
450
461