[relaxng-user] Converting Relax-NG to Schema and DTD
David Tolpin
dvd at davidashen.net
Tue Jan 13 19:59:56 ICT 2004
>
> In XML DTD, text cannot be ordered with elements. Either the content is 'mixed',
> or it is not. Change occurences of:
>
> <element>
> <element/>
> <text/>
> </element>
>
> to
>
> <element>
> <mixed>
> <element/>
> </mixed>
> </element>
>
> Of course, in a transformation, not manually.
I was wrong, that is, not right enough.
<element>
<mixed><zeroOrMore><element/></zeroOrMore></mixed>
</element>
Since it is the only form of mixed content that is allowed in XML DTD.
(#PCDATA|foo)*
Should be automatically pre-processable.
David
More information about the relaxng-user
mailing list