Markup, XML, TEI

"Miguel de Cervantes wrote Don Quixote"

Procedural

Miguel de Cervantes wrote Don Quixote

Descriptive

 MarkupMiguel de Cervantes wrote Don Quixote
 Visualizationname {font-weight: bold;} title {font-style: italic;} 
 Process<xsl:for-each select="//name">

XML Golden Rules

 An element consists of a start-tag, optional content, and an end-tag. <persName>Miguel de Cervantes</persName>
 An element may have attributes, each consisting of a name and a value. Miguel de Cervantes
 An XML document may contain processing instructions or comments. <? xml-stylesheet type="text/css" href="visualize-tei-xml.css"?>
 Elements and attributes are case sensitive. <name> ≠ <Name>
 Empty elements can use a minimized tag syntax. <pb/> =   
    "The Text Encoding Initiative (TEI) is a consortium which collectively develops and maintains a standard for the representation of texts in digital form."
  • Platform independence;
  • TEI P5: Version 4.9.0. Last updated on 24th January 2025

TEI basic structure (root element = <TEI>)

TEI basic structure

<teiHeader>

TEI basic structure

<teiHeader>

TEI basic structure

<text>

TEI basic structure

<text>

TEI basic structure

<text>

Classes of elements

  • grouped semantically: names, places, titles, ...
  • grouped structurally: divisions, paragraphs, verses,...
  • Verse and name annotation

    <body>
    
      <persName>Doris</persName>, qui sait qu'aux vers quelquefois je me plais,
      Me demande un sonnet, et je m'en désespère:
      Quatorze vers, grand Dieu! Le moyen de les faire?
      En voilà cependant déjà quatre de faits.
    
    </body>
    

    Atributtes inside of elements

     Provides a unique identifier for any element:  @xml:id 
     Provides a name or number for any element:  @n 
     Specifies the language of any element:  @xml:lang 
     Characterizes the element in some sense:  @type 
     Specifies the visual appearance (rendition):  @rend, @style, @rendition 

    Atributtes and elements

    <body>
       
          Doris, qui ſait qu'aux vers quelquefois je me plais,
          Me demande un Sonnet; & je m'en deſeſpere:
          Quatorze vers, grand Dieu! le moyen de les faire!
          En voilà cependant desja quatre de faits.
      
    </body>
    

    Metatextual markup for editions

    Enriched with corrections, regularizations, expansions
     Groups alternative encodings:    
     Apparent error:  
     Corrected error:   
     Original form:   
     Regularized form:   

    Markup for corrections

    <body>
    
          Doris, qui ſait qu'aux vers quelquefois je me plais,
          Me demande un Sonnet; & je m'en deſeſpere:
          Quatorze vers, grand Dieu! le moyen de les faire!
          En voilà cependant 
    		
    			desja
    			déjà
    		 
                quatre de faits.
    
    </body>

    Critical Apparatus, Dictionaries, Manuscript Description, Bibliographies, ...

    nearly 500 elements

    Guidelines

    References