[tei-council] Quick ODD question

Sebastian Rahtz sebastian.rahtz at it.ox.ac.uk
Sun May 18 18:01:41 EDT 2014


On 16 May 2014, at 21:34, Martin Holmes <mholmes at uvic.ca> wrote:

> How do you make an attribute from an existing class required on an 
> element? For instance:
> 
> <elementSpec ident="foo" ns="http://www.example.com/ns">
> 
>   <attList>
> 
>     <attRef class="att.global" ident="xml:id"/>
> 
>   </attList>
> 
> </elementSpec>
> 
> Is there any way I can override the optional status of @xml:id in the 
> global class, to make it required on the new foo element, or do I have 
> to re-create it?

this is a bit like the one in <media>, i think

  <attList>
    <attDef ident="mimeType" usage="req" mode="change"/>
  </attList>

but your example uses <attRef>. hmm.  I dont think we allowed for what you want.
I’d probably just recreate something as trivial as @xml:id

--
Sebastian Rahtz      
Director (Research) of Academic IT
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431

Não sou nada.
Nunca serei nada.
Não posso querer ser nada.
À parte isso, tenho em mim todos os sonhos do mundo.



More information about the tei-council mailing list