[relaxng-user] Converting Relax-NG to Schema and DTD
jcowan at reutershealth.com
jcowan at reutershealth.com
Mon Jan 12 17:12:04 ICT 2004
David Tolpin scripsit:
> You are right. I thought trang would emit a more general pattern; I was wrong.
To give an indication of the problems, I ran trang on the published draft
at oasis-open: it gave 134 errors of 8 different kinds. Here are the
error messages related to DTD generation (trang version 2003-01-08):
approximating datatype "{0}" by "{1}"
approximating value by "{0}"
approximating datatype in content by "#PCDATA"
approximating choice of datatypes by "CDATA"
approximating empty attribute by "CDATA"
approximating mixed choice by repeated mixed choice
approximating "list" by "CDATA"
approximating attribute occurrence
include loop
illegal recursive reference
illegal content for "attribute" content
sorry, cannot handle this kind of "choice"
sorry, "externalRef" is not supported
sorry, cannot handle this kind of "group"
sorry, include depend
sorry, cannot handle this kind of "interleave"
sorry, cannot handle this kind of "mixed"
multiple definitions of "{0}" without a "combine" attribute
inconsistent values for the "combine" attribute
sorry, combining definitions with combine="choice" is not supported
sorry, nested grammars are not supported
sorry, cannot handle this kind of "oneOrMore"
sorry, cannot handle this kind of "optional"
sorry, "parent" is not supported
sorry, wildcards are not supported
sorry, cannot handle this kind of "zeroOrMore"
reference to undefined pattern
unrecognized datatype
sorry, cannot handle overrides inside "include"
sorry, not handled: duplicate declaration of element "{1}" from namespace "{0}"
other element declaration is here
sorry, ambiguous attribute choice not handled (attribute "{1}" from namespace "{0}")
"{0}" does not correspond to an ATTLIST declarations and so cannot be combined with "interleave"
And for the fun of it, here are the ones relating to XSD generation:
cannot convert datatype library "{0}"; using datatype "string"
reference to undefined pattern "{0}"
illegal recursion through pattern "{0}"
sorry, externalRef is not yet supported
sorry, nested grammars are not yet supported
parent reference with no applicable grammar
"start" in "include" does not override anything
definition of "{0}" in "include" does not override anything
multiple definitions of "{0}" without "combine" attribute
inconsistent "combine" attributes for definition of "{0}"
infinite loop including URI "{0}"
sorry, not supported: URI "{0}" included more than once
"attribute" using "anyName" must be repeated
"attribute" using "nsName" must be repeated
restriction violation: {0} contains "{1}"
"{0}" can contain typed data only inside a list
"{0}" cannot combine typed data with text or elements
grouping data is only allowed inside list
typed data cannot be combined with "interleave"
"mixed" cannot be applied to typed data
choice between attributes and children cannot be represented; approximating
cannot represent restriction on value of attributes matching wildcard; approximating
cannot represent required wildcard attribute; approximating
cannot represent an optional group of attributes; approximating
--
John Cowan <jcowan at reutershealth.com> http://www.ccil.org/~cowan
"One time I called in to the central system and started working on a big
thick 'sed' and 'awk' heavy duty data bashing script. One of the geologists
came by, looked over my shoulder and said 'Oh, that happens to me too.
Try hanging up and phoning in again.'" --Beverly Erlebacher
More information about the relaxng-user
mailing list