Re: Converting Relax-NG to Schema and DTD

David Tolpin <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
> 
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.