[tei-council] rowing back on <mixedContent>
Sebastian Rahtz
sebastian.rahtz at it.ox.ac.uk
Fri Jul 4 14:19:36 EDT 2014
On 4 Jul 2014, at 19:13, Lou Burnard <lou.burnard at retired.ox.ac.uk> wrote:
> On 04/07/14 19:01, Sebastian Rahtz wrote:
>> <alternate minOccurs="2" maxOccurs="unbounded"> <textNode/> <elementRef key="b"/> <elementRef key="c"/> </alternate>
>
> To satisfy this content model, an element must contain at least two nodes. I can have two <b>s, or two <c>s, but I can't have two text nodes, because that would be indistinguishable from one text node.
>
> You can see why they invented @allowText.
but the model of
(x | y )* | ( text , b, c)+
which allows PCDATA only if its before b, c, not with x or y.
is not unreasonable, and impossible with @allowText
o what joy.
--
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