Re: Converting Relax-NG to Schema and DTD

David Tolpin <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
> > or it is strange.
> 
> Jing reports no errors.

Your version of trang is outdated, the older version had more bugs. trang-20030619
reports 9 kinds of errors. Below is sed 's/^[^ ]*//'|sort|uniq  of his output.

The message about ruby-style is probably a bug, since everything looks good (or am I
missing something?) Other too combine attributes and non-attributes as interleave,
cannot be done in DTD, but I don't think it is needed in the grammar either.

Ambigious attribute choice are attributes with the same name in alternatives. Can be
factored out easily through preprocessing of the grammar (with XSLT).

And so on. Most things seem very easy to filter out and generalize with a stylesheet.

 error: "ruby-style" does not correspond to an ATTLIST declarations and so cannot be combined with "interleave"
 error: "text-common-ref-content" does not correspond to an ATTLIST declarations and so cannot be combined with "interleave"
 error: "text-notes-configuration-content" does not correspond to an ATTLIST declarations and so cannot be combined with "interleave"
 error: other element declaration is here
 error: sorry, ambiguous attribute choice not handled (attribute "num-format" from namespace "http://openoffice.org/2000/style")
 error: sorry, ambiguous attribute choice not handled (attribute "value" from namespace "http://openoffice.org/2000/text")
 error: sorry, ambiguous attribute choice not handled (attribute "value-type" from namespace "http://openoffice.org/2000/text")
 error: sorry, cannot handle this kind of "choice"
 error: sorry, cannot handle this kind of "group"
 error: sorry, cannot handle this kind of "interleave"
 error: sorry, combining definitions with combine="choice" is not supported
 error: sorry, not handled: duplicate declaration of element "a" from namespace "http://openoffice.org/2000/drawing"
 error: sorry, wildcards are not supported
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.