Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS3033: Multiple definition of element error. #1506

Open
MarkNicholls opened this issue Apr 8, 2024 · 0 comments
Open

FS3033: Multiple definition of element error. #1506

MarkNicholls opened this issue Apr 8, 2024 · 0 comments

Comments

@MarkNicholls
Copy link

Hello,

the xsd is too enormous and horrid to include (at least at this stage).

this is the full error

error FS3033: The type provider 'ProviderImplementation.XmlProvider' reported an error: Cannot read sample XSD from 'opendoc.xsd': System.Xml.Schema.XmlSchemaException: Multiple definition of element 'urn:oasis:names:tc:opendocument:xmlns:style:1.0:text-properties' 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.

now I assume what its saying is, you cant have more than 1 definition of an element, presumable because when I read the xml, the mapping needs to be able to identify a unique type? (without getting involved in any complex rule validation).

That's understandable, the irony is though that I probably don't want to read any documents I want to construct them from scratch, in which case the mapping from element to type doent need to be unique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant