Difference between revisions of "Text structure (ePistolarium)"
From XML
(Add comment) |
(Add subsections) |
||
Line 20: | Line 20: | ||
The <code>type</code> attribute of the <code>div</code> element is used to distinguish between various parts of the text, the most important ones being <code>artifact</code> for the 'real' letter text and <code>notes</code> for the text of (editorial) notes. | The <code>type</code> attribute of the <code>div</code> element is used to distinguish between various parts of the text, the most important ones being <code>artifact</code> for the 'real' letter text and <code>notes</code> for the text of (editorial) notes. | ||
+ | |||
+ | |||
+ | == Subsections == | ||
+ | |||
+ | A <code>div</code> element may contain other <code>div</code> element, which is often used in combination with a <code>head</code> element. | ||
+ | |||
+ | Example: https://correspondence.huygens.knaw.nl/documents/920e5785-62d4-4108-b126-8caa1df370b8 | ||
+ | (subdivisions) | ||
+ | |||
+ | <pre> | ||
+ | <div type="artifact" subtype="letter"> | ||
+ | <div type="section"> | ||
+ | <head>Propositio 5.</head> | ||
+ | <p><figure><graphic url="huyg003oeuv01ill19.gif"/></figure></p> | ||
+ | <p>Si il y a tant de gravitez qu'on veut ...</p> | ||
+ | </div> | ||
+ | <div type="section"> | ||
+ | <head>Propositio 6.</head> | ||
+ | <p><figure><graphic url="huyg003oeuv01ill20.gif"/></figure></p> | ||
+ | <p>Eadem methodo probatur si ...</p> | ||
+ | </div> | ||
+ | ... | ||
+ | </div> | ||
+ | </pre> |
Revision as of 11:51, 9 January 2018
The documents in the ePistolarium have the following basic structure:
<text> <body> <div xml:id="div-1" type="artifact" subtype="letter"> ... </div> <div xml:id="div-2" type="para"> ... </div> <div xml:id="div-3" type="notes"> ... </div> </body> </text>
The text
and body
elements serve as a container for the actual text. The TEI Guidelines allow for front
and back
elements as siblings of body
, but these are not used.
The type
attribute of the div
element is used to distinguish between various parts of the text, the most important ones being artifact
for the 'real' letter text and notes
for the text of (editorial) notes.
Subsections
A div
element may contain other div
element, which is often used in combination with a head
element.
Example: https://correspondence.huygens.knaw.nl/documents/920e5785-62d4-4108-b126-8caa1df370b8 (subdivisions)
<div type="artifact" subtype="letter"> <div type="section"> <head>Propositio 5.</head> <p><figure><graphic url="huyg003oeuv01ill19.gif"/></figure></p> <p>Si il y a tant de gravitez qu'on veut ...</p> </div> <div type="section"> <head>Propositio 6.</head> <p><figure><graphic url="huyg003oeuv01ill20.gif"/></figure></p> <p>Eadem methodo probatur si ...</p> </div> ... </div>