Changing attributes: Examples

To delete an entire attribute class from the schema (scorched earth approach):

  <classSpec type="atts" ident="att.personal" mode="delete"/>

To delete a single attribute from an attribute class (selective thinning):

  <classRef key="att.global" except="xml:base xml:space"/>

To unsubscribe an element from an attribute class (genteel bureaucratic approach):

  <elementSpec module="core" ident="pb" mode="change">
    <classes mode="change">
      <memberOf key="att.typed" mode="delete"/>
    </classes>
  </elementSpec>

To remove a specific attribute from an element that holds it privately (repossession):

  <elementSpec module="core" ident="note" mode="change">
    <attList>
      <attDef ident="anchored" mode="delete"/>
    </attList>
  </elementSpec>

Here are some examples of how to change attributes, spend some time going through them to familiarize yourself with the syntax.

Introduction to Writing ODDs slide 06 of 24
© 2010 Syd Bauman, Julia Flanders, and the Women Writers Project This TEI-encoded XML file is available under the terms of the Creative Commons Attribution-ShareAlike 3.0 (Unported) license.