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

Martin Holmes mholmes at uvic.ca
Sat Jun 7 17:38:58 EDT 2014


On 14-06-07 02:37 PM, Lou Burnard wrote:
> 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>

I'm pretty sure that's the first thing I tried, but it didn't work; the 
resulting RNG disallowed <seg>just text</seg>. But I'll try it again...

Cheers,
Martin


More information about the tei-council mailing list