This examples section is underpopulated, and could benefit from your examples! If you happen to have any text samples that you want to share under a Creative Commons Share Alike license, please do get in touch!

Examples for Customising TEI, ODD, Roma

2. Abolishing numbered text divisions

Following ODD file defines a minimal TEI schema (containing the core, tei, header, and textstructure modules). Besides that, it does away with numbered text divisions (<div1>, ..., <div7>) by specifying the value delete for the @mode attribute on their respective <elementSpec> declarations.
Note that strictly speaking, only deletion of <div1> is necessary, as all further numbered subdivisions should nest according to the TEI scheme. By definition, if the topmost level is deleted, all further subdivisions are practically excluded from the document model. Although they are still declared, they can't be used in documents according to this schema.
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
<title>numbered divisions</title>
<author>The TBE crew</author>
</titleStmt>
<publicationStmt>
<p>for use by whoever wants it</p>
</publicationStmt>
<sourceDesc>
<p>no source, born digital</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<front>
<divGen type="toc"/>
</front>
<body>
<p>This customisation only selects the minimal TEI modules, and deletes all numbered subdivisions.</p>
<schemaSpec ident="numDiv" xml:lang="en">
<moduleRef key="core"/>
<moduleRef key="tei"/>
<moduleRef key="header"/>
<moduleRef key="textstructure"/>
<elementSpec module="textstructure" ident="div1" mode="delete"/>
<elementSpec module="textstructure" ident="div2" mode="delete"/>
<elementSpec module="textstructure" ident="div3" mode="delete"/>
<elementSpec module="textstructure" ident="div4" mode="delete"/>
<elementSpec module="textstructure" ident="div5" mode="delete"/>
<elementSpec module="textstructure" ident="div6" mode="delete"/>
<elementSpec module="textstructure" ident="div7" mode="delete"/>
</schemaSpec>
</body>
</text>
</TEI>
[2]

Bibliography

[1] TBE crafted example encoding, no material source.
[2] TBE crafted example encoding, no material source.
Want your examples here? If you happen to have any text samples that you want to share under a Creative Commons Share Alike license, please do get in touch!