metanorma-ietf 2.2.7 → 2.3.1
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 +4 -4
- data/.github/workflows/rake.yml +10 -26
- data/.gitignore +2 -0
- data/.rubocop.yml +5 -6
- data/lib/asciidoctor/ietf/basicdoc.rng +5 -3
- data/lib/asciidoctor/ietf/biblio.rng +4 -6
- data/lib/asciidoctor/ietf/blocks.rb +6 -6
- data/lib/asciidoctor/ietf/converter.rb +20 -0
- data/lib/asciidoctor/ietf/front.rb +4 -4
- data/lib/asciidoctor/ietf/ietf.rng +39 -0
- data/lib/asciidoctor/ietf/isodoc.rng +238 -3
- data/lib/isodoc/ietf/blocks.rb +17 -15
- data/lib/isodoc/ietf/cleanup.rb +22 -25
- data/lib/isodoc/ietf/front.rb +1 -0
- data/lib/isodoc/ietf/inline.rb +1 -1
- data/lib/isodoc/ietf/rfc_convert.rb +10 -5
- data/lib/metanorma/ietf/version.rb +1 -1
- data/metanorma-ietf.gemspec +6 -5
- metadata +32 -20
- data/.rubocop.ribose.yml +0 -65
- data/.rubocop.tb.yml +0 -650
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0009480252eb6b82ab3d795efc48b9fc3146a1790dedb07ab40b415c0085dde2'
|
4
|
+
data.tar.gz: 1ff86a356bcc191b07b5302439f88b134b69a02a9ab26db48fe85feed2a16cfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 061bf172d476731cd3885c49b825751c8d68dc458f0d591b48df8b47cc0f5fffcb2016e1934f3ade8f21fa55f13ecdcd68a2b2590eea198870ad3c0d7af9a95a
|
7
|
+
data.tar.gz: 684c4f1e6f6701fa54bf3b903a28ada68be7352fe99b4aa23036c6bd96c288cf15628b778689adfb516154bdb5cfaaf130ebf8bae8e5a78090bc08a7a157a439
|
data/.github/workflows/rake.yml
CHANGED
@@ -16,17 +16,17 @@ jobs:
|
|
16
16
|
strategy:
|
17
17
|
fail-fast: false
|
18
18
|
matrix:
|
19
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
19
|
+
ruby: [ '2.7', '2.6', '2.5', '2.4' ]
|
20
20
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
21
21
|
experimental: [ false ]
|
22
22
|
include:
|
23
|
-
- ruby: '
|
23
|
+
- ruby: '3.0'
|
24
24
|
os: 'ubuntu-latest'
|
25
25
|
experimental: true
|
26
|
-
- ruby: '
|
26
|
+
- ruby: '3.0'
|
27
27
|
os: 'windows-latest'
|
28
28
|
experimental: true
|
29
|
-
- ruby: '
|
29
|
+
- ruby: '3.0'
|
30
30
|
os: 'macos-latest'
|
31
31
|
experimental: true
|
32
32
|
|
@@ -36,24 +36,11 @@ jobs:
|
|
36
36
|
- uses: ruby/setup-ruby@v1
|
37
37
|
with:
|
38
38
|
ruby-version: ${{ matrix.ruby }}
|
39
|
-
|
40
|
-
- if: matrix.os == 'macos-latest'
|
41
|
-
run: brew install autoconf automake libtool
|
42
|
-
|
43
|
-
- uses: actions/cache@v2
|
44
|
-
with:
|
45
|
-
path: vendor/bundle
|
46
|
-
key: bundle-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}
|
47
|
-
restore-keys: bundle-${{ matrix.os }}-${{ matrix.ruby }}
|
48
|
-
|
49
|
-
- run: bundle config set path 'vendor/bundle'
|
50
|
-
|
51
|
-
- run: bundle install --jobs 4 --retry 3
|
39
|
+
bundler-cache: true
|
52
40
|
|
53
41
|
- uses: actions/setup-python@v1
|
54
42
|
with:
|
55
43
|
python-version: '3.6'
|
56
|
-
architecture: 'x64'
|
57
44
|
|
58
45
|
- name: set PIP_DOWNLOAD_CACHE
|
59
46
|
shell: python
|
@@ -96,13 +83,10 @@ jobs:
|
|
96
83
|
tests-passed:
|
97
84
|
needs: rake
|
98
85
|
runs-on: ubuntu-latest
|
99
|
-
continue-on-error: true
|
100
86
|
steps:
|
101
|
-
-
|
102
|
-
uses: Sibz/github-status-action@v1
|
87
|
+
- uses: peter-evans/repository-dispatch@v1
|
103
88
|
with:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
sha: ${{ github.event.pull_request.head.sha || github.sha }}
|
89
|
+
token: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
|
90
|
+
repository: ${{ github.repository }}
|
91
|
+
event-type: notify
|
92
|
+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
# This project follows the Ribose OSS style guide.
|
2
2
|
# https://github.com/riboseinc/oss-guides
|
3
3
|
# All project-specific additions and overrides should be specified in this file.
|
4
|
-
|
5
4
|
inherit_from:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
- https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
|
6
|
+
|
7
|
+
# local repo-specific modifications
|
8
|
+
|
10
9
|
AllCops:
|
11
10
|
DisplayCopNames: false
|
12
11
|
StyleGuideCopsOnly: false
|
13
|
-
TargetRubyVersion: 2.
|
12
|
+
TargetRubyVersion: 2.4
|
14
13
|
Rails:
|
15
14
|
Enabled: true
|
@@ -729,9 +729,11 @@
|
|
729
729
|
</define>
|
730
730
|
<define name="index">
|
731
731
|
<element name="index">
|
732
|
-
<
|
733
|
-
<
|
734
|
-
|
732
|
+
<optional>
|
733
|
+
<attribute name="to">
|
734
|
+
<data type="IDREF"/>
|
735
|
+
</attribute>
|
736
|
+
</optional>
|
735
737
|
<element name="primary">
|
736
738
|
<oneOrMore>
|
737
739
|
<ref name="PureTextElement"/>
|
@@ -124,7 +124,7 @@
|
|
124
124
|
<value>application/tei+xml</value>
|
125
125
|
<value>text/x-asciidoc</value>
|
126
126
|
<value>text/markdown</value>
|
127
|
-
<value>application/x-
|
127
|
+
<value>application/x-metanorma+xml</value>
|
128
128
|
<text/>
|
129
129
|
</choice>
|
130
130
|
</attribute>
|
@@ -452,6 +452,7 @@
|
|
452
452
|
<attribute name="type">
|
453
453
|
<choice>
|
454
454
|
<value>isni</value>
|
455
|
+
<value>orcid</value>
|
455
456
|
<value>uri</value>
|
456
457
|
</choice>
|
457
458
|
</attribute>
|
@@ -461,10 +462,7 @@
|
|
461
462
|
<define name="org-identifier">
|
462
463
|
<element name="identifier">
|
463
464
|
<attribute name="type">
|
464
|
-
<
|
465
|
-
<value>orcid</value>
|
466
|
-
<value>uri</value>
|
467
|
-
</choice>
|
465
|
+
<data type="string" datatypeLibrary=""/>
|
468
466
|
</attribute>
|
469
467
|
<text/>
|
470
468
|
</element>
|
@@ -1106,7 +1104,7 @@
|
|
1106
1104
|
<value>complementOf</value>
|
1107
1105
|
<value>obsoletes</value>
|
1108
1106
|
<value>obsoletedBy</value>
|
1109
|
-
<value>
|
1107
|
+
<value>cites</value>
|
1110
1108
|
<value>isCitedIn</value>
|
1111
1109
|
</choice>
|
1112
1110
|
</define>
|
@@ -6,17 +6,17 @@ module Asciidoctor
|
|
6
6
|
node.attr("keep-with-next"),
|
7
7
|
"keep-with-previous": node.attr("keepWithPrevious") ||
|
8
8
|
node.attr("keep-with-previous"),
|
9
|
-
id: ::
|
9
|
+
id: ::Metanorma::Utils::anchor_or_uuid(node))
|
10
10
|
end
|
11
11
|
|
12
12
|
def ul_attrs(node)
|
13
|
-
attr_code(id: ::
|
13
|
+
attr_code(id: ::Metanorma::Utils::anchor_or_uuid(node),
|
14
14
|
nobullet: node.attr("nobullet"),
|
15
15
|
spacing: node.attr("spacing"))
|
16
16
|
end
|
17
17
|
|
18
18
|
def ol_attrs(node)
|
19
|
-
attr_code(id: ::
|
19
|
+
attr_code(id: ::Metanorma::Utils::anchor_or_uuid(node),
|
20
20
|
type: node.attr("format") || olist_style(node.style),
|
21
21
|
group: node.attr("group"),
|
22
22
|
spacing: node.attr("spacing"),
|
@@ -24,7 +24,7 @@ module Asciidoctor
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def dl_attrs(node)
|
27
|
-
attr_code(id: ::
|
27
|
+
attr_code(id: ::Metanorma::Utils::anchor_or_uuid(node),
|
28
28
|
newline: node.attr("newline"),
|
29
29
|
indent: node.attr("indent"),
|
30
30
|
spacing: node.attr("spacing"))
|
@@ -46,7 +46,7 @@ module Asciidoctor
|
|
46
46
|
|
47
47
|
def note(n)
|
48
48
|
noko do |xml|
|
49
|
-
xml.note **attr_code(id: ::
|
49
|
+
xml.note **attr_code(id: ::Metanorma::Utils::anchor_or_uuid(n),
|
50
50
|
removeInRFC: n.attr("remove-in-rfc")) do |c|
|
51
51
|
n.title.nil? or c.name { |name| name << n.title }
|
52
52
|
wrap_in_para(n, c)
|
@@ -60,7 +60,7 @@ module Asciidoctor
|
|
60
60
|
figure_title(node, f)
|
61
61
|
f.pre node.lines.join("\n"),
|
62
62
|
**attr_code(align: node.attr("align"),
|
63
|
-
id: ::
|
63
|
+
id: ::Metanorma::Utils::anchor_or_uuid(nil),
|
64
64
|
alt: node.attr("alt"))
|
65
65
|
end
|
66
66
|
end
|
@@ -140,6 +140,7 @@ module Asciidoctor
|
|
140
140
|
def rfc_anchor_cleanup(xmldoc)
|
141
141
|
map = {}
|
142
142
|
xmldoc.xpath("//bibitem[docidentifier/@type = 'rfc-anchor']").each do |b|
|
143
|
+
next if b.at("./ancestor::bibdata")
|
143
144
|
map[b["id"]] = b.at("./docidentifier[@type = 'rfc-anchor']").text
|
144
145
|
b["id"] = b.at("./docidentifier[@type = 'rfc-anchor']").text
|
145
146
|
end
|
@@ -204,6 +205,25 @@ module Asciidoctor
|
|
204
205
|
end
|
205
206
|
end
|
206
207
|
|
208
|
+
def inline_indexterm(node)
|
209
|
+
noko do |xml|
|
210
|
+
node.type == :visible and xml << node.text.sub(/^primary:(?=\S)/, "")
|
211
|
+
terms = (node.attr("terms") || [node.text]).map { |x| xml_encode(x) }
|
212
|
+
if /^primary:\S/.match(terms[0])
|
213
|
+
terms[0].sub!(/^primary:/, "")
|
214
|
+
has_primary = true
|
215
|
+
end
|
216
|
+
xml.index **attr_code(primary: has_primary) do |i|
|
217
|
+
i.primary { |x| x << terms[0] }
|
218
|
+
a = terms.dig(1) and i.secondary { |x| x << a }
|
219
|
+
a = terms.dig(2) and i.tertiary { |x| x << a }
|
220
|
+
end
|
221
|
+
end.join
|
222
|
+
end
|
223
|
+
|
224
|
+
def section_names_refs_cleanup(x)
|
225
|
+
end
|
226
|
+
|
207
227
|
def html_extract_attributes(node)
|
208
228
|
super.merge(use_xinclude: node.attr("use-xinclude"))
|
209
229
|
end
|
@@ -14,7 +14,7 @@ module Asciidoctor
|
|
14
14
|
csv_split(publishers)&.each do |p|
|
15
15
|
xml.contributor do |c|
|
16
16
|
c.role **{ type: "publisher" }
|
17
|
-
c.organization { |a| organization(a, p) }
|
17
|
+
c.organization { |a| organization(a, p, true) }
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -25,7 +25,7 @@ module Asciidoctor
|
|
25
25
|
xml.copyright do |c|
|
26
26
|
c.from (node.attr("copyright-year") || Date.today.year)
|
27
27
|
c.owner do |owner|
|
28
|
-
owner.organization { |o| organization(o, p) }
|
28
|
+
owner.organization { |o| organization(o, p, true) }
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
@@ -51,8 +51,8 @@ module Asciidoctor
|
|
51
51
|
["en"].each do |lang|
|
52
52
|
at = { language: lang, format: "text/plain" }
|
53
53
|
xml.title **attr_code(at.merge(type: "main")) do |t|
|
54
|
-
t << (::
|
55
|
-
::
|
54
|
+
t << (::Metanorma::Utils::asciidoc_sub(node.attr("title")) ||
|
55
|
+
::Metanorma::Utils::asciidoc_sub(node.attr("title-en")) ||
|
56
56
|
node.title)
|
57
57
|
end
|
58
58
|
a = node.attr("abbrev") and
|
@@ -564,6 +564,39 @@
|
|
564
564
|
</zeroOrMore>
|
565
565
|
</element>
|
566
566
|
</define>
|
567
|
+
<define name="index">
|
568
|
+
<element name="index">
|
569
|
+
<optional>
|
570
|
+
<attribute name="to">
|
571
|
+
<data type="IDREF"/>
|
572
|
+
</attribute>
|
573
|
+
</optional>
|
574
|
+
<optional>
|
575
|
+
<attribute name="primary">
|
576
|
+
<data type="boolean"/>
|
577
|
+
</attribute>
|
578
|
+
</optional>
|
579
|
+
<element name="primary">
|
580
|
+
<oneOrMore>
|
581
|
+
<ref name="PureTextElement"/>
|
582
|
+
</oneOrMore>
|
583
|
+
</element>
|
584
|
+
<optional>
|
585
|
+
<element name="secondary">
|
586
|
+
<oneOrMore>
|
587
|
+
<ref name="PureTextElement"/>
|
588
|
+
</oneOrMore>
|
589
|
+
</element>
|
590
|
+
</optional>
|
591
|
+
<optional>
|
592
|
+
<element name="tertiary">
|
593
|
+
<oneOrMore>
|
594
|
+
<ref name="PureTextElement"/>
|
595
|
+
</oneOrMore>
|
596
|
+
</element>
|
597
|
+
</optional>
|
598
|
+
</element>
|
599
|
+
</define>
|
567
600
|
</include>
|
568
601
|
<define name="TextElement" combine="choice">
|
569
602
|
<ref name="bcp14"/>
|
@@ -879,6 +912,9 @@
|
|
879
912
|
<zeroOrMore>
|
880
913
|
<ref name="termdocsource"/>
|
881
914
|
</zeroOrMore>
|
915
|
+
<optional>
|
916
|
+
<ref name="misccontainer"/>
|
917
|
+
</optional>
|
882
918
|
<optional>
|
883
919
|
<ref name="boilerplate"/>
|
884
920
|
</optional>
|
@@ -890,6 +926,9 @@
|
|
890
926
|
<ref name="annex"/>
|
891
927
|
</zeroOrMore>
|
892
928
|
<ref name="bibliography"/>
|
929
|
+
<zeroOrMore>
|
930
|
+
<ref name="indexsect"/>
|
931
|
+
</zeroOrMore>
|
893
932
|
</element>
|
894
933
|
</define>
|
895
934
|
</grammar>
|
@@ -86,6 +86,35 @@
|
|
86
86
|
<text/>
|
87
87
|
</element>
|
88
88
|
</define>
|
89
|
+
<define name="erefType">
|
90
|
+
<optional>
|
91
|
+
<attribute name="normative">
|
92
|
+
<data type="boolean"/>
|
93
|
+
</attribute>
|
94
|
+
</optional>
|
95
|
+
<attribute name="citeas"/>
|
96
|
+
<attribute name="type">
|
97
|
+
<ref name="ReferenceFormat"/>
|
98
|
+
</attribute>
|
99
|
+
<optional>
|
100
|
+
<attribute name="alt"/>
|
101
|
+
</optional>
|
102
|
+
<optional>
|
103
|
+
<attribute name="case">
|
104
|
+
<choice>
|
105
|
+
<value>capital</value>
|
106
|
+
<value>lowercase</value>
|
107
|
+
</choice>
|
108
|
+
</attribute>
|
109
|
+
</optional>
|
110
|
+
<optional>
|
111
|
+
<attribute name="droploc">
|
112
|
+
<data type="boolean"/>
|
113
|
+
</attribute>
|
114
|
+
</optional>
|
115
|
+
<ref name="CitationType"/>
|
116
|
+
<text/>
|
117
|
+
</define>
|
89
118
|
<define name="ul">
|
90
119
|
<element name="ul">
|
91
120
|
<attribute name="id">
|
@@ -102,7 +131,7 @@
|
|
102
131
|
</attribute>
|
103
132
|
</optional>
|
104
133
|
<oneOrMore>
|
105
|
-
<ref name="
|
134
|
+
<ref name="ul_li"/>
|
106
135
|
</oneOrMore>
|
107
136
|
<zeroOrMore>
|
108
137
|
<ref name="note"/>
|
@@ -775,6 +804,78 @@
|
|
775
804
|
<ref name="paragraph"/>
|
776
805
|
</element>
|
777
806
|
</define>
|
807
|
+
<define name="em">
|
808
|
+
<element name="em">
|
809
|
+
<zeroOrMore>
|
810
|
+
<choice>
|
811
|
+
<ref name="PureTextElement"/>
|
812
|
+
<ref name="stem"/>
|
813
|
+
<ref name="index"/>
|
814
|
+
</choice>
|
815
|
+
</zeroOrMore>
|
816
|
+
</element>
|
817
|
+
</define>
|
818
|
+
<define name="strong">
|
819
|
+
<element name="strong">
|
820
|
+
<zeroOrMore>
|
821
|
+
<choice>
|
822
|
+
<ref name="PureTextElement"/>
|
823
|
+
<ref name="stem"/>
|
824
|
+
<ref name="index"/>
|
825
|
+
</choice>
|
826
|
+
</zeroOrMore>
|
827
|
+
</element>
|
828
|
+
</define>
|
829
|
+
<define name="tt">
|
830
|
+
<element name="tt">
|
831
|
+
<zeroOrMore>
|
832
|
+
<choice>
|
833
|
+
<ref name="PureTextElement"/>
|
834
|
+
<ref name="index"/>
|
835
|
+
</choice>
|
836
|
+
</zeroOrMore>
|
837
|
+
</element>
|
838
|
+
</define>
|
839
|
+
<define name="keyword">
|
840
|
+
<element name="keyword">
|
841
|
+
<zeroOrMore>
|
842
|
+
<choice>
|
843
|
+
<ref name="PureTextElement"/>
|
844
|
+
<ref name="index"/>
|
845
|
+
</choice>
|
846
|
+
</zeroOrMore>
|
847
|
+
</element>
|
848
|
+
</define>
|
849
|
+
<define name="strike">
|
850
|
+
<element name="strike">
|
851
|
+
<zeroOrMore>
|
852
|
+
<choice>
|
853
|
+
<ref name="PureTextElement"/>
|
854
|
+
<ref name="index"/>
|
855
|
+
</choice>
|
856
|
+
</zeroOrMore>
|
857
|
+
</element>
|
858
|
+
</define>
|
859
|
+
<define name="underline">
|
860
|
+
<element name="underline">
|
861
|
+
<zeroOrMore>
|
862
|
+
<choice>
|
863
|
+
<ref name="PureTextElement"/>
|
864
|
+
<ref name="index"/>
|
865
|
+
</choice>
|
866
|
+
</zeroOrMore>
|
867
|
+
</element>
|
868
|
+
</define>
|
869
|
+
<define name="smallcap">
|
870
|
+
<element name="smallcap">
|
871
|
+
<zeroOrMore>
|
872
|
+
<choice>
|
873
|
+
<ref name="PureTextElement"/>
|
874
|
+
<ref name="index"/>
|
875
|
+
</choice>
|
876
|
+
</zeroOrMore>
|
877
|
+
</element>
|
878
|
+
</define>
|
778
879
|
</include>
|
779
880
|
<!-- end overrides -->
|
780
881
|
<define name="colgroup">
|
@@ -789,8 +890,39 @@
|
|
789
890
|
<attribute name="width"/>
|
790
891
|
</element>
|
791
892
|
</define>
|
893
|
+
<define name="BibItemType" combine="choice">
|
894
|
+
<value>internal</value>
|
895
|
+
</define>
|
792
896
|
<define name="TextElement" combine="choice">
|
793
|
-
<
|
897
|
+
<choice>
|
898
|
+
<ref name="concept"/>
|
899
|
+
<ref name="add"/>
|
900
|
+
<ref name="del"/>
|
901
|
+
</choice>
|
902
|
+
</define>
|
903
|
+
<define name="add">
|
904
|
+
<element name="add">
|
905
|
+
<choice>
|
906
|
+
<ref name="PureTextElement"/>
|
907
|
+
<ref name="eref"/>
|
908
|
+
<ref name="stem"/>
|
909
|
+
<ref name="keyword"/>
|
910
|
+
<ref name="xref"/>
|
911
|
+
<ref name="hyperlink"/>
|
912
|
+
</choice>
|
913
|
+
</element>
|
914
|
+
</define>
|
915
|
+
<define name="del">
|
916
|
+
<element name="del">
|
917
|
+
<choice>
|
918
|
+
<ref name="PureTextElement"/>
|
919
|
+
<ref name="eref"/>
|
920
|
+
<ref name="stem"/>
|
921
|
+
<ref name="keyword"/>
|
922
|
+
<ref name="xref"/>
|
923
|
+
<ref name="hyperlink"/>
|
924
|
+
</choice>
|
925
|
+
</element>
|
794
926
|
</define>
|
795
927
|
<define name="concept">
|
796
928
|
<element name="concept">
|
@@ -809,6 +941,8 @@
|
|
809
941
|
<ref name="requirement"/>
|
810
942
|
<ref name="recommendation"/>
|
811
943
|
<ref name="permission"/>
|
944
|
+
<ref name="imagemap"/>
|
945
|
+
<ref name="svgmap"/>
|
812
946
|
</choice>
|
813
947
|
</define>
|
814
948
|
<define name="bibliography">
|
@@ -914,6 +1048,9 @@
|
|
914
1048
|
</choice>
|
915
1049
|
</attribute>
|
916
1050
|
<ref name="bibdata"/>
|
1051
|
+
<optional>
|
1052
|
+
<ref name="misccontainer"/>
|
1053
|
+
</optional>
|
917
1054
|
<optional>
|
918
1055
|
<ref name="boilerplate"/>
|
919
1056
|
</optional>
|
@@ -924,11 +1061,21 @@
|
|
924
1061
|
<zeroOrMore>
|
925
1062
|
<ref name="annex"/>
|
926
1063
|
</zeroOrMore>
|
1064
|
+
<optional>
|
1065
|
+
<ref name="bibliography"/>
|
1066
|
+
</optional>
|
927
1067
|
<zeroOrMore>
|
928
|
-
<ref name="
|
1068
|
+
<ref name="indexsect"/>
|
929
1069
|
</zeroOrMore>
|
930
1070
|
</element>
|
931
1071
|
</define>
|
1072
|
+
<define name="misccontainer">
|
1073
|
+
<element name="misc-container">
|
1074
|
+
<oneOrMore>
|
1075
|
+
<ref name="AnyElement"/>
|
1076
|
+
</oneOrMore>
|
1077
|
+
</element>
|
1078
|
+
</define>
|
932
1079
|
<define name="preface">
|
933
1080
|
<element name="preface">
|
934
1081
|
<oneOrMore>
|
@@ -952,6 +1099,11 @@
|
|
952
1099
|
<ref name="Content-Section"/>
|
953
1100
|
</element>
|
954
1101
|
</define>
|
1102
|
+
<define name="indexsect">
|
1103
|
+
<element name="indexsect">
|
1104
|
+
<ref name="Content-Section"/>
|
1105
|
+
</element>
|
1106
|
+
</define>
|
955
1107
|
<define name="boilerplate">
|
956
1108
|
<element name="boilerplate">
|
957
1109
|
<optional>
|
@@ -1632,4 +1784,87 @@
|
|
1632
1784
|
<text/>
|
1633
1785
|
</element>
|
1634
1786
|
</define>
|
1787
|
+
<define name="imagemap">
|
1788
|
+
<element name="imagemap">
|
1789
|
+
<ref name="figure"/>
|
1790
|
+
<zeroOrMore>
|
1791
|
+
<element name="area">
|
1792
|
+
<attribute name="type">
|
1793
|
+
<choice>
|
1794
|
+
<value>rect</value>
|
1795
|
+
<value>circle</value>
|
1796
|
+
<value>ellipse</value>
|
1797
|
+
<value>poly</value>
|
1798
|
+
</choice>
|
1799
|
+
</attribute>
|
1800
|
+
<choice>
|
1801
|
+
<ref name="xref"/>
|
1802
|
+
<ref name="hyperlink"/>
|
1803
|
+
<ref name="eref"/>
|
1804
|
+
</choice>
|
1805
|
+
<oneOrMore>
|
1806
|
+
<element name="coords">
|
1807
|
+
<attribute name="x">
|
1808
|
+
<data type="float"/>
|
1809
|
+
</attribute>
|
1810
|
+
<attribute name="y">
|
1811
|
+
<data type="float"/>
|
1812
|
+
</attribute>
|
1813
|
+
</element>
|
1814
|
+
</oneOrMore>
|
1815
|
+
<optional>
|
1816
|
+
<element name="radius">
|
1817
|
+
<attribute name="x">
|
1818
|
+
<data type="float"/>
|
1819
|
+
</attribute>
|
1820
|
+
<optional>
|
1821
|
+
<attribute name="y">
|
1822
|
+
<data type="float"/>
|
1823
|
+
</attribute>
|
1824
|
+
</optional>
|
1825
|
+
</element>
|
1826
|
+
</optional>
|
1827
|
+
</element>
|
1828
|
+
</zeroOrMore>
|
1829
|
+
</element>
|
1830
|
+
</define>
|
1831
|
+
<define name="svgmap">
|
1832
|
+
<element name="svgmap">
|
1833
|
+
<ref name="figure"/>
|
1834
|
+
<zeroOrMore>
|
1835
|
+
<element name="target">
|
1836
|
+
<attribute name="href">
|
1837
|
+
<data type="anyURI"/>
|
1838
|
+
</attribute>
|
1839
|
+
<choice>
|
1840
|
+
<ref name="xref"/>
|
1841
|
+
<ref name="hyperlink"/>
|
1842
|
+
<ref name="eref"/>
|
1843
|
+
</choice>
|
1844
|
+
</element>
|
1845
|
+
</zeroOrMore>
|
1846
|
+
</element>
|
1847
|
+
</define>
|
1848
|
+
<define name="ul_li">
|
1849
|
+
<element name="li">
|
1850
|
+
<optional>
|
1851
|
+
<attribute name="id">
|
1852
|
+
<data type="ID"/>
|
1853
|
+
</attribute>
|
1854
|
+
</optional>
|
1855
|
+
<optional>
|
1856
|
+
<attribute name="uncheckedcheckbox">
|
1857
|
+
<data type="boolean"/>
|
1858
|
+
</attribute>
|
1859
|
+
</optional>
|
1860
|
+
<optional>
|
1861
|
+
<attribute name="checkedcheckbox">
|
1862
|
+
<data type="boolean"/>
|
1863
|
+
</attribute>
|
1864
|
+
</optional>
|
1865
|
+
<oneOrMore>
|
1866
|
+
<ref name="BasicBlock"/>
|
1867
|
+
</oneOrMore>
|
1868
|
+
</element>
|
1869
|
+
</define>
|
1635
1870
|
</grammar>
|