@likecoin/epubcheck-ts 0.2.2 → 0.2.4
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.
- package/README.md +8 -8
- package/bin/epubcheck.js +4 -4
- package/bin/epubcheck.ts +4 -4
- package/dist/index.cjs +1057 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1057 -101
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/schemas/applications.rng +0 -429
- package/schemas/aria.rng +0 -3355
- package/schemas/block.rng +0 -488
- package/schemas/common.rng +0 -1076
- package/schemas/container.rng +0 -24
- package/schemas/core-scripting.rng +0 -950
- package/schemas/data.rng +0 -161
- package/schemas/datatypes.rng +0 -401
- package/schemas/embed.rng +0 -980
- package/schemas/epub-mathml3-inc.rng +0 -161
- package/schemas/epub-nav-30.rnc +0 -44
- package/schemas/epub-nav-30.rng +0 -19985
- package/schemas/epub-nav-30.sch +0 -87
- package/schemas/epub-prefix-attr.rng +0 -17
- package/schemas/epub-shared-inc.rng +0 -29
- package/schemas/epub-ssml-attrs.rng +0 -17
- package/schemas/epub-svg-30.rnc +0 -17
- package/schemas/epub-svg-30.rng +0 -19903
- package/schemas/epub-svg-30.sch +0 -7
- package/schemas/epub-svg-forgiving-inc.rng +0 -315
- package/schemas/epub-switch.rng +0 -121
- package/schemas/epub-trigger.rng +0 -90
- package/schemas/epub-type-attr.rng +0 -12
- package/schemas/epub-xhtml-30.rnc +0 -6
- package/schemas/epub-xhtml-30.rng +0 -19882
- package/schemas/epub-xhtml-30.sch +0 -409
- package/schemas/epub-xhtml-inc.rng +0 -151
- package/schemas/epub-xhtml-integration.rng +0 -565
- package/schemas/epub-xhtml-svg-mathml.rng +0 -17
- package/schemas/form-datatypes.rng +0 -54
- package/schemas/mathml3-common.rng +0 -336
- package/schemas/mathml3-content.rng +0 -1552
- package/schemas/mathml3-inc.rng +0 -30
- package/schemas/mathml3-presentation.rng +0 -2341
- package/schemas/mathml3-strict-content.rng +0 -205
- package/schemas/media.rng +0 -374
- package/schemas/meta.rng +0 -754
- package/schemas/microdata.rng +0 -192
- package/schemas/ncx.rng +0 -308
- package/schemas/ocf-container-30.rnc +0 -37
- package/schemas/ocf-container-30.rng +0 -568
- package/schemas/opf.rng +0 -15
- package/schemas/opf20.rng +0 -513
- package/schemas/package-30.rnc +0 -133
- package/schemas/package-30.rng +0 -1153
- package/schemas/package-30.sch +0 -444
- package/schemas/phrase.rng +0 -746
- package/schemas/rdfa.rng +0 -552
- package/schemas/revision.rng +0 -106
- package/schemas/ruby.rng +0 -141
- package/schemas/sectional.rng +0 -278
- package/schemas/structural.rng +0 -298
- package/schemas/tables.rng +0 -420
- package/schemas/web-components.rng +0 -184
- package/schemas/web-forms.rng +0 -975
- package/schemas/web-forms2.rng +0 -1236
package/schemas/microdata.rng
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="">
|
|
3
|
-
<!-- ##################################################################### -->
|
|
4
|
-
<!-- ##################################################################### -->
|
|
5
|
-
<define name="common.attrs.microdata">
|
|
6
|
-
<a:documentation> RELAX NG Schema for HTML 5: Microdata #</a:documentation>
|
|
7
|
-
<interleave>
|
|
8
|
-
<optional>
|
|
9
|
-
<ref name="common.attrs.microdata.itemref"/>
|
|
10
|
-
</optional>
|
|
11
|
-
<optional>
|
|
12
|
-
<ref name="common.attrs.microdata.itemprop"/>
|
|
13
|
-
</optional>
|
|
14
|
-
<optional>
|
|
15
|
-
<ref name="common.attrs.microdata.itemscope"/>
|
|
16
|
-
</optional>
|
|
17
|
-
<optional>
|
|
18
|
-
<ref name="common.attrs.microdata.itemtype"/>
|
|
19
|
-
</optional>
|
|
20
|
-
<optional>
|
|
21
|
-
<ref name="common.attrs.microdata.itemid"/>
|
|
22
|
-
</optional>
|
|
23
|
-
</interleave>
|
|
24
|
-
</define>
|
|
25
|
-
<define name="common.attrs.microdata.itemref">
|
|
26
|
-
<attribute name="itemref">
|
|
27
|
-
<ref name="common.data.idrefs"/>
|
|
28
|
-
</attribute>
|
|
29
|
-
</define>
|
|
30
|
-
<define name="common.attrs.microdata.itemprop">
|
|
31
|
-
<attribute name="itemprop">
|
|
32
|
-
<ref name="common.data.microdata-properties"/>
|
|
33
|
-
</attribute>
|
|
34
|
-
</define>
|
|
35
|
-
<define name="common.attrs.microdata.itemscope">
|
|
36
|
-
<attribute name="itemscope">
|
|
37
|
-
<choice>
|
|
38
|
-
<value>itemscope</value>
|
|
39
|
-
<value/>
|
|
40
|
-
</choice>
|
|
41
|
-
</attribute>
|
|
42
|
-
</define>
|
|
43
|
-
<define name="common.attrs.microdata.itemtype">
|
|
44
|
-
<attribute name="itemtype">
|
|
45
|
-
<list>
|
|
46
|
-
<oneOrMore>
|
|
47
|
-
<ref name="common.data.uri.absolute"/>
|
|
48
|
-
</oneOrMore>
|
|
49
|
-
</list>
|
|
50
|
-
</attribute>
|
|
51
|
-
</define>
|
|
52
|
-
<define name="common.attrs.microdata.itemid">
|
|
53
|
-
<attribute name="itemid">
|
|
54
|
-
<ref name="common.data.uri"/>
|
|
55
|
-
</attribute>
|
|
56
|
-
</define>
|
|
57
|
-
<define name="common.attrs" combine="interleave">
|
|
58
|
-
<ref name="common.attrs.microdata"/>
|
|
59
|
-
</define>
|
|
60
|
-
<define name="a.attrs" combine="interleave">
|
|
61
|
-
<ref name="common.attrs.microdata"/>
|
|
62
|
-
</define>
|
|
63
|
-
<define name="area.attrs" combine="interleave">
|
|
64
|
-
<ref name="common.attrs.microdata"/>
|
|
65
|
-
</define>
|
|
66
|
-
<define name="base.attrs" combine="interleave">
|
|
67
|
-
<ref name="common.attrs.microdata"/>
|
|
68
|
-
</define>
|
|
69
|
-
<define name="link.elem.phrasing">
|
|
70
|
-
<a:documentation>URL-valued Property Metadata: <link itemprop></a:documentation>
|
|
71
|
-
<element name="link">
|
|
72
|
-
<interleave>
|
|
73
|
-
<ref name="link.inner"/>
|
|
74
|
-
<ref name="link.phrasing.attrs"/>
|
|
75
|
-
</interleave>
|
|
76
|
-
</element>
|
|
77
|
-
</define>
|
|
78
|
-
<define name="link.phrasing.attrs">
|
|
79
|
-
<interleave>
|
|
80
|
-
<ref name="common.attrs.basic"/>
|
|
81
|
-
<ref name="common.attrs.i18n"/>
|
|
82
|
-
<ref name="common.attrs.present"/>
|
|
83
|
-
<ref name="common.attrs.other"/>
|
|
84
|
-
<ref name="common.attrs.microdata.itemprop"/>
|
|
85
|
-
<optional>
|
|
86
|
-
<ref name="common.attrs.microdata.itemref"/>
|
|
87
|
-
</optional>
|
|
88
|
-
<optional>
|
|
89
|
-
<ref name="common.attrs.microdata.itemscope"/>
|
|
90
|
-
</optional>
|
|
91
|
-
<optional>
|
|
92
|
-
<ref name="common.attrs.microdata.itemtype"/>
|
|
93
|
-
</optional>
|
|
94
|
-
<optional>
|
|
95
|
-
<ref name="common.attrs.microdata.itemid"/>
|
|
96
|
-
</optional>
|
|
97
|
-
<ref name="shared-hyperlink.attrs.href"/>
|
|
98
|
-
<optional>
|
|
99
|
-
<ref name="shared-hyperlink.attrs.hreflang"/>
|
|
100
|
-
</optional>
|
|
101
|
-
<optional>
|
|
102
|
-
<ref name="shared-hyperlink.attrs.media"/>
|
|
103
|
-
</optional>
|
|
104
|
-
<optional>
|
|
105
|
-
<ref name="shared-hyperlink.attrs.type"/>
|
|
106
|
-
</optional>
|
|
107
|
-
<optional>
|
|
108
|
-
<ref name="link.attrs.sizes"/>
|
|
109
|
-
</optional>
|
|
110
|
-
<optional>
|
|
111
|
-
<!-- link.attrs.title included in common.attrs -->
|
|
112
|
-
<ref name="embedded.content.attrs.crossorigin"/>
|
|
113
|
-
</optional>
|
|
114
|
-
<optional>
|
|
115
|
-
<choice>
|
|
116
|
-
<ref name="common.attrs.aria.role.link"/>
|
|
117
|
-
<ref name="common.attrs.aria.role.presentation"/>
|
|
118
|
-
<ref name="common.attrs.aria.role.menuitem"/>
|
|
119
|
-
</choice>
|
|
120
|
-
</optional>
|
|
121
|
-
</interleave>
|
|
122
|
-
</define>
|
|
123
|
-
<define name="common.elem.phrasing" combine="choice">
|
|
124
|
-
<ref name="link.elem.phrasing"/>
|
|
125
|
-
</define>
|
|
126
|
-
<define name="link.attrs.rel" combine="choice">
|
|
127
|
-
<a:documentation><link> element in head, extensions</a:documentation>
|
|
128
|
-
<ref name="common.attrs.microdata.itemprop"/>
|
|
129
|
-
</define>
|
|
130
|
-
<define name="link.attrs" combine="interleave">
|
|
131
|
-
<optional>
|
|
132
|
-
<ref name="common.attrs.microdata.itemref"/>
|
|
133
|
-
</optional>
|
|
134
|
-
</define>
|
|
135
|
-
<define name="link.attrs" combine="interleave">
|
|
136
|
-
<optional>
|
|
137
|
-
<ref name="common.attrs.microdata.itemscope"/>
|
|
138
|
-
</optional>
|
|
139
|
-
</define>
|
|
140
|
-
<define name="link.attrs" combine="interleave">
|
|
141
|
-
<optional>
|
|
142
|
-
<ref name="common.attrs.microdata.itemtype"/>
|
|
143
|
-
</optional>
|
|
144
|
-
</define>
|
|
145
|
-
<define name="link.attrs" combine="interleave">
|
|
146
|
-
<optional>
|
|
147
|
-
<ref name="common.attrs.microdata.itemid"/>
|
|
148
|
-
</optional>
|
|
149
|
-
</define>
|
|
150
|
-
<define name="meta.itemprop.elem">
|
|
151
|
-
<a:documentation>Property Metadata: <meta itemprop></a:documentation>
|
|
152
|
-
<element name="meta">
|
|
153
|
-
<interleave>
|
|
154
|
-
<ref name="meta.inner"/>
|
|
155
|
-
<ref name="meta.itemprop.attrs"/>
|
|
156
|
-
</interleave>
|
|
157
|
-
</element>
|
|
158
|
-
</define>
|
|
159
|
-
<define name="meta.itemprop.attrs">
|
|
160
|
-
<interleave>
|
|
161
|
-
<ref name="common.attrs.basic"/>
|
|
162
|
-
<ref name="common.attrs.i18n"/>
|
|
163
|
-
<ref name="common.attrs.present"/>
|
|
164
|
-
<ref name="common.attrs.other"/>
|
|
165
|
-
<ref name="common.attrs.microdata.itemprop"/>
|
|
166
|
-
<optional>
|
|
167
|
-
<ref name="common.attrs.microdata.itemref"/>
|
|
168
|
-
</optional>
|
|
169
|
-
<optional>
|
|
170
|
-
<ref name="common.attrs.microdata.itemscope"/>
|
|
171
|
-
</optional>
|
|
172
|
-
<optional>
|
|
173
|
-
<ref name="common.attrs.microdata.itemtype"/>
|
|
174
|
-
</optional>
|
|
175
|
-
<optional>
|
|
176
|
-
<ref name="common.attrs.microdata.itemid"/>
|
|
177
|
-
</optional>
|
|
178
|
-
<ref name="meta.itemprop.attrs.content"/>
|
|
179
|
-
</interleave>
|
|
180
|
-
</define>
|
|
181
|
-
<define name="meta.itemprop.attrs.content">
|
|
182
|
-
<attribute name="content">
|
|
183
|
-
<data type="string"/>
|
|
184
|
-
</attribute>
|
|
185
|
-
</define>
|
|
186
|
-
<define name="common.elem.metadata" combine="choice">
|
|
187
|
-
<ref name="meta.itemprop.elem"/>
|
|
188
|
-
</define>
|
|
189
|
-
<define name="common.elem.phrasing" combine="choice">
|
|
190
|
-
<ref name="meta.itemprop.elem"/>
|
|
191
|
-
</define>
|
|
192
|
-
</grammar>
|
package/schemas/ncx.rng
DELETED
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
|
|
3
|
-
ns="http://www.daisy.org/z3986/2005/ncx/"
|
|
4
|
-
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
5
|
-
|
|
6
|
-
<!--
|
|
7
|
-
Revision history:
|
|
8
|
-
20080107: mgylling: defined i18n attr group, referenced this from
|
|
9
|
-
elements ncx, docTitle, docAuthor, navLabel, navInfo
|
|
10
|
-
20080523: mgylling: navList @class and @id made individually optional
|
|
11
|
-
20131030: tfischer: change all @id attributes to correct <data type="ID"/> instead of <text/>
|
|
12
|
-
|
|
13
|
-
-->
|
|
14
|
-
|
|
15
|
-
<start>
|
|
16
|
-
<element name="ncx">
|
|
17
|
-
<attribute name="version">
|
|
18
|
-
<value>2005-1</value>
|
|
19
|
-
</attribute>
|
|
20
|
-
<ref name="i18n"/>
|
|
21
|
-
<element name="head">
|
|
22
|
-
<oneOrMore>
|
|
23
|
-
<ref name="meta"/>
|
|
24
|
-
</oneOrMore>
|
|
25
|
-
</element>
|
|
26
|
-
<element name="docTitle">
|
|
27
|
-
<optional>
|
|
28
|
-
<attribute name="id">
|
|
29
|
-
<!-- checks lexical constraints only -->
|
|
30
|
-
<!-- uniqueness check is done in saxhandler, as the NCX schematron impl uses 1.5, which does not have value-of in reports -->
|
|
31
|
-
<data type="ID"/>
|
|
32
|
-
</attribute>
|
|
33
|
-
</optional>
|
|
34
|
-
<ref name="text"/>
|
|
35
|
-
<optional>
|
|
36
|
-
<ref name="img"/>
|
|
37
|
-
</optional>
|
|
38
|
-
<ref name="i18n"/>
|
|
39
|
-
</element>
|
|
40
|
-
<zeroOrMore>
|
|
41
|
-
<element name="docAuthor">
|
|
42
|
-
<optional>
|
|
43
|
-
<attribute name="id">
|
|
44
|
-
<data type="ID"/>
|
|
45
|
-
</attribute>
|
|
46
|
-
</optional>
|
|
47
|
-
<ref name="text"/>
|
|
48
|
-
<optional>
|
|
49
|
-
<ref name="img"/>
|
|
50
|
-
</optional>
|
|
51
|
-
<ref name="i18n"/>
|
|
52
|
-
</element>
|
|
53
|
-
</zeroOrMore>
|
|
54
|
-
<element name="navMap">
|
|
55
|
-
<optional>
|
|
56
|
-
<attribute name="id">
|
|
57
|
-
<data type="ID"/>
|
|
58
|
-
</attribute>
|
|
59
|
-
</optional>
|
|
60
|
-
<zeroOrMore>
|
|
61
|
-
<ref name="navInfo"/>
|
|
62
|
-
</zeroOrMore>
|
|
63
|
-
<zeroOrMore>
|
|
64
|
-
<ref name="navLabel"/>
|
|
65
|
-
</zeroOrMore>
|
|
66
|
-
<oneOrMore>
|
|
67
|
-
<ref name="navPoint"/>
|
|
68
|
-
</oneOrMore>
|
|
69
|
-
</element>
|
|
70
|
-
<optional>
|
|
71
|
-
<ref name="pageList"/>
|
|
72
|
-
</optional>
|
|
73
|
-
<zeroOrMore>
|
|
74
|
-
<ref name="navList"/>
|
|
75
|
-
</zeroOrMore>
|
|
76
|
-
</element>
|
|
77
|
-
</start>
|
|
78
|
-
|
|
79
|
-
<define name="text">
|
|
80
|
-
<element name="text">
|
|
81
|
-
<optional>
|
|
82
|
-
<attribute name="id">
|
|
83
|
-
<data type="ID"/>
|
|
84
|
-
</attribute>
|
|
85
|
-
<attribute name="class">
|
|
86
|
-
<text/>
|
|
87
|
-
</attribute>
|
|
88
|
-
</optional>
|
|
89
|
-
<text/>
|
|
90
|
-
</element>
|
|
91
|
-
</define>
|
|
92
|
-
|
|
93
|
-
<define name="img">
|
|
94
|
-
<element name="img">
|
|
95
|
-
<optional>
|
|
96
|
-
<attribute name="id">
|
|
97
|
-
<data type="ID"/>
|
|
98
|
-
</attribute>
|
|
99
|
-
<attribute name="class">
|
|
100
|
-
<text/>
|
|
101
|
-
</attribute>
|
|
102
|
-
</optional>
|
|
103
|
-
<attribute name="src">
|
|
104
|
-
<text/>
|
|
105
|
-
</attribute>
|
|
106
|
-
</element>
|
|
107
|
-
</define>
|
|
108
|
-
|
|
109
|
-
<define name="content">
|
|
110
|
-
<element name="content">
|
|
111
|
-
<optional>
|
|
112
|
-
<attribute name="id">
|
|
113
|
-
<data type="ID"/>
|
|
114
|
-
</attribute>
|
|
115
|
-
</optional>
|
|
116
|
-
<attribute name="src">
|
|
117
|
-
<text/>
|
|
118
|
-
</attribute>
|
|
119
|
-
</element>
|
|
120
|
-
</define>
|
|
121
|
-
|
|
122
|
-
<define name="navInfo">
|
|
123
|
-
<element name="navInfo">
|
|
124
|
-
<ref name="text"/>
|
|
125
|
-
<optional>
|
|
126
|
-
<ref name="img"/>
|
|
127
|
-
</optional>
|
|
128
|
-
<ref name="i18n"/>
|
|
129
|
-
</element>
|
|
130
|
-
</define>
|
|
131
|
-
|
|
132
|
-
<define name="navLabel">
|
|
133
|
-
<element name="navLabel">
|
|
134
|
-
<ref name="text"/>
|
|
135
|
-
<optional>
|
|
136
|
-
<ref name="img"/>
|
|
137
|
-
</optional>
|
|
138
|
-
<ref name="i18n"/>
|
|
139
|
-
</element>
|
|
140
|
-
</define>
|
|
141
|
-
|
|
142
|
-
<define name="navPoint">
|
|
143
|
-
<element name="navPoint">
|
|
144
|
-
<attribute name="id">
|
|
145
|
-
<data type="ID"/>
|
|
146
|
-
</attribute>
|
|
147
|
-
<optional>
|
|
148
|
-
<attribute name="class">
|
|
149
|
-
<text/>
|
|
150
|
-
</attribute>
|
|
151
|
-
</optional>
|
|
152
|
-
<optional>
|
|
153
|
-
<attribute name="playOrder">
|
|
154
|
-
<text/>
|
|
155
|
-
</attribute>
|
|
156
|
-
</optional>
|
|
157
|
-
<oneOrMore>
|
|
158
|
-
<ref name="navLabel"/>
|
|
159
|
-
</oneOrMore>
|
|
160
|
-
<ref name="content"/>
|
|
161
|
-
<zeroOrMore>
|
|
162
|
-
<ref name="navPoint"/>
|
|
163
|
-
</zeroOrMore>
|
|
164
|
-
</element>
|
|
165
|
-
</define>
|
|
166
|
-
|
|
167
|
-
<define name="pageList">
|
|
168
|
-
<element name="pageList">
|
|
169
|
-
<optional>
|
|
170
|
-
<attribute name="id">
|
|
171
|
-
<data type="ID"/>
|
|
172
|
-
</attribute>
|
|
173
|
-
<attribute name="class">
|
|
174
|
-
<text/>
|
|
175
|
-
</attribute>
|
|
176
|
-
</optional>
|
|
177
|
-
<optional>
|
|
178
|
-
<ref name="navLabel"/>
|
|
179
|
-
</optional>
|
|
180
|
-
<optional>
|
|
181
|
-
<ref name="navInfo"/>
|
|
182
|
-
</optional>
|
|
183
|
-
<oneOrMore>
|
|
184
|
-
<ref name="pageTarget"/>
|
|
185
|
-
</oneOrMore>
|
|
186
|
-
</element>
|
|
187
|
-
</define>
|
|
188
|
-
|
|
189
|
-
<define name="navList">
|
|
190
|
-
<element name="navList">
|
|
191
|
-
<optional>
|
|
192
|
-
<attribute name="id">
|
|
193
|
-
<data type="ID"/>
|
|
194
|
-
</attribute>
|
|
195
|
-
</optional>
|
|
196
|
-
<optional>
|
|
197
|
-
<attribute name="class">
|
|
198
|
-
<text/>
|
|
199
|
-
</attribute>
|
|
200
|
-
</optional>
|
|
201
|
-
<zeroOrMore>
|
|
202
|
-
<ref name="navInfo"/>
|
|
203
|
-
</zeroOrMore>
|
|
204
|
-
<oneOrMore>
|
|
205
|
-
<ref name="navLabel"/>
|
|
206
|
-
</oneOrMore>
|
|
207
|
-
<oneOrMore>
|
|
208
|
-
<ref name="navTarget"/>
|
|
209
|
-
</oneOrMore>
|
|
210
|
-
</element>
|
|
211
|
-
</define>
|
|
212
|
-
|
|
213
|
-
<define name="pageTarget">
|
|
214
|
-
<element name="pageTarget">
|
|
215
|
-
<optional>
|
|
216
|
-
<attribute name="id">
|
|
217
|
-
<data type="ID"/>
|
|
218
|
-
</attribute>
|
|
219
|
-
</optional>
|
|
220
|
-
<optional>
|
|
221
|
-
<attribute name="value">
|
|
222
|
-
<text/>
|
|
223
|
-
</attribute>
|
|
224
|
-
</optional>
|
|
225
|
-
<attribute name="type">
|
|
226
|
-
<choice>
|
|
227
|
-
<value>front</value>
|
|
228
|
-
<value>normal</value>
|
|
229
|
-
<value>special</value>
|
|
230
|
-
</choice>
|
|
231
|
-
</attribute>
|
|
232
|
-
<optional>
|
|
233
|
-
<attribute name="class">
|
|
234
|
-
<text/>
|
|
235
|
-
</attribute>
|
|
236
|
-
</optional>
|
|
237
|
-
<optional>
|
|
238
|
-
<attribute name="playOrder">
|
|
239
|
-
<text/>
|
|
240
|
-
</attribute>
|
|
241
|
-
</optional>
|
|
242
|
-
<oneOrMore>
|
|
243
|
-
<ref name="navLabel"/>
|
|
244
|
-
</oneOrMore>
|
|
245
|
-
<ref name="content"/>
|
|
246
|
-
</element>
|
|
247
|
-
</define>
|
|
248
|
-
|
|
249
|
-
<define name="navTarget">
|
|
250
|
-
<element name="navTarget">
|
|
251
|
-
<attribute name="id">
|
|
252
|
-
<data type="ID"/>
|
|
253
|
-
</attribute>
|
|
254
|
-
<optional>
|
|
255
|
-
<attribute name="class">
|
|
256
|
-
<text/>
|
|
257
|
-
</attribute>
|
|
258
|
-
</optional>
|
|
259
|
-
<optional>
|
|
260
|
-
<attribute name="value">
|
|
261
|
-
<text/>
|
|
262
|
-
</attribute>
|
|
263
|
-
</optional>
|
|
264
|
-
<optional>
|
|
265
|
-
<attribute name="playOrder">
|
|
266
|
-
<text/>
|
|
267
|
-
</attribute>
|
|
268
|
-
</optional>
|
|
269
|
-
<oneOrMore>
|
|
270
|
-
<ref name="navLabel"/>
|
|
271
|
-
</oneOrMore>
|
|
272
|
-
<ref name="content"/>
|
|
273
|
-
</element>
|
|
274
|
-
</define>
|
|
275
|
-
|
|
276
|
-
<define name="meta">
|
|
277
|
-
<element name="meta">
|
|
278
|
-
<attribute name="name">
|
|
279
|
-
<text/>
|
|
280
|
-
</attribute>
|
|
281
|
-
<attribute name="content">
|
|
282
|
-
<text/>
|
|
283
|
-
</attribute>
|
|
284
|
-
<optional>
|
|
285
|
-
<attribute name="scheme">
|
|
286
|
-
<text/>
|
|
287
|
-
</attribute>
|
|
288
|
-
</optional>
|
|
289
|
-
</element>
|
|
290
|
-
</define>
|
|
291
|
-
|
|
292
|
-
<define name="i18n">
|
|
293
|
-
<optional>
|
|
294
|
-
<attribute name="lang" ns="http://www.w3.org/XML/1998/namespace">
|
|
295
|
-
<data type="language"/>
|
|
296
|
-
</attribute>
|
|
297
|
-
</optional>
|
|
298
|
-
<optional>
|
|
299
|
-
<attribute name="dir">
|
|
300
|
-
<choice>
|
|
301
|
-
<value>ltr</value>
|
|
302
|
-
<value>rtl</value>
|
|
303
|
-
</choice>
|
|
304
|
-
</attribute>
|
|
305
|
-
</optional>
|
|
306
|
-
</define>
|
|
307
|
-
|
|
308
|
-
</grammar>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
default namespace = "urn:oasis:names:tc:opendocument:xmlns:container"
|
|
2
|
-
include "./mod/datatypes.rnc"
|
|
3
|
-
include "./multiple-renditions/container.rnc"
|
|
4
|
-
|
|
5
|
-
start = ocf.container
|
|
6
|
-
|
|
7
|
-
ocf.container =
|
|
8
|
-
element container { ocf.container.attlist & ocf.container.content }
|
|
9
|
-
ocf.container.attlist =
|
|
10
|
-
attribute version { '1.0' }
|
|
11
|
-
ocf.container.content = ocf.rootfiles, ocf.links?
|
|
12
|
-
|
|
13
|
-
ocf.rootfiles =
|
|
14
|
-
element rootfiles { ocf.rootfiles.attlist & ocf.rootfiles.content }
|
|
15
|
-
ocf.rootfiles.attlist = empty
|
|
16
|
-
ocf.rootfiles.content = ocf.rootfile+
|
|
17
|
-
|
|
18
|
-
ocf.rootfile =
|
|
19
|
-
element rootfile {ocf.rootfile.attlist & ocf.rootfile.content }
|
|
20
|
-
ocf.rootfile.attlist =
|
|
21
|
-
attribute full-path { datatype.URI } &
|
|
22
|
-
attribute media-type { 'application/oebps-package+xml' }
|
|
23
|
-
ocf.rootfile.content = empty
|
|
24
|
-
|
|
25
|
-
ocf.links =
|
|
26
|
-
element links { ocf.links.attlist & ocf.links.content }
|
|
27
|
-
ocf.links.attlist = empty
|
|
28
|
-
ocf.links.content = ocf.link+
|
|
29
|
-
|
|
30
|
-
ocf.link =
|
|
31
|
-
element link { ocf.link.attlist & ocf.link.content }
|
|
32
|
-
ocf.link.attlist =
|
|
33
|
-
attribute href { datatype.URI } &
|
|
34
|
-
attribute rel { datatype.space.separated.tokens } &
|
|
35
|
-
attribute media-type { datatype.mimetype }?
|
|
36
|
-
ocf.link.content = empty
|
|
37
|
-
|