Difference between revisions of "Global division of the XML/TEI file"

From XML
Jump to: navigation, search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
An XML/TEI file consists of several mandatory and if so desired optional sections, that are each encoded within their own XML elements:
+
An XML/TEI file consists of several mandatory and, if so desired, optional sections, that are each encoded within their own XML elements:
  
 
# The [[TEI Header]], which contains the metadata about the text in a <teiHeader> element (mandatory).  
 
# The [[TEI Header]], which contains the metadata about the text in a <teiHeader> element (mandatory).  
# If relevant, a [[Facsimile (Mondrian)|facsimile]] section for identifying the digital image files of the source in a <facsimile> element (optional).  
+
# If relevant, a [[Facsimile|facsimile]] section for identifying the digital image files of the source in a <facsimile> element (optional).  
# The actual [[Transcription|transcription]] of the text in a <text> element (mandatory).  
+
# The actual [[Transcription|transcription]] of the text in a <text> element (mandatory). This element will also include annotation.
 +
 
 +
This is how the elements are coded in the XML file:
 +
 
 +
<pre>
 +
<teiHeader>
 +
<!--...-->
 +
</teiHeader>
 +
<facsimile>
 +
<!--...-->
 +
</facsimile>
 +
<text>
 +
<body>
 +
  <!--...-->
 +
</body>
 +
</text>
 +
</pre>
 +
 
 +
 
 +
The body element will usually contain the transcription of the edited document, but may also contain other content, such as a translation, editorial annotation, etc.
 +
In this case, these components will usually be stored in different divs, e.g.:
 +
 
 +
<pre>
 +
<body>
 +
<div type="original">
 +
  <!--...-->
 +
</div>
 +
<div type="translation">
 +
  <!--...-->
 +
</div>
 +
<div type="notes">
 +
  <!--...-->
 +
</div>
 +
</body>
 +
</pre>
 +
 
  
Other matters, such as the introduction, preliminary pages and [[Secondary files|secondary files]], are not included in the XML/TEI file.
 
  
 
==See also==
 
==See also==

Latest revision as of 12:24, 26 April 2017

An XML/TEI file consists of several mandatory and, if so desired, optional sections, that are each encoded within their own XML elements:

  1. The TEI Header, which contains the metadata about the text in a <teiHeader> element (mandatory).
  2. If relevant, a facsimile section for identifying the digital image files of the source in a <facsimile> element (optional).
  3. The actual transcription of the text in a <text> element (mandatory). This element will also include annotation.

This is how the elements are coded in the XML file:

<teiHeader>
 <!--...-->
</teiHeader>
<facsimile>
 <!--...-->
</facsimile>
<text>
 <body>
  <!--...-->
 </body>
</text>


The body element will usually contain the transcription of the edited document, but may also contain other content, such as a translation, editorial annotation, etc. In this case, these components will usually be stored in different divs, e.g.:

<body>
 <div type="original">
   <!--...-->
 </div>
 <div type="translation">
   <!--...-->
 </div>
 <div type="notes">
   <!--...-->
 </div>
</body>


See also