1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
|
<!--
Document Type Definition for the Open eBook package version 1.0.1
Version: 1.0.1
Revision: 20010201-x
Authors: Steve DeRose <steven_derose@brown.edu>
Gunter Hille <hille@abc.de>
Ben Trafford <bent@exemplary.net>
Garret Wilson <garret@globalmentor.com>
Usage:
<?xml version="1.0"?>
<!DOCTYPE package
PUBLIC "+//ISBN 0-9673008-1-9//DTD OEB 1.0.1 Package//EN"
"http://openebook.org/dtds/oeb-1.0.1/oebpkg101.dtd">
<package unique-identifier="foo">
metadata
manifest
spine
tours
guide
</package>
References:
Transitional XHTML 1.0 DTD at http://www.w3.org/TR/xhtml1/DTD/transitional.dtd
-->
<!-- ******** Character Mnemonic Entities ******** -->
<!-- OEB supports all XHTML mnemonics, but uses only one entity file. -->
<!ENTITY % OEBEntities PUBLIC "+//ISBN 0-9673008-1-9//DTD OEB 1.0 Entities//EN" "oeb1.ent">
%OEBEntities;
<!-- ******** Attribute Types ******** -->
<!-- LanguageCode: An RFC1766 language code. -->
<!ENTITY % LanguageCode "NMTOKEN">
<!-- URI: An RFC2396 Uniform Resource Identifier. -->
<!ENTITY % URI "CDATA">
<!-- ******** Common Attributes ******** -->
<!-- InternationalAttributes: Attributes for internationalization.
xml:lang: XML language code.
-->
<!ENTITY % InternationalAttributes
"xml:lang %LanguageCode; #IMPLIED"
>
<!-- CoreAttributes: Most common attributes used by many elements.
id: ID unique to the entire document.
-->
<!ENTITY % CoreAttributes "id ID #IMPLIED">
<!-- CommonAttributes: Common attributes used by many elements.
CoreAttributes: Most common attributes.
InternationalAttributes: Internationalization attributes.
-->
<!ENTITY % CommonAttributes
"%CoreAttributes;
%InternationalAttributes;"
>
<!-- DCNamespaceAttribute: Attribute that declare the Dublin Core
namespace. Used mostly on each <dc:XXX> element to accomodate XML
parsers which require this unnecessarily. -->
<!ENTITY % DCNamespaceAttribute
"xmlns:dc %URI; #FIXED 'http://purl.org/dc/elements/1.0/'"
>
<!-- ******** OEB Package Elements ******** -->
<!-- A package must have metadata, a manifest, and a spine,
and optionally may include a tours and/or a guide section. -->
<!ELEMENT package (metadata, manifest, spine, tours?, guide?)>
<!ATTLIST package
%CommonAttributes;
unique-identifier IDREF #REQUIRED
xmlns %URI; #FIXED "http://openebook.org/namespaces/oeb-package/1.0/"
>
<!-- The metadata section must have dc-metadata but may or may not
include x-metadata. -->
<!ELEMENT metadata (dc-metadata, x-metadata?)>
<!-- These elements are optional in <dc-metadata>. -->
<!ENTITY % DCMetadataOptionalElements
"dc:Contributor | dc:Creator | dc:Subject | dc:Description
| dc:Publisher | dc:Date | dc:Type | dc:Format | dc:Source
| dc:Language | dc:Relation | dc:Coverage | dc:Rights"
>
<!-- These are the optional and required elements of <dc-metadata>. -->
<!ENTITY % DCMetadataGeneralElements
"%DCMetadataOptionalElements; | dc:Title |dc:Identifier"
>
<!-- A dc-metadata section must have a dc:Title and a
dc:Identifier, and optionally other dc:XXX elements, all in any
order. -->
<!ELEMENT dc-metadata ((%DCMetadataOptionalElements;)*,
((dc:Title, (%DCMetadataOptionalElements; | dc:Title)*,
(dc:Identifier, (%DCMetadataGeneralElements;)*)) |
(dc:Identifier, (%DCMetadataOptionalElements; | dc:Identifier)*,
(dc:Title, (%DCMetadataGeneralElements;)*))))
>
<!ATTLIST dc-metadata
%CommonAttributes;
%DCNamespaceAttribute;
xmlns:oebpackage %URI; #FIXED "http://openebook.org/namespaces/oeb-package/1.0/"
>
<!-- A dc:Contributor element may optionally have a role and/or a file-as
attribute. -->
<!ELEMENT dc:Contributor (#PCDATA)>
<!ATTLIST dc:Contributor
%CommonAttributes;
%DCNamespaceAttribute;
role NMTOKEN #IMPLIED
file-as CDATA #IMPLIED
>
<!ELEMENT dc:Title (#PCDATA)>
<!ATTLIST dc:Title
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Creator (#PCDATA)>
<!ATTLIST dc:Creator
%CommonAttributes;
%DCNamespaceAttribute;
role NMTOKEN #IMPLIED
file-as CDATA #IMPLIED
>
<!ELEMENT dc:Subject (#PCDATA)>
<!ATTLIST dc:Subject
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Description (#PCDATA)>
<!ATTLIST dc:Description
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Publisher (#PCDATA)>
<!ATTLIST dc:Publisher
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Date (#PCDATA)>
<!ATTLIST dc:Date
%CommonAttributes;
%DCNamespaceAttribute;
event NMTOKEN #IMPLIED
>
<!ELEMENT dc:Type (#PCDATA)>
<!ATTLIST dc:Type
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Format (#PCDATA)>
<!ATTLIST dc:Format
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Identifier (#PCDATA)>
<!ATTLIST dc:Identifier
%CommonAttributes;
%DCNamespaceAttribute;
scheme NMTOKEN #IMPLIED
>
<!ELEMENT dc:Source (#PCDATA)>
<!ATTLIST dc:Source
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Language (#PCDATA)>
<!ATTLIST dc:Language
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Relation (#PCDATA)>
<!ATTLIST dc:Relation
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Coverage (#PCDATA)>
<!ATTLIST dc:Coverage
%CommonAttributes;
%DCNamespaceAttribute;
>
<!ELEMENT dc:Rights (#PCDATA)>
<!ATTLIST dc:Rights
%CommonAttributes;
%DCNamespaceAttribute;
>
<!-- The <x-metadata> element must have at least one <meta> element. -->
<!ELEMENT x-metadata (meta+)>
<!ATTLIST x-metadata %CommonAttributes;>
<!ELEMENT meta EMPTY>
<!ATTLIST meta
%CommonAttributes;
name NMTOKEN #REQUIRED
content CDATA #REQUIRED
scheme CDATA #IMPLIED
>
<!-- The manifest must contain one or more items. -->
<!ELEMENT manifest (item+)>
<!ATTLIST manifest %CommonAttributes;>
<!-- The CommonAttributes entity is not used here because in this case
the "id" attribute is required. -->
<!ELEMENT item EMPTY>
<!ATTLIST item
%InternationalAttributes;
id ID #REQUIRED
href CDATA #REQUIRED
media-type CDATA #REQUIRED
fallback IDREF #IMPLIED
>
<!-- The spine must contain one or more itemrefs. -->
<!ELEMENT spine (itemref+)>
<!ATTLIST spine %CommonAttributes;>
<!ELEMENT itemref EMPTY>
<!ATTLIST itemref
%CommonAttributes;
idref IDREF #REQUIRED
>
<!-- The tours element must have one or more tour elements. -->
<!ELEMENT tours (tour+)>
<!ATTLIST tours %CommonAttributes;>
<!-- Each tour of the set must contain at least one site. -->
<!ELEMENT tour (site+)>
<!ATTLIST tour
%CommonAttributes;
title CDATA #REQUIRED
>
<!-- Each site in a tour must have a title and an href. -->
<!ELEMENT site EMPTY>
<!ATTLIST site
%CommonAttributes;
title CDATA #REQUIRED
href CDATA #REQUIRED
>
<!-- The guide element must have one or more reference elements. -->
<!ELEMENT guide (reference+)>
<!ATTLIST guide %CommonAttributes;>
<!ELEMENT reference EMPTY>
<!ATTLIST reference
%CommonAttributes;
type NMTOKEN #REQUIRED
title CDATA #REQUIRED
href CDATA #REQUIRED
>
|