XLink.odd

An ODD that demonstrates a way to add XLink attributes to.

     Example of TEI Schema that Permits XLink Syd Bauman   Text Encoding Initiative Consortium Copyleft 2007 Text Encoding Initiative Consortium   No source, this TEI document is the source.    Sample TEI ODD Customization that uses XLink This sample ODD demonstrates a method for adding the W3C XLink attributes to elements that are members of the class att.pointing. By default those elements are: alt, altGrp, joinGrp</gi>, linkGrp</gi>, join</gi>, link</gi>, ptr</gi>, and ref</gi>. I do not claim that this is the only or the best way. This customization is intended to serve as an example on       how to customize the TEI schema a certain way, and the resulting schemas are not intended to actually be used for encoding. This customization permits the root element of       conforming instances to be div</gi>, even though such instances are definitionally not TEI-conformant. <schemaSpec ident="TEIxlink" start="TEI div"> <moduleRef key="core"/> <moduleRef key="header"/> <moduleRef key="tei"/> <moduleRef key="textstructure"/> <moduleRef key="linking"/> <classSpec module="tei" type="atts" ident="att.pointing" mode="change"> <attList> <attDef mode="add" ident="xlink:type"> <rng:ref name="data.enumerated"/> <valList type="closed"> <valItem ident="simple"/> <valItem ident="extended"/> <valItem ident="locator"/> <valItem ident="arc"/> <valItem ident="resource"/> <valItem ident="title"/> <valItem ident="none"/> </valList> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#link-types"/>. </attDef> <attDef mode="add" ident="xlink:href"> <rng:ref name="data.pointer"/> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#link-locators"/>. </attDef> <attDef mode="add" ident="xlink:role"> <rng:ref name="data.pointer"/> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#link-semantics"/>. </attDef> <attDef mode="add" ident="xlink:arcrole"> <rng:ref name="data.pointer"/> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#link-semantics"/>. </attDef> <attDef mode="add" ident="xlink:title"> <datatype minOccurs="1" maxOccurs="unbounded"><rng:ref name="data.word"/> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#link-semantics"/>. </attDef> <attDef mode="add" ident="xlink:show"> <rng:ref name="data.enumerated"/> <valList type="closed"> <valItem ident="new"/> <valItem ident="replace"/> <valItem ident="embed"/> <valItem ident="other"/> <valItem ident="none"/> </valList> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#show-att"/>. </attDef> <attDef mode="add" ident="xlink:actuate"> <rng:ref name="data.enumerated"/> <valList type="closed"> <valItem ident="onLoad"/> <valItem ident="onRequest"/> <valItem ident="other"/> <valItem ident="none"/> </valList> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#actuate-att"/>. </attDef> <attDef mode="add" ident="xlink:label"> <rng:ref name="data.name"/> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#traversal-atts"/>. </attDef> <attDef mode="add" ident="xlink:from"> <rng:ref name="data.name"/> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#traversal-atts"/>. </attDef> <attDef mode="add" ident="xlink:to"> <rng:ref name="data.name"/> For semantics and additional constraints see <ptr target="http://www.w3.org/TR/xlink/#traversal-atts"/>. </attDef> </attList> </classSpec> </schemaSpec> </TEI>