swh:1:snp:ed2d467953071803b0382cac92a7b1b452fbb8ef
Tip revision: 851214e7fac6fb15020e33fcf2b88b2e88382956 authored by Syd Bauman on 05 July 2013, 23:14:00 UTC
Re-tagging the 2.4.0 release of P5.
Re-tagging the 2.4.0 release of P5.
Tip revision: 851214e
torture.odd
<TEI xml:lang="en" xmlns="http://www.tei-c.org/ns/1.0"
xmlns:rng="http://relaxng.org/ns/structure/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>TEI ODD Torture Test</title>
<author>Sebastian Rahtz</author>
</titleStmt>
<publicationStmt>
<p>for TEI web site only</p>
</publicationStmt>
<sourceDesc>
<p>derived from old DTD extension files for P4</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<p>The Torture schema consists some new elements and a view of the
TEI. It is a bit like TEI Lite.</p>
<p>First, here is the small set of new elements:
<specGrp xml:id="LITEADD">
<elementSpec ident="eg">
<desc>Example code</desc>
<classes>
<memberOf key="model.pPart.data"/>
<memberOf key="model.common"/>
</classes>
<content>
<rng:text/>
</content>
</elementSpec>
<elementSpec ident="gi">
<desc>contains the name (generic identifier) of an element.</desc>
<classes><memberOf key="model.pPart.data"/></classes>
<content>
<rng:text/>
</content>
<attList>
<attDef usage="opt" ident="tei">
<equiv/>
<desc>indicates whether this element is part of the TEI encoding
scheme (i.e. defined in a TEI DTD fragment) or not.</desc>
<datatype><rng:data type="boolean"/></datatype>
<defaultVal>true</defaultVal>
<valList type="closed">
<valItem ident="true">
<equiv/>
<gloss>this element is part of the TEI scheme.</gloss>
</valItem>
<valItem ident="false">
<equiv/>
<gloss>this element is not part of the TEI scheme.</gloss>
</valItem>
</valList>
</attDef>
</attList>
<exemplum>
<eg><![CDATA[
An <gi tei="false">LI</gi> element is roughly analagous to an <gi>item</gi> element.
]]></eg>
</exemplum>
</elementSpec>
<elementSpec ident="ident">
<classes><memberOf key="model.pPart.data"/>
<memberOf key="att.typed"/>
</classes>
<content>
<rng:text/>
</content>
</elementSpec>
<elementSpec ident="code">
<classes><memberOf key="model.pPart.data"/></classes>
<content>
<rng:text/>
</content>
</elementSpec>
<elementSpec ident="kw">
<classes><memberOf key="model.pPart.data"/></classes>
<content>
<rng:text/>
</content>
</elementSpec>
</specGrp>
</p>
<p>Now for the wrapping schema, which imports
selected TEI modules. Some existing elements are redefined
to be null.</p>
<schemaSpec ident="torture" start="TEI">
<specGrpRef target="#LITEADD"/>
<moduleRef url="mathml2-main.rng"/>
<moduleRef key="tei"/>
<moduleRef key="core"/>
<moduleRef key="header"/>
<moduleRef key="textstructure"/>
<moduleRef key="figures"/>
<moduleRef key="linking"/>
<moduleRef key="analysis"/>
<elementSpec ident="alt" mode="delete" module="linking" />
<elementSpec ident="altGrp" mode="delete" module="linking" />
<elementSpec ident="analytic" mode="delete" module="core" />
<elementSpec ident="broadcast" mode="delete" module="header" />
<elementSpec ident="c" mode="delete" module="analysis" />
<elementSpec ident="cb" mode="delete" module="core" />
<elementSpec ident="cl" mode="delete" module="analysis" />
<elementSpec ident="distinct" mode="delete" module="core" />
<elementSpec ident="equipment" mode="delete" module="header" />
<elementSpec ident="expan" mode="delete" module="core" />
<elementSpec ident="fsdDecl" mode="delete" module="header" />
<elementSpec ident="headItem" mode="delete" module="core" />
<elementSpec ident="headLabel" mode="delete" module="core" />
<elementSpec ident="hyphenation" mode="delete" module="header" />
<elementSpec ident="interpretation" mode="delete" module="header" />
<elementSpec ident="join" mode="delete" module="linking" />
<elementSpec ident="joinGrp" mode="delete" module="linking" />
<elementSpec ident="link" mode="delete" module="linking" />
<elementSpec ident="linkGrp" mode="delete" module="linking" />
<elementSpec ident="m" mode="delete" module="analysis" />
<elementSpec ident="measure" mode="delete" module="core" />
<elementSpec ident="meeting" mode="delete" module="core" />
<elementSpec ident="metDecl" mode="delete" module="header" />
<elementSpec ident="monogr" mode="delete" module="core" />
<elementSpec ident="normalization" mode="delete" module="header" />
<elementSpec ident="num" mode="delete" module="core" />
<elementSpec ident="phr" mode="delete" module="analysis" />
<elementSpec ident="postBox" mode="delete" module="core" />
<elementSpec ident="postCode" mode="delete" module="core" />
<elementSpec ident="quotation" mode="delete" module="header" />
<elementSpec ident="quote" mode="delete" module="core" />
<elementSpec ident="recording" mode="delete" module="header" />
<elementSpec ident="recordingStmt" mode="delete" module="header" />
<elementSpec ident="scriptStmt" mode="delete" module="header" />
<elementSpec ident="segmentation" mode="delete" module="header" />
<elementSpec ident="series" mode="delete" module="core" />
<elementSpec ident="span" mode="delete" module="analysis" />
<elementSpec ident="spanGrp" mode="delete" module="analysis" />
<elementSpec ident="state" mode="delete" module="header" />
<elementSpec ident="stdVals" mode="delete" module="header" />
<elementSpec ident="street" mode="delete" module="core" />
<elementSpec ident="teiCorpus" mode="delete" module="core" />
<elementSpec ident="timeline" mode="delete" module="linking" />
<elementSpec ident="variantEncoding" mode="delete" module="header" />
<elementSpec ident="w" mode="delete" module="analysis" />
<elementSpec ident="when" mode="delete" module="linking" />
<elementSpec module="core" xml:id="DESC" ident="desc" mode="replace">
<equiv/>
<gloss>description</gloss>
<desc>contains a brief description of the purpose and application for
an element, attribute, or attribute value.</desc>
<content>
<rng:ref xmlns:rng="http://relaxng.org/ns/structure/1.0" name="macro.paraContent"/>
</content>
</elementSpec>
<classSpec module="tei" type="atts" ident="att.global" mode="change">
<classes>
<memberOf key="att.global.linking"/>
</classes>
<attList>
<attDef ident="rend" usage="rwa" mode="change">
<valList type="closed" mode="add">
<valItem ident="i">
<gloss>italic</gloss>
</valItem>
<valItem ident="b">
<gloss>bold</gloss>
</valItem>
</valList>
</attDef>
<attDef ident="xml:id" mode="delete"/>
<attDef ident="id" mode="add">
<datatype><rng:text/></datatype>
</attDef>
</attList>
</classSpec>
<elementSpec ident="div1" mode="change">
<altIdent>chapter</altIdent>
</elementSpec>
<elementSpec ident="div" mode="change">
<desc>Used for any old form of division</desc>
<attList>
<attDef ident="class" mode="add">
<datatype>
<rng:text/>
</datatype>
</attDef>
<attDef ident="rend" mode="delete"/>
<attDef ident="type" mode="change" usage="req">
<valList type="closed">
<valItem ident="preface"/>
<valItem ident="toc"/>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="l" mode="change">
<attList>
<attDef ident="part" mode="change">
<defaultVal>first</defaultVal>
<valList>
<valItem ident="first" mode="add"/>
<valItem ident="second" mode="add"/>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="table" module="figures" mode="change">
<attList>
<attDef mode="add" ident="align"><datatype><rng:text/></datatype></attDef>
<attDef mode="add" ident="summary"><datatype><rng:text/></datatype></attDef>
<attDef mode="add" ident="width"><datatype><rng:text/></datatype></attDef>
<attDef mode="add" ident="border"><datatype><rng:text/></datatype></attDef>
<attDef mode="add" ident="frame"><datatype><rng:text/></datatype></attDef>
<attDef mode="add" ident="rules"><datatype><rng:text/></datatype></attDef>
<attDef mode="add" ident="cellspacing"><datatype><rng:text/></datatype></attDef>
<attDef mode="add" ident="cellpadding"><datatype><rng:text/></datatype></attDef>
</attList>
</elementSpec>
<elementSpec ident="cell" module="figures" mode="change">
<attList>
<attDef mode="add" ident="align"><datatype><rng:text/></datatype></attDef>
</attList>
</elementSpec>
<elementSpec module="textstructure" ident="front" mode="change">
<content>
<rng:group xmlns:rng="http://relaxng.org/ns/structure/1.0">
<rng:zeroOrMore>
<rng:ref name="model.pLike.front"/>
</rng:zeroOrMore>
<rng:zeroOrMore>
<rng:ref name="titlePage"/>
</rng:zeroOrMore>
<rng:zeroOrMore>
<rng:ref name="model.common"/>
</rng:zeroOrMore>
<rng:zeroOrMore>
<rng:ref name="div"/>
</rng:zeroOrMore>
</rng:group>
</content>
</elementSpec>
<elementSpec ident="list" module="core" mode="change">
<content>
<rng:choice xmlns:rng="http://relaxng.org/ns/structure/1.0">
<rng:oneOrMore>
<rng:ref name="item"/>
</rng:oneOrMore>
<rng:oneOrMore>
<rng:group>
<rng:ref name="label"/>
<rng:ref name="item"/>
</rng:group>
</rng:oneOrMore>
</rng:choice>
</content>
</elementSpec>
</schemaSpec>
</body>
</text>
</TEI>