[tei-council] rowing back on <mixedContent>
Sebastian Rahtz
sebastian.rahtz at it.ox.ac.uk
Fri Jul 4 14:01:32 EDT 2014
On 4 Jul 2014, at 18:55, Lou Burnard <lou.burnard at retired.ox.ac.uk> wrote:
>
> [of course, if you didnt have those pesky @minOccurs values, this would just be plain old mixed content (text|x|y|b|c)*]
>
its also valid to say
<xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="x"/>
<xs:element ref="y"/>
</xs:choice>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="b"/>
<xs:element ref="c"/>
</xs:sequence>
</xs:choice>
by the way.
> In Pure, would we express this as
>
> <content>
> <alternate allowText="true">
> <alternate minOccurs="1" maxOccurs="unbounded">
> <elementRef key="x"/>
> <elementRef key="y"/>
> </alternate>
> <alternate minOccurs="2" maxOccurs="unbounded">
> <elementRef key="b"/>
> <elementRef key="c"/>
> </alternate>
> </alternate>
>
> or
>
> <content>
> <alternate >
> <textNode/>
> <alternate minOccurs="1" maxOccurs="unbounded">
> <textNode/>
> <elementRef key="x"/>
> <elementRef key="y"/>
> </alternate>
> <alternate minOccurs="2" maxOccurs="unbounded">
> <textNode/>
> <elementRef key="b"/>
> <elementRef key="c"/>
> </alternate>
> </alternate>
>
>
just
<content>
<alternate >
<alternate minOccurs="1" maxOccurs="unbounded">
<textNode/>
<elementRef key="x"/>
<elementRef key="y"/>
</alternate>
<alternate minOccurs="2" maxOccurs="unbounded">
<textNode/>
<elementRef key="b"/>
<elementRef key="c"/>
</alternate>
</alternate>
</content>
surely
--
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