[tei-council] Wot is wrong with my ODD?
Martin Holmes
mholmes at uvic.ca
Sun Jun 8 10:03:03 EDT 2014
On 14-06-08 02:46 AM, Sebastian Rahtz wrote:
>
> On 7 Jun 2014, at 22:33, Martin Holmes <mholmes at uvic.ca> wrote:
>>
>> I must have explained it wrong. It's a mixed-content element with any of a set of subelements and/or text in between them. Surely that's what tei:p is?
>>
> yes, thats fine. its, in that case, much simpler than you thought
>
>>
>> I don't want them in a fixed order. I said @preserveOrder="false" -- isn't that what @preserveOrder is for?
>>
>
> a) @preserveOrder is only allowed on <sequence>, so your ODD is invalid anyway :-}
I had it on <sequence>:
<elementSpec ident="seg" mode="change">
<content>
<alternate allowText="true">
<macroRef key="data.text"/>
<sequence allowText="true" preserveOrder="false" minOccurs="0">
<elementRef key="orgName" maxOccurs="unbounded" minOccurs="0"/>
<elementRef key="persName" maxOccurs="unbounded" minOccurs="0"/>
<elementRef key="choice" maxOccurs="unbounded" minOccurs="0"/>
<elementRef key="seg" maxOccurs="unbounded" minOccurs="0"/>
<elementRef key="trait" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</alternate>
</content>
</elementSpec>
> b) @preserveOrder is ignored in all current processing
That would be a problem.
> c) Lou: whats the difference between <sequence preserveOrder=“false”>, and <alternate>? i dont think preserveOrder makes much sense
It seemed to make good sense to me; I liked it. But if it's confusing,
then we need to supplement <alternate> and <sequence> with something
else which is neither of those things -- maybe <grabBag> or <anyOf>?
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