[tei-council] Quick ODD question

Martin Holmes mholmes at uvic.ca
Sun May 18 23:49:11 EDT 2014


On 14-05-18 03:01 PM, Sebastian Rahtz wrote:
>
> 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

Ah -- of course, I can just make the new element a member of the class, 
delete any attributes from the class I don't need, and override the 
usage attribute using attDef. Sorry, I wasn't thinking straight.

Cheers,
Martin

>
> --
> 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