Tellico – collection manager for books, videos, music
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tellico.dtd 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <!--
  2. ================================================================
  3. Tellico XML DTD version 10.0
  4. Copyright (c) 2006 Robby Stephenson
  5. This DTD describes the XML data files for the
  6. Tellico application, which can be found at:
  7. http://www.periapsis.org/tellico/
  8. The formal public identifer for this DTD should be:
  9. "-//Robby Stephenson/DTD Tellico V10.0//EN"
  10. ================================================================
  11. -->
  12. <!ELEMENT tellico (collection+, borrowers?, filters?)>
  13. <!ATTLIST tellico syntaxVersion CDATA #FIXED "10">
  14. <!ATTLIST tellico xmlns CDATA #FIXED "http://periapsis.org/tellico/">
  15. <!ELEMENT collection (fields | bibtex-preamble | macros | entry |
  16. images | borrowers | filters)+>
  17. <!ATTLIST collection title CDATA #REQUIRED>
  18. <!ATTLIST collection type (1|2|3|4|5|6|7|8|9|10|11|12|13) #REQUIRED>
  19. <!ATTLIST collection entryTitle CDATA #IMPLIED>
  20. <!ELEMENT images (image+)>
  21. <!ELEMENT image (#PCDATA)>
  22. <!ATTLIST image id CDATA #REQUIRED>
  23. <!ATTLIST image format CDATA #REQUIRED>
  24. <!ATTLIST image width CDATA #REQUIRED>
  25. <!ATTLIST image height CDATA #REQUIRED>
  26. <!ELEMENT fields (field+)>
  27. <!ELEMENT field (prop*)>
  28. <!ATTLIST field i18n (true|false) "true">
  29. <!ATTLIST field name CDATA #REQUIRED>
  30. <!ATTLIST field title CDATA #REQUIRED>
  31. <!ATTLIST field category CDATA #REQUIRED>
  32. <!ATTLIST field allowed CDATA #IMPLIED>
  33. <!ATTLIST field flags CDATA #IMPLIED>
  34. <!ATTLIST field format CDATA #IMPLIED>
  35. <!ATTLIST field description CDATA #IMPLIED>
  36. <!ATTLIST field type (1|2|3|4|5|6|7|8|9|10|11|12|14) #REQUIRED>
  37. <!ELEMENT prop (#PCDATA)>
  38. <!ATTLIST prop name CDATA #REQUIRED>
  39. <!-- bibliography, or bibtex, collections may have a preamble and macros -->
  40. <!ELEMENT bibtex-preamble (#PCDATA)>
  41. <!ELEMENT macros (macro+)>
  42. <!ELEMENT macro (#PCDATA)>
  43. <!ATTLIST macro name CDATA #REQUIRED>
  44. <!-- general -->
  45. <!-- columns are used in 2-column tables to split the values -->
  46. <!ELEMENT column (#PCDATA)>
  47. <!-- year, month, day are used in dates -->
  48. <!ELEMENT year (#PCDATA)>
  49. <!ELEMENT month (#PCDATA)>
  50. <!ELEMENT day (#PCDATA)>
  51. <!-- borrowing -->
  52. <!ELEMENT borrowers (borrower+)>
  53. <!ELEMENT borrower (loan)>
  54. <!ELEMENT loan (#PCDATA)>
  55. <!ATTLIST loan dueDate CDATA #IMPLIED>
  56. <!ATTLIST loan loanDate CDATA #REQUIRED>
  57. <!ATTLIST loan entryRef CDATA #REQUIRED>
  58. <!ATTLIST loan uid CDATA #REQUIRED>
  59. <!-- filters -->
  60. <!ELEMENT filters (filter+)>
  61. <!ELEMENT filter (rule)>
  62. <!ATTLIST filter name CDATA #REQUIRED>
  63. <!ATTLIST filter match CDATA #REQUIRED>
  64. <!ELEMENT rule (#PCDATA)>
  65. <!ATTLIST rule field CDATA #REQUIRED>
  66. <!ATTLIST rule function CDATA #REQUIRED>
  67. <!ATTLIST rule pattern CDATA #REQUIRED>
  68. <!ELEMENT entry (title | subtitle | authors | binding | pur_date |
  69. pur_price | publisher | edition | cr_years | pub_year | isbn | lccn |
  70. pages | languages | genres | keywords | series | series_num |
  71. condition | signed | read | gift | loaned | rating | comments |
  72. entry-type | bibtex-key | booktitle | editors | organization | year |
  73. journal | month | number | howpublished | chapter | volume | crossref
  74. | note | medium | artists | album | label | tracks | certification |
  75. region | nationalitys | format | casts | directors | producers |
  76. writers | composers | studios | subtitles | audio-tracks |
  77. running-time | aspect-ratios | widescreen | color | directors-cut |
  78. plot | player | team | brand | location | quantity | front | back |
  79. mintmark | set | grade | service | obverse | reverse | issue | cover |
  80. description | scott | cancelled | hinged | centering | gummed |
  81. producer | appellation | varietal | vintage | type | drink-by |
  82. platform | publishers | developers | completed |url |
  83. mimetype | size | permissions | owner | group | created | modified |
  84. metainfos | icon | amazon | imdb | imdb-rating | alttitle |
  85. allcertification | address | abstract | designer | bggid |
  86. mechanism | num-players )+>
  87. <!ATTLIST entry id CDATA #REQUIRED>
  88. <!ELEMENT title (#PCDATA)>
  89. <!ELEMENT subtitle (#PCDATA)>
  90. <!ELEMENT authors (author+)>
  91. <!ELEMENT author (#PCDATA)>
  92. <!ELEMENT binding (#PCDATA)>
  93. <!ELEMENT pur_date (#PCDATA)>
  94. <!ELEMENT pur_price (#PCDATA)>
  95. <!ELEMENT publisher (#PCDATA)>
  96. <!ELEMENT edition (#PCDATA)>
  97. <!ELEMENT cr_years (cr_year+)>
  98. <!ELEMENT cr_year (#PCDATA)>
  99. <!ELEMENT pub_year (#PCDATA)>
  100. <!ELEMENT isbn (#PCDATA)>
  101. <!ELEMENT lccn (#PCDATA)>
  102. <!ELEMENT pages (#PCDATA)>
  103. <!ELEMENT languages (language+)>
  104. <!ELEMENT language (#PCDATA)>
  105. <!ELEMENT genres (genre+)>
  106. <!ELEMENT genre (#PCDATA)>
  107. <!ELEMENT keywords (keyword+)>
  108. <!ELEMENT keyword (#PCDATA)>
  109. <!ELEMENT series (#PCDATA)>
  110. <!ELEMENT series_num (#PCDATA)>
  111. <!ELEMENT condition (#PCDATA)>
  112. <!ELEMENT signed (#PCDATA)>
  113. <!ELEMENT read (#PCDATA)>
  114. <!ELEMENT gift (#PCDATA)>
  115. <!ELEMENT rating (#PCDATA)>
  116. <!ELEMENT loaned (#PCDATA)>
  117. <!ELEMENT comments (#PCDATA)>
  118. <!-- bibtex -->
  119. <!ELEMENT entry-type (#PCDATA)>
  120. <!ELEMENT bibtex-key (#PCDATA)>
  121. <!ELEMENT booktitle (#PCDATA)>
  122. <!ELEMENT editors (editor+)>
  123. <!ELEMENT editor (#PCDATA)>
  124. <!ELEMENT organization (#PCDATA)>
  125. <!ELEMENT journal (#PCDATA)>
  126. <!ELEMENT number (#PCDATA)>
  127. <!ELEMENT howpublished (#PCDATA)>
  128. <!ELEMENT chapter (#PCDATA)>
  129. <!ELEMENT volume (#PCDATA)>
  130. <!ELEMENT crossref (#PCDATA)>
  131. <!ELEMENT note (#PCDATA)>
  132. <!ELEMENT address (#PCDATA)>
  133. <!ELEMENT abstract (#PCDATA)>
  134. <!-- music -->
  135. <!ELEMENT medium (#PCDATA)>
  136. <!ELEMENT artists (artist+)>
  137. <!ELEMENT artist (#PCDATA)>
  138. <!ELEMENT album (#PCDATA)>
  139. <!ELEMENT label (#PCDATA)>
  140. <!ELEMENT tracks (track+)>
  141. <!ELEMENT track (#PCDATA)>
  142. <!-- video -->
  143. <!ELEMENT certification (#PCDATA)>
  144. <!ELEMENT region (#PCDATA)>
  145. <!ELEMENT nationalitys (nationality+)>
  146. <!ELEMENT nationality (#PCDATA)>
  147. <!ELEMENT format (#PCDATA)>
  148. <!ELEMENT casts (cast+)>
  149. <!ELEMENT cast (column, column)>
  150. <!ELEMENT directors (director+)>
  151. <!ELEMENT director (#PCDATA)>
  152. <!ELEMENT producers (producer+)>
  153. <!ELEMENT producer (#PCDATA)>
  154. <!ELEMENT writers (writer+)>
  155. <!ELEMENT writer (#PCDATA)>
  156. <!ELEMENT composers (composer+)>
  157. <!ELEMENT composer (#PCDATA)>
  158. <!ELEMENT studios (studio+)>
  159. <!ELEMENT studio (#PCDATA)>
  160. <!ELEMENT subtitles (subtitle+)>
  161. <!-- subtitle element is defined above -->
  162. <!ELEMENT audio-tracks (audio-track+)>
  163. <!ELEMENT audio-track (#PCDATA)>
  164. <!ELEMENT running-time (#PCDATA)>
  165. <!ELEMENT aspect-ratios (aspect-ratio+)>
  166. <!ELEMENT aspect-ratio (#PCDATA)>
  167. <!ELEMENT widescreen (#PCDATA)>
  168. <!ELEMENT color (#PCDATA)>
  169. <!ELEMENT directors-cut (#PCDATA)>
  170. <!ELEMENT plot (#PCDATA)>
  171. <!-- cards -->
  172. <!ELEMENT player (#PCDATA)>
  173. <!ELEMENT team (#PCDATA)>
  174. <!ELEMENT brand (#PCDATA)>
  175. <!ELEMENT location (#PCDATA)>
  176. <!ELEMENT quantity (#PCDATA)>
  177. <!ELEMENT front (#PCDATA)>
  178. <!ELEMENT back (#PCDATA)>
  179. <!-- coins -->
  180. <!ELEMENT mintmark (#PCDATA)>
  181. <!ELEMENT set (#PCDATA)>
  182. <!ELEMENT grade (#PCDATA)>
  183. <!ELEMENT service (#PCDATA)>
  184. <!ELEMENT obverse (#PCDATA)>
  185. <!ELEMENT reverse (#PCDATA)>
  186. <!-- comic book -->
  187. <!ELEMENT issue (#PCDATA)>
  188. <!ELEMENT cover (#PCDATA)>
  189. <!-- stamps -->
  190. <!ELEMENT description (#PCDATA)>
  191. <!ELEMENT scott (#PCDATA)>
  192. <!ELEMENT cancelled (#PCDATA)>
  193. <!ELEMENT hinged (#PCDATA)>
  194. <!ELEMENT centering (#PCDATA)>
  195. <!ELEMENT gummed (#PCDATA)>
  196. <!-- wine -->
  197. <!ELEMENT appellation (#PCDATA)>
  198. <!ELEMENT varietal (#PCDATA)>
  199. <!ELEMENT vintage (#PCDATA)>
  200. <!ELEMENT type (#PCDATA)>
  201. <!ELEMENT drink-by (#PCDATA)>
  202. <!-- games -->
  203. <!ELEMENT platform (#PCDATA)>
  204. <!-- publisher is defined above -->
  205. <!ELEMENT publishers (publisher+)>
  206. <!ELEMENT developers (developer+)>
  207. <!ELEMENT developer (#PCDATA)>
  208. <!ELEMENT completed (#PCDATA)>
  209. <!-- file catalogs -->
  210. <!-- description is above -->
  211. <!ELEMENT url (#PCDATA)>
  212. <!ELEMENT mimetype (#PCDATA)>
  213. <!ELEMENT size (#PCDATA)>
  214. <!ELEMENT permissions (#PCDATA)>
  215. <!ELEMENT owner (#PCDATA)>
  216. <!ELEMENT group (#PCDATA)>
  217. <!ELEMENT created (#PCDATA)>
  218. <!ELEMENT modified (#PCDATA)>
  219. <!ELEMENT metainfos (metainfo+)>
  220. <!ELEMENT metainfo (#PCDATA)>
  221. <!ELEMENT icon (#PCDATA)>
  222. <!-- boardgames --?
  223. <!-- publisher is defined above -->
  224. <!-- publishers is defined above -->
  225. <!ELEMENT designers (designer+)>
  226. <!ELEMENT designer (#PCDATA)>
  227. <!ELEMENT mechanisms (mechanism+)>
  228. <!ELEMENT mechanism (#PCDATA)>
  229. <!ELEMENT bggid (#PCDATA)>
  230. <!ELEMENT num-players (num-player+)>
  231. <!ELEMENT num-player (#PCDATA)>
  232. <!-- special -->
  233. <!ELEMENT amazon (#PCDATA)>
  234. <!ELEMENT imdb (#PCDATA)>
  235. <!ELEMENT imdb-rating (#PCDATA)>
  236. <!ELEMENT alttitle (#PCDATA)>
  237. <!ELEMENT allcertification (#PCDATA)>