]> Lady’s Gitweb - Fortune/blob - DTD
Initial setup with quotes from CompuReticence
[Fortune] / DTD
1 <?xml encoding="UTF-8"?>
2 <!--
3 SPDX-FileCopyrightText: 2024 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: CC0-1.0
5 -->
6
7 <!--
8 This D·T·D does not aim to be forwards‐compatible but rather to just record the current state of encoded materials.
9 It is consequently quite limited.
10 Users of this corpus should check for additions and changes to this D·T·D when pulling in more recent versions, to ensure that all resulting elements are handled properly.
11 -->
12
13 <!--
14 The following are “ordinary” phrase‐level elements usable inside of paragraphs.
15 -->
16 <!ELEMENT seg (#PCDATA|soCalled|pc)*>
17 <!ATTLIST seg
18 type (callout) #IMPLIED
19 >
20 <!ELEMENT soCalled (#PCDATA)>
21 <!ELEMENT pc (#PCDATA)>
22 <!ATTLIST pc
23 unit (paragraph|phrase|sentence) #REQUIRED
24 >
25
26 <!--
27 The following encode links.
28 -->
29 <!ELEMENT ptr EMPTY>
30 <!ATTLIST ptr
31 target CDATA #REQUIRED
32 mimeType CDATA #IMPLIED
33 >
34
35 <!--
36 The following encode names and name components.
37 -->
38 <!ELEMENT forename (#PCDATA)>
39 <!ELEMENT surname (#PCDATA)>
40 <!ELEMENT persName (forename|surname)+>
41
42 <!--
43 The following encode titles.
44 Altho it is not formally expressible, it is expected that top‐level `<title>´s have a `@level´, and nested `<title>´s have a `@type´.
45
46 Titles have element content, meaning that character data needs to be wrapped in a `<seg>` or similar.
47 -->
48 <!ELEMENT title (seg|soCalled|title+)>
49 <!ATTLIST title
50 level (a|j|m|s|u) #IMPLIED
51 type (main|sub) #IMPLIED
52 >
53
54 <!--
55 The following encode bibliographic identifiers.
56 -->
57 <!ELEMENT idno (#PCDATA)>
58 <!ATTLIST idno
59 type (DOI|ISBN) #REQUIRED
60 >
61
62 <!--
63 The following encode dates.
64 -->
65 <!ELEMENT date EMPTY>
66 <!ATTLIST date
67 when CDATA #REQUIRED
68 >
69
70 <!--
71 The following encode contributor information for bibliographies.
72 -->
73 <!ELEMENT author (persName)>
74 <!ATTLIST author
75 ref CDATA #IMPLIED
76 >
77 <!ELEMENT editor (persName)>
78 <!ATTLIST editor
79 ref CDATA #IMPLIED
80 >
81
82 <!--
83 The following encode publication information for bibliographies.
84 -->
85 <!ELEMENT pubPlace (#PCDATA)>
86 <!ELEMENT publisher (#PCDATA)>
87 <!ELEMENT imprint (pubPlace?,publisher?,date?)>
88
89 <!--
90 The following encode bibliographic scopes and ranges.
91
92 For single pages, `@from´ and `@to´ should be equal.
93 -->
94 <!ELEMENT biblScope EMPTY>
95 <!ATTLIST biblScope
96 unit (chapter|issue|page|volume) #REQUIRED
97 from CDATA #REQUIRED
98 to CDATA #REQUIRED
99 >
100 <!ELEMENT citedRange EMPTY>
101 <!ATTLIST citedRange
102 unit (chapter|issue|page|volume) #REQUIRED
103 from CDATA #REQUIRED
104 to CDATA #REQUIRED
105 >
106
107 <!--
108 The following are paragraph‐level elements.
109 -->
110 <!ELEMENT p (#PCDATA|pc|ptr|seg)*>
111
112 <!--
113 The following encapsulate paragraph information within bibliographies.
114 -->
115 <!ELEMENT availability (p)+>
116
117 <!--
118 The following provide structured bibliographic information.
119 -->
120 <!ELEMENT analytic (title,idno*,author*,editor*,availability?)>
121 <!ELEMENT monogr (title,idno*,author*,editor*,availability?,imprint,biblScope*)>
122 <!ELEMENT series (title,idno*,editor*,availability?,biblScope*)>
123
124 <!--
125 The following provide unstructured bibliographic information.
126 -->
127 <!ELEMENT bibl (citedRange)>
128
129 <!--
130 The following are acceptable top‐level elements.
131
132 All of these require an `@xmlns´ which provides the T·E·I namespace, and an `@xml:lang´ providing the language of the content.
133 -->
134 <!ELEMENT biblStruct (analytic*,monogr*,series*)>
135 <!ATTLIST biblStruct
136 xmlns CDATA #FIXED 'http://www.tei-c.org/ns/1.0'
137 xml:lang NMTOKEN #REQUIRED
138 >
139 <!ELEMENT cit (p+,bibl*)>
140 <!ATTLIST cit
141 xmlns CDATA #FIXED 'http://www.tei-c.org/ns/1.0'
142 xml:lang NMTOKEN #REQUIRED
143 >
144 <!ELEMENT div (p)+>
145 <!ATTLIST div
146 xmlns CDATA #FIXED 'http://www.tei-c.org/ns/1.0'
147 xml:lang NMTOKEN #REQUIRED
148 >
This page took 0.055103 seconds and 5 git commands to generate.