metanorma-nist 1.1.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +14 -0
- data/lib/asciidoctor/nist/basicdoc.rng +31 -1
- data/lib/asciidoctor/nist/boilerplate.rb +2 -2
- data/lib/asciidoctor/nist/cleanup.rb +34 -4
- data/lib/asciidoctor/nist/converter.rb +20 -6
- data/lib/asciidoctor/nist/front.rb +37 -46
- data/lib/asciidoctor/nist/front_id.rb +1 -1
- data/lib/asciidoctor/nist/isodoc.rng +124 -15
- data/lib/asciidoctor/nist/nist.rng +18 -0
- data/lib/asciidoctor/nist/validate.rb +16 -9
- data/lib/isodoc/nist/base_convert.rb +26 -75
- data/lib/isodoc/nist/html/_coverpage.css +243 -0
- data/lib/isodoc/nist/html/htmlstyle.css +955 -0
- data/lib/isodoc/nist/html/nist.css +1067 -0
- data/lib/isodoc/nist/html/nist.scss +24 -10
- data/lib/isodoc/nist/html/nist_cswp.css +1008 -0
- data/lib/isodoc/nist/html/nist_cswp.scss +23 -9
- data/lib/isodoc/nist/html/wordstyle.css +1520 -0
- data/lib/isodoc/nist/html/wordstyle.scss +74 -3
- data/lib/isodoc/nist/html/wordstyle_cswp.css +1194 -0
- data/lib/isodoc/nist/html/wordstyle_cswp.scss +68 -2
- data/lib/isodoc/nist/html_convert.rb +3 -0
- data/lib/isodoc/nist/i18n-en.yaml +3 -0
- data/lib/isodoc/nist/i18n.rb +10 -0
- data/lib/isodoc/nist/init.rb +37 -0
- data/lib/isodoc/nist/metadata_id.rb +1 -1
- data/lib/isodoc/nist/nist.cswp.xsl +1871 -2273
- data/lib/isodoc/nist/nist.sp.xsl +1991 -2183
- data/lib/isodoc/nist/pdf_convert.rb +0 -1
- data/lib/isodoc/nist/presentation_xml_convert.rb +71 -1
- data/lib/isodoc/nist/refs.rb +2 -17
- data/lib/isodoc/nist/render.rb +2 -1
- data/lib/isodoc/nist/render_contributors.rb +1 -1
- data/lib/isodoc/nist/render_dates.rb +0 -25
- data/lib/isodoc/nist/section.rb +26 -13
- data/lib/isodoc/nist/word_convert.rb +47 -14
- data/lib/isodoc/nist/xref.rb +1 -24
- data/lib/metanorma/nist/version.rb +1 -1
- data/metanorma-nist.gemspec +2 -2
- metadata +14 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf785a903733a43d512bf78b6a9ed63b1366d3608e64cdb7a107b0af44c83d3f
|
4
|
+
data.tar.gz: edbff6b8f91a32ea9c2866c35d50ce17802626d5c1edc26f73f3429195c9b497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6cca2e46cd13198d8e21ee48231c7046e0578c2eda603857d015ecd3944302b785d433f9fbccb1d28f45bbc1857a3bd0d33d1167f4a252589a9a1b038ac45c3
|
7
|
+
data.tar.gz: 88f9452e81d23d1029dc6030b3a851d6a6332b09c2726a4dce3125974f570d7aa0bf63f6701e19f3e9ee1b7992242f9a43884ba02124228b13b092d86d923347
|
data/README.adoc
CHANGED
@@ -659,6 +659,20 @@ Errata tables must have a header row containing the headings _Date, Type, Change
|
|
659
659
|
|===
|
660
660
|
----
|
661
661
|
|
662
|
+
=== Lists
|
663
|
+
|
664
|
+
If an ordered list is intended to describe “steps” within a process, it should start with Arabic numbers and should be encoded with the class `steps`:
|
665
|
+
|
666
|
+
Encoding an ordered list as steps:
|
667
|
+
|
668
|
+
[source, asciidoctor]
|
669
|
+
----
|
670
|
+
[class=steps]
|
671
|
+
. First Step
|
672
|
+
. Second Step
|
673
|
+
. Third Step
|
674
|
+
----
|
675
|
+
|
662
676
|
=== Glosaries
|
663
677
|
|
664
678
|
Glossaries are given as definition lists with role attribute `[.glossary]`:
|
@@ -158,7 +158,17 @@
|
|
158
158
|
<data type="ID"/>
|
159
159
|
</attribute>
|
160
160
|
<oneOrMore>
|
161
|
-
<
|
161
|
+
<choice>
|
162
|
+
<ref name="formula"/>
|
163
|
+
<ref name="ul"/>
|
164
|
+
<ref name="ol"/>
|
165
|
+
<ref name="dl"/>
|
166
|
+
<ref name="quote"/>
|
167
|
+
<ref name="sourcecode"/>
|
168
|
+
<ref name="paragraph"/>
|
169
|
+
<ref name="table"/>
|
170
|
+
<ref name="figure"/>
|
171
|
+
</choice>
|
162
172
|
</oneOrMore>
|
163
173
|
</element>
|
164
174
|
</define>
|
@@ -402,6 +412,16 @@
|
|
402
412
|
</choice>
|
403
413
|
</attribute>
|
404
414
|
</optional>
|
415
|
+
<optional>
|
416
|
+
<attribute name="valign">
|
417
|
+
<choice>
|
418
|
+
<value>top</value>
|
419
|
+
<value>middle</value>
|
420
|
+
<value>bottom</value>
|
421
|
+
<value>baseline</value>
|
422
|
+
</choice>
|
423
|
+
</attribute>
|
424
|
+
</optional>
|
405
425
|
<choice>
|
406
426
|
<zeroOrMore>
|
407
427
|
<ref name="TextElement"/>
|
@@ -429,6 +449,16 @@
|
|
429
449
|
</choice>
|
430
450
|
</attribute>
|
431
451
|
</optional>
|
452
|
+
<optional>
|
453
|
+
<attribute name="valign">
|
454
|
+
<choice>
|
455
|
+
<value>top</value>
|
456
|
+
<value>middle</value>
|
457
|
+
<value>bottom</value>
|
458
|
+
<value>baseline</value>
|
459
|
+
</choice>
|
460
|
+
</attribute>
|
461
|
+
</optional>
|
432
462
|
<choice>
|
433
463
|
<zeroOrMore>
|
434
464
|
<ref name="TextElement"/>
|
@@ -94,8 +94,8 @@ module Asciidoctor
|
|
94
94
|
|
95
95
|
def boilerplate_isodoc(xmldoc)
|
96
96
|
conv = super
|
97
|
-
conv.
|
98
|
-
|
97
|
+
conv.i18n.set(:nist_division, @nistdivision)
|
98
|
+
conv.i18n.set(:nist_division_address, @nistdivisionaddress)
|
99
99
|
conv
|
100
100
|
end
|
101
101
|
|
@@ -3,9 +3,15 @@ module Asciidoctor
|
|
3
3
|
class Converter < Standoc::Converter
|
4
4
|
def cleanup(xmldoc)
|
5
5
|
sourcecode_cleanup(xmldoc)
|
6
|
+
annex_rename(xmldoc)
|
6
7
|
super
|
7
8
|
end
|
8
9
|
|
10
|
+
def annex_rename(xmldoc)
|
11
|
+
return unless xmldoc.xpath("//references").size == 1
|
12
|
+
replace_title(xmldoc, "//annex[references]", @i18n&.normref, true)
|
13
|
+
end
|
14
|
+
|
9
15
|
def sourcecode_cleanup(xmldoc)
|
10
16
|
xmldoc.xpath("//sourcecode").each do |x|
|
11
17
|
x.traverse do |n|
|
@@ -37,7 +43,7 @@ module Asciidoctor
|
|
37
43
|
move_execsummary_into_preface(x, preface)
|
38
44
|
end
|
39
45
|
|
40
|
-
|
46
|
+
def move_clauses_into_preface1(x, preface)
|
41
47
|
x.xpath("//clause[@preface]").each do |c|
|
42
48
|
c.delete("preface")
|
43
49
|
title = c&.at("./title")&.text.downcase
|
@@ -45,9 +51,9 @@ module Asciidoctor
|
|
45
51
|
c.name = "executivesummary" if title == "executive summary"
|
46
52
|
preface.add_child c.remove
|
47
53
|
end
|
48
|
-
|
54
|
+
end
|
49
55
|
|
50
|
-
|
56
|
+
def move_execsummary_into_preface(x, preface)
|
51
57
|
x.xpath("//clause[@executivesummary]").each do |c|
|
52
58
|
c.delete("executivesummary")
|
53
59
|
title = c&.at("./title")&.text.downcase
|
@@ -150,7 +156,7 @@ module Asciidoctor
|
|
150
156
|
elsif metaid = bib&.at("./docidentifier[@type = 'NIST']")&.text
|
151
157
|
key = metaid.sub(/-(\d+)/) {|m| sprintf "-%09d", ($1.to_i) }
|
152
158
|
elsif metaid = bib&.at("./docidentifier[not(@type = 'DOI' or "\
|
153
|
-
|
159
|
+
"@type = 'metanorma' or @type = 'ISSN' or @type = 'ISBN')]")&.text
|
154
160
|
key = metaid.sub(/-(\d+)/) {|m| sprintf "-%09d", ($1.to_i) }
|
155
161
|
else # no usable docid
|
156
162
|
key = "000000000" + bib["id"]
|
@@ -171,6 +177,30 @@ module Asciidoctor
|
|
171
177
|
end
|
172
178
|
acc
|
173
179
|
end
|
180
|
+
|
181
|
+
def section_names_refs_cleanup(x)
|
182
|
+
replace_title(x, "//bibliography//references[@normative = 'true']",
|
183
|
+
@i18n&.normref, true)
|
184
|
+
replace_title(x, "//bibliography//references[@normative = 'false']",
|
185
|
+
@i18n&.bibliography, true)
|
186
|
+
end
|
187
|
+
|
188
|
+
def section_names_terms_cleanup(x)
|
189
|
+
replace_title(x, "//definitions[@type = 'symbols']", @i18n&.symbols)
|
190
|
+
replace_title(x, "//definitions[@type = 'abbreviated_terms']", @i18n&.abbrev)
|
191
|
+
replace_title(x, "//definitions[not(@type)]", @i18n&.symbolsabbrev)
|
192
|
+
replace_title(x, "//sections//terms#{SYMnoABBR} | //sections//clause[.//terms]#{SYMnoABBR}",
|
193
|
+
@i18n&.termsdefsymbols, true)
|
194
|
+
replace_title(x, "//sections//terms#{ABBRnoSYM} | //sections//clause[.//terms]#{ABBRnoSYM}",
|
195
|
+
@i18n&.termsdefabbrev, true)
|
196
|
+
replace_title(x, "//sections//terms#{SYMABBR} | //sections//clause[.//terms]#{SYMABBR}",
|
197
|
+
@i18n&.termsdefsymbolsabbrev, true)
|
198
|
+
replace_title(x, "//sections//terms#{NO_SYMABBR} | //sections//clause[.//terms]#{NO_SYMABBR}",
|
199
|
+
@i18n&.termsdefsymbolsabbrev, true)
|
200
|
+
replace_title(
|
201
|
+
x, "//sections//terms[not(.//definitions)] | //sections//clause[.//terms][not(.//definitions)]",
|
202
|
+
@i18n&.termsdef, true)
|
203
|
+
end
|
174
204
|
end
|
175
205
|
end
|
176
206
|
end
|
@@ -61,6 +61,15 @@ module Asciidoctor
|
|
61
61
|
super
|
62
62
|
end
|
63
63
|
|
64
|
+
def olist(node)
|
65
|
+
id = Asciidoctor::Standoc::Utils::anchor_or_uuid(node)
|
66
|
+
noko do |xml|
|
67
|
+
xml.ol **attr_code(id: id, class: node.attr("class")) do |xml_ol|
|
68
|
+
node.items.each { |item| li(xml_ol, item) }
|
69
|
+
end
|
70
|
+
end.join("\n")
|
71
|
+
end
|
72
|
+
|
64
73
|
def glossary(node)
|
65
74
|
noko do |xml|
|
66
75
|
xml.dl **{id: Asciidoctor::Standoc::Utils::anchor_or_uuid(node),
|
@@ -79,8 +88,8 @@ module Asciidoctor
|
|
79
88
|
end
|
80
89
|
|
81
90
|
def doctype(node)
|
82
|
-
d =
|
83
|
-
d =
|
91
|
+
d = super || "standard"
|
92
|
+
d = "standard" if d == "article" # article is Asciidoctor default
|
84
93
|
d
|
85
94
|
end
|
86
95
|
|
@@ -100,9 +109,12 @@ module Asciidoctor
|
|
100
109
|
def outputs(node, ret)
|
101
110
|
File.open(@filename + ".xml", "w:UTF-8") { |f| f.write(ret) }
|
102
111
|
presentation_xml_converter(node).convert(@filename + ".xml")
|
103
|
-
html_converter(node).convert(@filename + ".presentation.xml",
|
104
|
-
|
105
|
-
|
112
|
+
html_converter(node).convert(@filename + ".presentation.xml",
|
113
|
+
nil, false, "#{@filename}.html")
|
114
|
+
doc_converter(node).convert(@filename + ".presentation.xml",
|
115
|
+
nil, false, "#{@filename}.doc")
|
116
|
+
pdf_converter(node)&.convert(@filename + ".presentation.xml",
|
117
|
+
nil, false, "#{@filename}.pdf")
|
106
118
|
end
|
107
119
|
|
108
120
|
def clause_parse(attrs, xml, node)
|
@@ -137,6 +149,8 @@ module Asciidoctor
|
|
137
149
|
case ret
|
138
150
|
when "glossary", "terminology"
|
139
151
|
"terms and definitions"
|
152
|
+
when "introduction"
|
153
|
+
"donotrecognise_introduction"
|
140
154
|
else
|
141
155
|
super
|
142
156
|
end
|
@@ -159,7 +173,7 @@ module Asciidoctor
|
|
159
173
|
def bibliography_annex_parse(attrs, xml, node)
|
160
174
|
attrs1 = attrs.merge(id: "_" + UUIDTools::UUID.random_create)
|
161
175
|
xml.annex **attr_code(attrs1) do |xml_section|
|
162
|
-
xml_section.title { |t| t <<
|
176
|
+
xml_section.title { |t| t << node.title }
|
163
177
|
@biblio = true
|
164
178
|
xml.references **attr_code(attrs.merge(normative: true)) do |r|
|
165
179
|
r << node.content
|
@@ -5,14 +5,7 @@ require_relative "./front_id.rb"
|
|
5
5
|
|
6
6
|
module Asciidoctor
|
7
7
|
module NIST
|
8
|
-
# A {Converter} implementation that generates RSD output, and a document
|
9
|
-
# schema encapsulation of the document for validation
|
10
|
-
|
11
8
|
class Converter < Standoc::Converter
|
12
|
-
def doctype(node)
|
13
|
-
node.attr("doctype") || "sp-800"
|
14
|
-
end
|
15
|
-
|
16
9
|
def datetypes
|
17
10
|
super + %w(abandoned superseded)
|
18
11
|
end
|
@@ -27,31 +20,35 @@ module Asciidoctor
|
|
27
20
|
end
|
28
21
|
end
|
29
22
|
|
23
|
+
def asciidoc_sub(text)
|
24
|
+
Asciidoctor::Standoc::Utils::asciidoc_sub(text)
|
25
|
+
end
|
26
|
+
|
30
27
|
def title_subtitle(node, t, at)
|
31
28
|
return unless node.attr("title-sub")
|
32
29
|
t.title(**attr_code(at.merge(type: "subtitle"))) do |t1|
|
33
|
-
t1 <<
|
30
|
+
t1 << asciidoc_sub(node.attr("title-sub"))
|
34
31
|
end
|
35
32
|
node.attr("title-sub-short") and
|
36
33
|
t.title(**attr_code(at.merge(type: "short-subtitle"))) do |t1|
|
37
|
-
t1 <<
|
34
|
+
t1 << asciidoc_sub(node.attr("title-sub-short"))
|
38
35
|
end
|
39
36
|
end
|
40
37
|
|
41
38
|
def title_document_class(node, t, at)
|
42
39
|
return unless node.attr("title-document-class")
|
43
40
|
t.title(**attr_code(at.merge(type: "document-class"))) do |t1|
|
44
|
-
t1 <<
|
41
|
+
t1 << asciidoc_sub(node.attr("title-document-class"))
|
45
42
|
end
|
46
43
|
end
|
47
44
|
|
48
45
|
def title_main(node, t, at)
|
49
46
|
t.title(**attr_code(at.merge(type: "main"))) do |t1|
|
50
|
-
t1 << (
|
47
|
+
t1 << (asciidoc_sub(node.attr("title-main")) || node.title)
|
51
48
|
end
|
52
49
|
node.attr("title-main-short") and
|
53
50
|
t.title(**attr_code(at.merge(type: "short-title"))) do |t1|
|
54
|
-
t1 <<
|
51
|
+
t1 << asciidoc_sub(node.attr("title-main-short"))
|
55
52
|
end
|
56
53
|
end
|
57
54
|
|
@@ -68,12 +65,21 @@ module Asciidoctor
|
|
68
65
|
personal_author(node, xml)
|
69
66
|
end
|
70
67
|
|
68
|
+
def default_publisher
|
69
|
+
"National Institute of Standards and Technology"
|
70
|
+
end
|
71
|
+
|
71
72
|
def metadata_publisher(node, xml)
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
73
|
+
publishers = node.attr("publisher") || default_publisher
|
74
|
+
csv_split(publishers)&.each do |p|
|
75
|
+
xml.contributor do |c|
|
76
|
+
c.role **{ type: "publisher" }
|
77
|
+
c.organization do |a|
|
78
|
+
a.name p
|
79
|
+
if p == default_publisher
|
80
|
+
d = node.attr("nist-division") and a.subdivision d
|
81
|
+
end
|
82
|
+
end
|
77
83
|
end
|
78
84
|
end
|
79
85
|
end
|
@@ -86,9 +92,10 @@ module Asciidoctor
|
|
86
92
|
node.attr("technical-committee") and
|
87
93
|
a.committee(node.attr("technical-committee"))
|
88
94
|
node.attr("subcommittee") and
|
89
|
-
a.subcommittee(
|
90
|
-
|
91
|
-
|
95
|
+
a.subcommittee(
|
96
|
+
node.attr("subcommittee"),
|
97
|
+
**attr_code(type: node.attr("subcommittee-type"),
|
98
|
+
number: node.attr("subcommittee-number")))
|
92
99
|
(node.attr("workgroup") || node.attr("workinggroup")) and
|
93
100
|
a.workgroup(node.attr("workgroup") || node.attr("workinggroup"),
|
94
101
|
**attr_code(type: node.attr("workgroup-type"),
|
@@ -105,19 +112,6 @@ module Asciidoctor
|
|
105
112
|
end
|
106
113
|
end
|
107
114
|
|
108
|
-
def metadata_copyright(node, xml)
|
109
|
-
from = node.attr("copyright-year") || node.attr("copyrightyear") ||
|
110
|
-
Date.today.year
|
111
|
-
xml.copyright do |c|
|
112
|
-
c.from from
|
113
|
-
c.owner do |owner|
|
114
|
-
owner.organization do |o|
|
115
|
-
o.name "NIST"
|
116
|
-
end
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
115
|
def metadata_source(node, xml)
|
122
116
|
super
|
123
117
|
node.attr("doc-email") && xml.uri(node.attr("doc-email"), type: "email")
|
@@ -149,14 +143,13 @@ module Asciidoctor
|
|
149
143
|
end
|
150
144
|
|
151
145
|
def relaton_relation_descriptions
|
152
|
-
super.merge({
|
153
|
-
|
154
|
-
"superseded-by" => "obsoleted-by",
|
155
|
-
})
|
146
|
+
super.merge({ "supersedes" => "obsoletes",
|
147
|
+
"superseded-by" => "obsoleted-by", })
|
156
148
|
end
|
157
149
|
|
158
150
|
def metadata_getrelation(node, xml, type, desc = nil)
|
159
|
-
if type == "obsoleted-by" and desc.nil? and
|
151
|
+
if type == "obsoleted-by" and desc.nil? and
|
152
|
+
node.attr("superseding-status")
|
160
153
|
metadata_superseding_doc(node, xml)
|
161
154
|
end
|
162
155
|
super
|
@@ -166,10 +159,8 @@ module Asciidoctor
|
|
166
159
|
xml.relation **{ type: "obsoletedBy" } do |r|
|
167
160
|
r.bibitem **{ type: "standard" } do |b|
|
168
161
|
metadata_superseding_titles(b, node)
|
169
|
-
doi = node.attr("superseding-doi") and
|
170
|
-
|
171
|
-
url = node.attr("superseding-url") and
|
172
|
-
b.uri url, **{ type: "uri" }
|
162
|
+
doi = node.attr("superseding-doi") and b.uri doi, **{ type: "doi" }
|
163
|
+
url = node.attr("superseding-url") and b.uri url, **{ type: "uri" }
|
173
164
|
metadata_superseding_ids(b, xml)
|
174
165
|
metadata_superseding_authors(b, node)
|
175
166
|
metadata_superseding_dates(b, node)
|
@@ -205,19 +196,19 @@ module Asciidoctor
|
|
205
196
|
def metadata_superseding_titles(b, node)
|
206
197
|
if node.attr("superseding-title")
|
207
198
|
b.title **{ type: "main" } do |t|
|
208
|
-
t <<
|
199
|
+
t << asciidoc_sub(node.attr("superseding-title"))
|
209
200
|
end
|
210
201
|
node.attr("superseding-subtitle") and
|
211
202
|
b.title **{ type: "subtitle" } do |t|
|
212
|
-
t <<
|
203
|
+
t << asciidoc_sub(node.attr("superseding-subtitle"))
|
213
204
|
end
|
214
205
|
else
|
215
206
|
b.title **{ type: "main" } do |t|
|
216
|
-
t << (
|
207
|
+
t << (asciidoc_sub(node.attr("title-main")) || node.title)
|
217
208
|
end
|
218
209
|
node.attr("title-sub") and
|
219
210
|
b.title **{ type: "subtitle" } do |t|
|
220
|
-
t <<
|
211
|
+
t << asciidoc_sub(node.attr("title-sub"))
|
221
212
|
end
|
222
213
|
end
|
223
214
|
end
|
@@ -42,8 +42,11 @@
|
|
42
42
|
</define>
|
43
43
|
<define name="xref">
|
44
44
|
<element name="xref">
|
45
|
+
<!-- attribute target { xsd:IDREF }, -->
|
45
46
|
<attribute name="target">
|
46
|
-
<data type="
|
47
|
+
<data type="string">
|
48
|
+
<param name="pattern">\i\c*|\c+#\c+</param>
|
49
|
+
</data>
|
47
50
|
</attribute>
|
48
51
|
<optional>
|
49
52
|
<attribute name="type">
|
@@ -578,6 +581,8 @@
|
|
578
581
|
<ref name="ol"/>
|
579
582
|
<ref name="dl"/>
|
580
583
|
<ref name="formula"/>
|
584
|
+
<ref name="quote"/>
|
585
|
+
<ref name="sourcecode"/>
|
581
586
|
</choice>
|
582
587
|
</oneOrMore>
|
583
588
|
</element>
|
@@ -661,6 +666,16 @@
|
|
661
666
|
</choice>
|
662
667
|
</attribute>
|
663
668
|
</optional>
|
669
|
+
<optional>
|
670
|
+
<attribute name="valign">
|
671
|
+
<choice>
|
672
|
+
<value>top</value>
|
673
|
+
<value>middle</value>
|
674
|
+
<value>bottom</value>
|
675
|
+
<value>baseline</value>
|
676
|
+
</choice>
|
677
|
+
</attribute>
|
678
|
+
</optional>
|
664
679
|
<choice>
|
665
680
|
<zeroOrMore>
|
666
681
|
<choice>
|
@@ -697,6 +712,16 @@
|
|
697
712
|
</choice>
|
698
713
|
</attribute>
|
699
714
|
</optional>
|
715
|
+
<optional>
|
716
|
+
<attribute name="valign">
|
717
|
+
<choice>
|
718
|
+
<value>top</value>
|
719
|
+
<value>middle</value>
|
720
|
+
<value>bottom</value>
|
721
|
+
<value>baseline</value>
|
722
|
+
</choice>
|
723
|
+
</attribute>
|
724
|
+
</optional>
|
700
725
|
<choice>
|
701
726
|
<zeroOrMore>
|
702
727
|
<choice>
|
@@ -922,6 +947,9 @@
|
|
922
947
|
<optional>
|
923
948
|
<attribute name="script"/>
|
924
949
|
</optional>
|
950
|
+
<optional>
|
951
|
+
<attribute name="type"/>
|
952
|
+
</optional>
|
925
953
|
<optional>
|
926
954
|
<attribute name="obligation">
|
927
955
|
<choice>
|
@@ -961,9 +989,6 @@
|
|
961
989
|
</define>
|
962
990
|
<define name="content-subsection">
|
963
991
|
<element name="clause">
|
964
|
-
<optional>
|
965
|
-
<attribute name="type"/>
|
966
|
-
</optional>
|
967
992
|
<ref name="Content-Section"/>
|
968
993
|
</element>
|
969
994
|
</define>
|
@@ -992,6 +1017,9 @@
|
|
992
1017
|
</choice>
|
993
1018
|
</attribute>
|
994
1019
|
</optional>
|
1020
|
+
<optional>
|
1021
|
+
<attribute name="type"/>
|
1022
|
+
</optional>
|
995
1023
|
<optional>
|
996
1024
|
<ref name="section-title"/>
|
997
1025
|
</optional>
|
@@ -1011,9 +1039,6 @@
|
|
1011
1039
|
</define>
|
1012
1040
|
<define name="clause">
|
1013
1041
|
<element name="clause">
|
1014
|
-
<optional>
|
1015
|
-
<attribute name="type"/>
|
1016
|
-
</optional>
|
1017
1042
|
<ref name="Clause-Section"/>
|
1018
1043
|
</element>
|
1019
1044
|
</define>
|
@@ -1042,18 +1067,24 @@
|
|
1042
1067
|
</choice>
|
1043
1068
|
</attribute>
|
1044
1069
|
</optional>
|
1070
|
+
<optional>
|
1071
|
+
<attribute name="type"/>
|
1072
|
+
</optional>
|
1045
1073
|
<optional>
|
1046
1074
|
<ref name="section-title"/>
|
1047
1075
|
</optional>
|
1048
1076
|
<group>
|
1049
|
-
<
|
1050
|
-
<
|
1051
|
-
<
|
1052
|
-
|
1053
|
-
|
1054
|
-
<
|
1055
|
-
|
1056
|
-
|
1077
|
+
<choice>
|
1078
|
+
<group>
|
1079
|
+
<zeroOrMore>
|
1080
|
+
<ref name="BasicBlock"/>
|
1081
|
+
</zeroOrMore>
|
1082
|
+
<zeroOrMore>
|
1083
|
+
<ref name="note"/>
|
1084
|
+
</zeroOrMore>
|
1085
|
+
</group>
|
1086
|
+
<ref name="amend"/>
|
1087
|
+
</choice>
|
1057
1088
|
<zeroOrMore>
|
1058
1089
|
<choice>
|
1059
1090
|
<ref name="clause-subsection"/>
|
@@ -1180,6 +1211,9 @@
|
|
1180
1211
|
<optional>
|
1181
1212
|
<attribute name="script"/>
|
1182
1213
|
</optional>
|
1214
|
+
<optional>
|
1215
|
+
<attribute name="type"/>
|
1216
|
+
</optional>
|
1183
1217
|
<optional>
|
1184
1218
|
<attribute name="obligation">
|
1185
1219
|
<choice>
|
@@ -1501,4 +1535,79 @@
|
|
1501
1535
|
<ref name="CitationType"/>
|
1502
1536
|
</element>
|
1503
1537
|
</define>
|
1538
|
+
<define name="amend">
|
1539
|
+
<element name="amend">
|
1540
|
+
<optional>
|
1541
|
+
<attribute name="id">
|
1542
|
+
<data type="ID"/>
|
1543
|
+
</attribute>
|
1544
|
+
</optional>
|
1545
|
+
<attribute name="change">
|
1546
|
+
<choice>
|
1547
|
+
<value>add</value>
|
1548
|
+
<value>modify</value>
|
1549
|
+
<value>delete</value>
|
1550
|
+
</choice>
|
1551
|
+
</attribute>
|
1552
|
+
<optional>
|
1553
|
+
<attribute name="path"/>
|
1554
|
+
</optional>
|
1555
|
+
<optional>
|
1556
|
+
<attribute name="path_end"/>
|
1557
|
+
</optional>
|
1558
|
+
<optional>
|
1559
|
+
<attribute name="title"/>
|
1560
|
+
</optional>
|
1561
|
+
<optional>
|
1562
|
+
<element name="location">
|
1563
|
+
<zeroOrMore>
|
1564
|
+
<ref name="locality"/>
|
1565
|
+
</zeroOrMore>
|
1566
|
+
</element>
|
1567
|
+
</optional>
|
1568
|
+
<zeroOrMore>
|
1569
|
+
<ref name="autonumber"/>
|
1570
|
+
</zeroOrMore>
|
1571
|
+
<optional>
|
1572
|
+
<element name="description">
|
1573
|
+
<zeroOrMore>
|
1574
|
+
<ref name="BasicBlock"/>
|
1575
|
+
</zeroOrMore>
|
1576
|
+
</element>
|
1577
|
+
</optional>
|
1578
|
+
<optional>
|
1579
|
+
<element name="newcontent">
|
1580
|
+
<zeroOrMore>
|
1581
|
+
<ref name="BasicBlock"/>
|
1582
|
+
</zeroOrMore>
|
1583
|
+
</element>
|
1584
|
+
</optional>
|
1585
|
+
<optional>
|
1586
|
+
<element name="description">
|
1587
|
+
<zeroOrMore>
|
1588
|
+
<ref name="BasicBlock"/>
|
1589
|
+
</zeroOrMore>
|
1590
|
+
</element>
|
1591
|
+
</optional>
|
1592
|
+
</element>
|
1593
|
+
</define>
|
1594
|
+
<define name="autonumber">
|
1595
|
+
<element name="autonumber">
|
1596
|
+
<attribute name="type">
|
1597
|
+
<choice>
|
1598
|
+
<value>requirement</value>
|
1599
|
+
<value>recommendation</value>
|
1600
|
+
<value>permission</value>
|
1601
|
+
<value>table</value>
|
1602
|
+
<value>figure</value>
|
1603
|
+
<value>admonition</value>
|
1604
|
+
<value>formula</value>
|
1605
|
+
<value>sourcecode</value>
|
1606
|
+
<value>example</value>
|
1607
|
+
<value>note</value>
|
1608
|
+
</choice>
|
1609
|
+
</attribute>
|
1610
|
+
<text/>
|
1611
|
+
</element>
|
1612
|
+
</define>
|
1504
1613
|
</grammar>
|