[tei-council] Wot is wrong with my ODD?

Lou Burnard lou.burnard at retired.ox.ac.uk
Sat Jun 7 17:37:22 EDT 2014


On 07/06/14 22:33, Martin Holmes wrote:
> Hi Sebastian,
>
> On 14-06-07 09:50 AM, Sebastian Rahtz wrote:
>> On 6 Jun 2014, at 23:18, Martin Holmes <mholmes at uvic.ca> wrote:
>>
>>> I'm trying to create a content model for <seg> using the new TEI ODD
>>> elements. I want to allow any of a small number of elements, with text
>>> mixed in, or just text.
>> i am not convinced that what you want is legal in XML
> 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?

Then all you need is

<elementSpec ident="seg" mode="change">
    <content allowText="true">
          <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"/>
    </content>
</elementSpec>





More information about the tei-council mailing list