[relaxng-user] Converting Relax-NG to Schema and DTD
Daniel Vogelheim
Daniel.Vogelheim at sun.com
Tue Jan 13 13:02:35 ICT 2004
Hi all,
Thanks for the feedback.
On the error messages from Trang: John Cowan posted a list of unique
message further down this thread. I did the same, running a newer
version of the schema through a newer version of Trang. I get ca. 160
errors reported, with the unique error messages being:
error: "{0}" 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 "{0}"
from namespace "{1}")
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, cannot handle this kind of "optional"
error: sorry, combining definitions with combine="choice" is not supported
error: sorry, not handled: duplicate declaration of element "{0}" from
namespace "{1}"
error: sorry, wildcards are not supported
Some of them I could work around, but others I have trouble seing the
problem right away.
As some have recommended, the best way to proceed is probably to work
through those errors and remove them through some scripted
normalization, or manually by changing the source.
For comparison, these are the message from the XSD conversion: (4 total)
warning: choice between attributes and children cannot be represented;
approximating
warning: cannot represent an optional group of attributes; approximating
warning: cannot represent required wildcard attribute; approximating
Note that these are all warnings about approximations, no errors. This
is exactly what I want. :-)
Sincerely,
Daniel
More information about the relaxng-user
mailing list