|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en"> |
| 3 | + <teiHeader> |
| 4 | + <fileDesc> |
| 5 | + <titleStmt> |
| 6 | + <title>TEI Absolutely Bare</title> |
| 7 | + <author>Laurent Romary</author> |
| 8 | + <editor xml:id="sbauman.emt">Syd Bauman</editor> |
| 9 | + <editor xml:id="LB">Lou Burnard</editor> |
| 10 | + <editor xml:id="SR">Sebastian Rahtz</editor> |
| 11 | + </titleStmt> |
| 12 | + <publicationStmt> |
| 13 | + <availability status="free"> |
| 14 | + <p>This template file is freely available and you are hereby |
| 15 | + authorised to copy, modify, and redistribute it in any way without |
| 16 | + further reference or permissions.</p> |
| 17 | + <p>When making such modifications, you are strongly recommended to |
| 18 | + change the present text to include an accurate statement of the |
| 19 | + licencing conditions applicable to your modified text.</p> |
| 20 | + </availability> |
| 21 | + </publicationStmt> |
| 22 | + <sourceDesc> |
| 23 | + <p>Initially created on <date when="2006-10-12T05:24:41">Thursday 12th |
| 24 | + October 2006</date> by the form at |
| 25 | + http://www.tei-c.org.uk/Roma/.</p> |
| 26 | + </sourceDesc> |
| 27 | + </fileDesc> |
| 28 | + <revisionDesc> |
| 29 | + <change when="2011-03-26" who="#SR">rewrite as new-style ODD </change> |
| 30 | + <change when="2007-08-12" who="#LB">Removed further elements added |
| 31 | +since this ODD was first created </change> |
| 32 | + <change when="2007-04-09" who="#LB">Added prose and reorganized |
| 33 | +structure to make it more document-like; changed deletion of attribute |
| 34 | +decls into deletion of att.declaring class; add deletes for elements |
| 35 | +email and floatingText added to P5 since this ODD was first created; |
| 36 | +considered but did not implement removal of all irrelevant datatype specs...</change> |
| 37 | + <change when="2006-10-14" who="#sbauman.emt"> Made valid: <list><item>removed empty <att>prefix</att> attribute</item><item>added required <att>type</att> attribute to |
| 38 | + <gi>classSpec</gi>s</item></list><!--. <note>Sebastian had also made the above changes.</note> -->Also |
| 39 | + removed extraneous <gi>altIdent</gi> elements, improved |
| 40 | + <gi>sourceDesc</gi>, changed the <att>ident</att> of <gi>schemaSpec</gi> |
| 41 | + to match the filename, and added this revision description. </change> |
| 42 | + </revisionDesc> |
| 43 | + </teiHeader> |
| 44 | + <text> |
| 45 | + <!-- <front> |
| 46 | + <divGen type="toc"/> |
| 47 | + </front>--> |
| 48 | + <body> |
| 49 | + <p>This customization creates a TEI schema with the bare minimum of tags |
| 50 | + to make a recognizable document. It combines the four basic modules, but |
| 51 | +removes most of the available elements and changes several attribute classes.</p> |
| 52 | + <div> |
| 53 | + <head>Basic text structure</head> |
| 54 | + <p>In this very simple schema, a document may contain <gi>front</gi>, |
| 55 | +<gi>body</gi> and <gi>back</gi> elements as in standard TEI. However, |
| 56 | +within these, only the following elements are permitted: |
| 57 | +<specList><specDesc key="div"/><specDesc key="head"/><specDesc key="list"/><specDesc key="p"/></specList> |
| 58 | +</p> |
| 59 | + <p>The <gi>list</gi> element may contain a <gi>head</gi> followed by a |
| 60 | +sequence either of <gi>label</gi>-<gi>item</gi> pairs, or of |
| 61 | +<gi>item</gi> elements alone. </p> |
| 62 | + <p>The <gi>item</gi> and <gi>p</gi> elements have the same structure: |
| 63 | +either may contain just text, or a mixture of text with |
| 64 | +<gi>list</gi>, or <gi>title</gi> elements.</p> |
| 65 | + <p>Similarly, the <gi>div</gi> element may contain a <gi>head</gi>, |
| 66 | +followed by a nested <gi>div</gi>, or one or more <gi>p</gi> elements. |
| 67 | +</p> |
| 68 | + <p>The <att>version</att> attribute on the <gi>TEI</gi> element is |
| 69 | +removed, as is the <att>level</att> attribute on the <gi>title</gi> |
| 70 | +element. Other attributes are also removed as a consequence of the |
| 71 | +class modifications described below.</p> |
| 72 | + <p>The following specification group deletes the unwanted attributes: |
| 73 | +<specGrp xml:id="bodyfixes"> |
| 74 | + <elementSpec ident="title" mode="change" module="core"><attList><attDef ident="level" mode="delete"/></attList></elementSpec> |
| 75 | + <elementSpec ident="TEI" mode="change" module="textstructure"><attList><attDef ident="version" mode="delete"/></attList></elementSpec> |
| 76 | +</specGrp> |
| 77 | +</p> |
| 78 | + </div> |
| 79 | + <div> |
| 80 | + <head>Header structure</head> |
| 81 | + <p>A much simplified version of the TEI Header is defined, again by |
| 82 | +the deletion of many elements. For validity, all that is required |
| 83 | +within it is the <gi>fileDesc</gi>, which contains only the following elements: |
| 84 | +<specList><specDesc key="titleStmt"/><specDesc key="publicationStmt"/><specDesc key="sourceDesc"/></specList> |
| 85 | +</p> |
| 86 | + <p>Within the <gi>titleStmt</gi> only a <gi>title</gi> is permitted; |
| 87 | + within the other two elements only a <gi>p</gi> is permitted. |
| 88 | + The <att>default</att> attribute on the <gi>sourceDesc</gi> element is |
| 89 | + also removed. |
| 90 | + <specGrp xml:id="hdrfixes"> |
| 91 | + <elementSpec ident="sourceDesc" mode="change" module="header"> |
| 92 | + <attList><attDef ident="default" mode="delete"/></attList> |
| 93 | + </elementSpec> |
| 94 | + </specGrp> |
| 95 | + </p> |
| 96 | + </div> |
| 97 | + <div> |
| 98 | + <head>Class modifications</head> |
| 99 | + <p>Finally three of the TEI attribute |
| 100 | +classes are simplified. The attributes xml:space, rend, and xml:base |
| 101 | +are removed from the att.global class, so that this now makes |
| 102 | +available to all elements only the following attributes: |
| 103 | +<att>xml:id</att>, <att>n</att>, and |
| 104 | +<att>xml:lang</att>. |
| 105 | +</p> |
| 106 | + <p>Three un-needed attributes are removed from the att.divLike class so that |
| 107 | +the <gi>div</gi> element inherits from it only |
| 108 | +the following attributes: <att>xml:id</att>, |
| 109 | +<att>n</att>, |
| 110 | +<att>xml:lang</att>. |
| 111 | +The attribute class <ident>att.declaring</ident> is deleted |
| 112 | +completely, so that none of its members inherit the <att>decls</att> |
| 113 | +attribute defined in the unmodified TEI.</p> |
| 114 | + <specGrp xml:id="classmods"> |
| 115 | + <classSpec ident="att.global" mode="change" module="tei" type="atts"> |
| 116 | + <attList> |
| 117 | + <attDef ident="xml:space" mode="delete"/> |
| 118 | + <attDef ident="rend" mode="delete"/> |
| 119 | + <attDef ident="xml:base" mode="delete"/> |
| 120 | + </attList> |
| 121 | + </classSpec> |
| 122 | + <classSpec ident="att.fragmentable" mode="delete" module="tei" type="atts"/> |
| 123 | + <classSpec ident="att.divLike" mode="change" module="tei" type="atts"> |
| 124 | + <attList> |
| 125 | + <attDef ident="org" mode="delete"/> |
| 126 | + <attDef ident="sample" mode="delete"/> |
| 127 | + </attList> |
| 128 | + </classSpec> |
| 129 | + <classSpec ident="att.declaring" mode="delete" module="tei" type="atts"/> |
| 130 | + </specGrp> |
| 131 | + </div> |
| 132 | + <div> |
| 133 | + <head>Formal declaration</head> |
| 134 | + <schemaSpec ident="tei_bare" xml:lang="en"> |
| 135 | + <moduleRef key="core" include="p list item label head author title"/> |
| 136 | + <moduleRef key="tei"/> |
| 137 | + <moduleRef key="header" include="teiHeader fileDesc titleStmt publicationStmt sourceDesc"/> |
| 138 | + <moduleRef key="textstructure" include="TEI text body div front back"/> |
| 139 | + <specGrpRef target="#classmods"/> |
| 140 | + <specGrpRef target="#bodyfixes"/> |
| 141 | + <specGrpRef target="#hdrfixes"/> |
| 142 | + </schemaSpec> |
| 143 | + </div> |
| 144 | + </body> |
| 145 | + </text> |
| 146 | +</TEI> |
0 commit comments