next up previous contents
Next: Global attributes Up: Structure of the TEI Previous: Additional tagsets

Parametrisation

<!DOCTYPE teiCorpus.2 PUBLIC 
  "-//TEI P3//DTD Main Document Type//EN" [
  <!-- base tag set for prose: -->
  <!ENTITY % TEI.prose    'INCLUDE'>
  <!-- add basic linguistic analysis: -->
  <!ENTITY % TEI.analysis 'INCLUDE'>
  <!-- add pointer mechanisms: -->
  <!ENTITY % TEI.linking  'INCLUDE'>
  <!-- add local extensions: -->
  <!ENTITY % TEI.extensions.ent 
    SYSTEM "teitmx.ent">
  <!ENTITY % TEI.extensions.dtd 
    SYSTEM "teitmx.dtd">
]>

The two extension files:

teitmx.ent:                      
<!ENTITY % body 'IGNORE' >       
                                 
teitmx.dtd:                             
<!ELEMENT %n.body;      - -  (tu+)>     
<!ELEMENT tu            - -  (seg, seg)>
<!ATTLIST tu                 %a.global;>

In the SGML document:

<text lang="sl-en" id="vade.T">
  <body>
    <tu lang="sl-en" id="vade.1">
      <seg lang="sl"><w>Uvod</w><c>:</c></seg>
      <seg lang="en"><w>Introduction</w><c>:</c></seg>
    </tu>
    <tu lang="sl-en" id="vade.2">
      <seg lang="sl"><w>Kultura</w> <w>samozdravljenja</w> <w>pri</w> 
<w>nas</w> <w>in</w> <w>po</w> <w>svetu</w></seg>
      <seg lang="en"><w>The</w> <w>culture</w> <w>of</w> 
<w>selfmedication</w> <w>in</w> <w>Slovenia</w> <w>and</w> 
<w>world-wide</w></seg>
</tu>


Tomaz Erjavec
1/9/2000