--- In rng-users@yahoogroups.com <mailto:rng-users@yahoogroups.com> ,
"James Clark" <[EMAIL PROTECTED]> wrote:
>
>
> The warnings are nothing to worry about: XML Schema cannot represent
> all the things that RELAX NG can.  What does XMLSpy complain about? I
> believe Trang has a bug/limitation that it can sometimes generate
> content models that violate the Unique Particle Attribution or Element
> Declarations Consistent constraints of XML Schema Part 1 (at least
> there's an entry in my todo list to make Trang deal with this).  You
> might want to file a bug report.  Maybe there's a tool for XML Schema
> that can transform schemas so that they conform to these constraints.
>
> James
>


Here is the one of the complains XMLSpy gives.

The schema doesn't appear to be valid by itself (as a part of another
schema, it might still be OK).
  -Element 'form:list-value' is not consistent with element
'form:list-value'.
   --Error location: xs:schema / xs:element
   ---Details
    ----cos-element-consistent.
<http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/#cos-element-consist\
ent> 2: Both type definitions ('{anonymous}' and '{anonymous}') must
have the same name.

FYI, the similar error msg came up when I tried to compile the xsd
schema using System.XML.Schema.XmlSchemaSet.Compile() in .NET.

Exception Severity: Error
Multiple definition of element
'urn:oasis:names:tc:opendocument:xmlns:form:1.0:list-value' causes the
content model to become ambiguous. A content model must be formed such
that during validation of an element information item sequence, the
particle contained directly, indirectly or implicitly therein with which
to attempt to validate each item in the sequence in turn can be uniquely
determined without examining the content or attributes of that item, and
without any information about the items in the remainder of the
sequence.


I guess that TRANG has given some duplicated element name?? Now, I'm
trying to figure out from scratch comparing the "form:list-value" node
from the original RelaxNG schema to the one in the converted XSD file.
If I find some bug, I'll post it. Any suggestion is welcome. Thank you.

Reply via email to