blob: 455669e3ebf63c46bad0866587e2c19ab8fb93ba (
plain)
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
|
<!--
================================================================
Tellico XML DTD version 10.0
Copyright (c) 2006 Robby Stephenson
This DTD describes the XML data files for the
Tellico application, which can be found at:
http://www.periapsis.org/tellico/
The formal public identifer for this DTD should be:
"-//Robby Stephenson/DTD Tellico V10.0//EN"
================================================================
-->
<!ELEMENT tellico (collection+, borrowers?, filters?)>
<!ATTLIST tellico syntaxVersion CDATA #FIXED "10">
<!ATTLIST tellico xmlns CDATA #FIXED "http://periapsis.org/tellico/">
<!ELEMENT collection (fields | bibtex-preamble | macros | entry |
images | borrowers | filters)+>
<!ATTLIST collection title CDATA #REQUIRED>
<!ATTLIST collection type (1|2|3|4|5|6|7|8|9|10|11|12|13) #REQUIRED>
<!ATTLIST collection entryTitle CDATA #IMPLIED>
<!ELEMENT images (image+)>
<!ELEMENT image (#PCDATA)>
<!ATTLIST image id CDATA #REQUIRED>
<!ATTLIST image format CDATA #REQUIRED>
<!ATTLIST image width CDATA #REQUIRED>
<!ATTLIST image height CDATA #REQUIRED>
<!ELEMENT fields (field+)>
<!ELEMENT field (prop*)>
<!ATTLIST field i18n (true|false) "true">
<!ATTLIST field name CDATA #REQUIRED>
<!ATTLIST field title CDATA #REQUIRED>
<!ATTLIST field category CDATA #REQUIRED>
<!ATTLIST field allowed CDATA #IMPLIED>
<!ATTLIST field flags CDATA #IMPLIED>
<!ATTLIST field format CDATA #IMPLIED>
<!ATTLIST field description CDATA #IMPLIED>
<!ATTLIST field type (1|2|3|4|5|6|7|8|9|10|11|12|14) #REQUIRED>
<!ELEMENT prop (#PCDATA)>
<!ATTLIST prop name CDATA #REQUIRED>
<!-- bibliography, or bibtex, collections may have a preamble and macros -->
<!ELEMENT bibtex-preamble (#PCDATA)>
<!ELEMENT macros (macro+)>
<!ELEMENT macro (#PCDATA)>
<!ATTLIST macro name CDATA #REQUIRED>
<!-- general -->
<!-- columns are used in 2-column tables to split the values -->
<!ELEMENT column (#PCDATA)>
<!-- year, month, day are used in dates -->
<!ELEMENT year (#PCDATA)>
<!ELEMENT month (#PCDATA)>
<!ELEMENT day (#PCDATA)>
<!-- borrowing -->
<!ELEMENT borrowers (borrower+)>
<!ELEMENT borrower (loan)>
<!ELEMENT loan (#PCDATA)>
<!ATTLIST loan dueDate CDATA #IMPLIED>
<!ATTLIST loan loanDate CDATA #REQUIRED>
<!ATTLIST loan entryRef CDATA #REQUIRED>
<!ATTLIST loan uid CDATA #REQUIRED>
<!-- filters -->
<!ELEMENT filters (filter+)>
<!ELEMENT filter (rule)>
<!ATTLIST filter name CDATA #REQUIRED>
<!ATTLIST filter match CDATA #REQUIRED>
<!ELEMENT rule (#PCDATA)>
<!ATTLIST rule field CDATA #REQUIRED>
<!ATTLIST rule function CDATA #REQUIRED>
<!ATTLIST rule pattern CDATA #REQUIRED>
<!ELEMENT entry (title | subtitle | authors | binding | pur_date |
pur_price | publisher | edition | cr_years | pub_year | isbn | lccn |
pages | languages | genres | keywords | series | series_num |
condition | signed | read | gift | loaned | rating | comments |
entry-type | bibtex-key | booktitle | editors | organization | year |
journal | month | number | howpublished | chapter | volume | crossref
| note | medium | artists | album | label | tracks | certification |
region | nationalitys | format | casts | directors | producers |
writers | composers | studios | subtitles | audio-tracks |
running-time | aspect-ratios | widescreen | color | directors-cut |
plot | player | team | brand | location | quantity | front | back |
mintmark | set | grade | service | obverse | reverse | issue | cover |
description | scott | cancelled | hinged | centering | gummed |
producer | appellation | varietal | vintage | type | drink-by |
platform | publishers | developers | completed |url |
mimetype | size | permissions | owner | group | created | modified |
metainfos | icon | amazon | imdb | imdb-rating | alttitle |
allcertification | address | abstract | designer | bggid |
mechanism | num-players )+>
<!ATTLIST entry id CDATA #REQUIRED>
<!ELEMENT title (#PCDATA)>
<!ELEMENT subtitle (#PCDATA)>
<!ELEMENT authors (author+)>
<!ELEMENT author (#PCDATA)>
<!ELEMENT binding (#PCDATA)>
<!ELEMENT pur_date (#PCDATA)>
<!ELEMENT pur_price (#PCDATA)>
<!ELEMENT publisher (#PCDATA)>
<!ELEMENT edition (#PCDATA)>
<!ELEMENT cr_years (cr_year+)>
<!ELEMENT cr_year (#PCDATA)>
<!ELEMENT pub_year (#PCDATA)>
<!ELEMENT isbn (#PCDATA)>
<!ELEMENT lccn (#PCDATA)>
<!ELEMENT pages (#PCDATA)>
<!ELEMENT languages (language+)>
<!ELEMENT language (#PCDATA)>
<!ELEMENT genres (genre+)>
<!ELEMENT genre (#PCDATA)>
<!ELEMENT keywords (keyword+)>
<!ELEMENT keyword (#PCDATA)>
<!ELEMENT series (#PCDATA)>
<!ELEMENT series_num (#PCDATA)>
<!ELEMENT condition (#PCDATA)>
<!ELEMENT signed (#PCDATA)>
<!ELEMENT read (#PCDATA)>
<!ELEMENT gift (#PCDATA)>
<!ELEMENT rating (#PCDATA)>
<!ELEMENT loaned (#PCDATA)>
<!ELEMENT comments (#PCDATA)>
<!-- bibtex -->
<!ELEMENT entry-type (#PCDATA)>
<!ELEMENT bibtex-key (#PCDATA)>
<!ELEMENT booktitle (#PCDATA)>
<!ELEMENT editors (editor+)>
<!ELEMENT editor (#PCDATA)>
<!ELEMENT organization (#PCDATA)>
<!ELEMENT journal (#PCDATA)>
<!ELEMENT number (#PCDATA)>
<!ELEMENT howpublished (#PCDATA)>
<!ELEMENT chapter (#PCDATA)>
<!ELEMENT volume (#PCDATA)>
<!ELEMENT crossref (#PCDATA)>
<!ELEMENT note (#PCDATA)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT abstract (#PCDATA)>
<!-- music -->
<!ELEMENT medium (#PCDATA)>
<!ELEMENT artists (artist+)>
<!ELEMENT artist (#PCDATA)>
<!ELEMENT album (#PCDATA)>
<!ELEMENT label (#PCDATA)>
<!ELEMENT tracks (track+)>
<!ELEMENT track (#PCDATA)>
<!-- video -->
<!ELEMENT certification (#PCDATA)>
<!ELEMENT region (#PCDATA)>
<!ELEMENT nationalitys (nationality+)>
<!ELEMENT nationality (#PCDATA)>
<!ELEMENT format (#PCDATA)>
<!ELEMENT casts (cast+)>
<!ELEMENT cast (column, column)>
<!ELEMENT directors (director+)>
<!ELEMENT director (#PCDATA)>
<!ELEMENT producers (producer+)>
<!ELEMENT producer (#PCDATA)>
<!ELEMENT writers (writer+)>
<!ELEMENT writer (#PCDATA)>
<!ELEMENT composers (composer+)>
<!ELEMENT composer (#PCDATA)>
<!ELEMENT studios (studio+)>
<!ELEMENT studio (#PCDATA)>
<!ELEMENT subtitles (subtitle+)>
<!-- subtitle element is defined above -->
<!ELEMENT audio-tracks (audio-track+)>
<!ELEMENT audio-track (#PCDATA)>
<!ELEMENT running-time (#PCDATA)>
<!ELEMENT aspect-ratios (aspect-ratio+)>
<!ELEMENT aspect-ratio (#PCDATA)>
<!ELEMENT widescreen (#PCDATA)>
<!ELEMENT color (#PCDATA)>
<!ELEMENT directors-cut (#PCDATA)>
<!ELEMENT plot (#PCDATA)>
<!-- cards -->
<!ELEMENT player (#PCDATA)>
<!ELEMENT team (#PCDATA)>
<!ELEMENT brand (#PCDATA)>
<!ELEMENT location (#PCDATA)>
<!ELEMENT quantity (#PCDATA)>
<!ELEMENT front (#PCDATA)>
<!ELEMENT back (#PCDATA)>
<!-- coins -->
<!ELEMENT mintmark (#PCDATA)>
<!ELEMENT set (#PCDATA)>
<!ELEMENT grade (#PCDATA)>
<!ELEMENT service (#PCDATA)>
<!ELEMENT obverse (#PCDATA)>
<!ELEMENT reverse (#PCDATA)>
<!-- comic book -->
<!ELEMENT issue (#PCDATA)>
<!ELEMENT cover (#PCDATA)>
<!-- stamps -->
<!ELEMENT description (#PCDATA)>
<!ELEMENT scott (#PCDATA)>
<!ELEMENT cancelled (#PCDATA)>
<!ELEMENT hinged (#PCDATA)>
<!ELEMENT centering (#PCDATA)>
<!ELEMENT gummed (#PCDATA)>
<!-- wine -->
<!ELEMENT appellation (#PCDATA)>
<!ELEMENT varietal (#PCDATA)>
<!ELEMENT vintage (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT drink-by (#PCDATA)>
<!-- games -->
<!ELEMENT platform (#PCDATA)>
<!-- publisher is defined above -->
<!ELEMENT publishers (publisher+)>
<!ELEMENT developers (developer+)>
<!ELEMENT developer (#PCDATA)>
<!ELEMENT completed (#PCDATA)>
<!-- file catalogs -->
<!-- description is above -->
<!ELEMENT url (#PCDATA)>
<!ELEMENT mimetype (#PCDATA)>
<!ELEMENT size (#PCDATA)>
<!ELEMENT permissions (#PCDATA)>
<!ELEMENT owner (#PCDATA)>
<!ELEMENT group (#PCDATA)>
<!ELEMENT created (#PCDATA)>
<!ELEMENT modified (#PCDATA)>
<!ELEMENT metainfos (metainfo+)>
<!ELEMENT metainfo (#PCDATA)>
<!ELEMENT icon (#PCDATA)>
<!-- boardgames --?
<!-- publisher is defined above -->
<!-- publishers is defined above -->
<!ELEMENT designers (designer+)>
<!ELEMENT designer (#PCDATA)>
<!ELEMENT mechanisms (mechanism+)>
<!ELEMENT mechanism (#PCDATA)>
<!ELEMENT bggid (#PCDATA)>
<!ELEMENT num-players (num-player+)>
<!ELEMENT num-player (#PCDATA)>
<!-- special -->
<!ELEMENT amazon (#PCDATA)>
<!ELEMENT imdb (#PCDATA)>
<!ELEMENT imdb-rating (#PCDATA)>
<!ELEMENT alttitle (#PCDATA)>
<!ELEMENT allcertification (#PCDATA)>
|