The layers of a schema
  1. vocabulary
    <list>, <item>, <label>
  2. suggested usage rules
    element list { item+ } 
  3. constraints on text
    figure.attributes.url.content = xsd:anyURI
  4. dependency rules (project specific)
    <if test="self::list[@type='gloss'] and not(child::label)">
             <message>gloss lists must have <label> children</message>
    </if>
  5. lookup rules
    <if test="document('lookup.xml')/people/person[@id=current::@ref]">
             <message>this person does not exist in the database</message>
    </if>
  6. common sense rules
    Don't use table markup to force layout
logo Whither the TEI?14 First | Previous| Next