]> Lady’s Gitweb - Fortune/blob - DTD
Add PatchesGender fortunes
[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 abbr (#PCDATA)>
17 <!ELEMENT emph (#PCDATA)>
18 <!ELEMENT gap (#PCDATA)>
19 <!ATTLIST gap
20 reason (editorial) #REQUIRED
21 >
22 <!ELEMENT note (p)>
23 <!ATTLIST note
24 n CDATA #IMPLIED
25 >
26 <!ELEMENT pc (#PCDATA)>
27 <!ATTLIST pc
28 unit (paragraph|phrase|sentence) #REQUIRED
29 >
30 <!ELEMENT seg (#PCDATA|emph)*>
31 <!ATTLIST seg
32 type (callout) #IMPLIED
33 >
34 <!ELEMENT soCalled (#PCDATA)>
35
36 <!--
37 The following encode links.
38 -->
39 <!ELEMENT ptr EMPTY>
40 <!ATTLIST ptr
41 target CDATA #REQUIRED
42 mimeType CDATA #IMPLIED
43 >
44
45 <!--
46 The following encode choices.
47 -->
48 <!ELEMENT metamark (#PCDATA)>
49 <!ELEMENT supplied (#PCDATA)>
50 <!ELEMENT ellipsis (metamark,supplied?)>
51
52 <!--
53 The following encode names and name components.
54 -->
55 <!ELEMENT forename (#PCDATA)>
56 <!ELEMENT surname (#PCDATA)>
57 <!ELEMENT persName (forename|surname)+>
58
59 <!--
60 The following encode titles.
61 Altho it is not formally expressible, it is expected that top‐level `<title>´s have a `@level´, and nested `<title>´s have a `@type´.
62
63 Titles have element content, meaning that character data needs to be wrapped in a `<seg>` or similar.
64 -->
65 <!ELEMENT title (seg|soCalled|title+)>
66 <!ATTLIST title
67 level (a|j|m|s|u) #IMPLIED
68 type (main|sub) #IMPLIED
69 >
70
71 <!--
72 The following encode bibliographic identifiers.
73 -->
74 <!ELEMENT idno (#PCDATA)>
75 <!ATTLIST idno
76 type (DOI|ISBN) #REQUIRED
77 >
78
79 <!--
80 The following encode dates.
81 -->
82 <!ELEMENT date EMPTY>
83 <!ATTLIST date
84 when CDATA #REQUIRED
85 >
86
87 <!--
88 The following encode contributor information for bibliographies.
89 -->
90 <!ELEMENT author (persName)>
91 <!ATTLIST author
92 ref CDATA #IMPLIED
93 >
94 <!ELEMENT editor (persName)>
95 <!ATTLIST editor
96 ref CDATA #IMPLIED
97 >
98
99 <!--
100 The following encode publication information for bibliographies.
101 -->
102 <!ELEMENT pubPlace (#PCDATA)>
103 <!ELEMENT publisher (#PCDATA)>
104 <!ELEMENT imprint (pubPlace?,publisher?,date?)>
105
106 <!--
107 The following encode bibliographic scopes and ranges.
108
109 For single pages, `@from´ and `@to´ should be equal.
110 -->
111 <!ELEMENT biblScope EMPTY>
112 <!ATTLIST biblScope
113 unit (chapter|issue|page|volume) #REQUIRED
114 from CDATA #REQUIRED
115 to CDATA #REQUIRED
116 >
117 <!ELEMENT citedRange EMPTY>
118 <!ATTLIST citedRange
119 unit (chapter|issue|page|volume) #REQUIRED
120 from CDATA #REQUIRED
121 to CDATA #REQUIRED
122 >
123
124 <!--
125 The following are paragraph‐level elements.
126 -->
127 <!ELEMENT p (#PCDATA|abbr|ellipsis|emph|gap|note|pc|ptr|seg)*>
128
129 <!--
130 The following encapsulate paragraph information within bibliographies.
131 -->
132 <!ELEMENT availability (p)+>
133
134 <!--
135 The following provide structured bibliographic information.
136 -->
137 <!ELEMENT analytic (title,idno*,author*,editor*,availability?,date?)>
138 <!ELEMENT monogr (title,idno*,author*,editor*,availability?,imprint,biblScope*)>
139 <!ELEMENT series (title,idno*,editor*,availability?,biblScope*)>
140
141 <!--
142 The following provide unstructured bibliographic information.
143 -->
144 <!ELEMENT bibl (citedRange)>
145
146 <!--
147 The following are acceptable top‐level elements.
148
149 All of these require an `@xmlns´ which provides the T·E·I namespace, and an `@xml:lang´ providing the language of the content.
150 -->
151 <!ELEMENT biblStruct (analytic*,monogr*,series*)>
152 <!ATTLIST biblStruct
153 xmlns CDATA #FIXED 'http://www.tei-c.org/ns/1.0'
154 xml:lang NMTOKEN #REQUIRED
155 >
156 <!ELEMENT cit (p+,bibl*)>
157 <!ATTLIST cit
158 xmlns CDATA #FIXED 'http://www.tei-c.org/ns/1.0'
159 xml:lang NMTOKEN #REQUIRED
160 >
161 <!ELEMENT div (p)+>
162 <!ATTLIST div
163 xmlns CDATA #FIXED 'http://www.tei-c.org/ns/1.0'
164 xml:lang NMTOKEN #REQUIRED
165 >
This page took 0.052334 seconds and 5 git commands to generate.