-
Notifications
You must be signed in to change notification settings - Fork 181
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
Wildcard '##any' causes the content model to become ambiguous #482
Comments
The error message is a validation error that occurs when compiling the XML schema using Though the error message is pretty cryptic, I think what it means is that it's impossible to validate a document against the schema because of this part: <xs:complexType name="ColorDescriptor">
<xs:sequence>
<xs:element name="ColorCluster" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Color" type="tt:Color"/>
<xs:element name="Weight" type="xs:float" minOccurs="0"/>
<xs:element name="Covariance" type="tt:ColorCovariance" minOccurs="0"/>
<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> <!-- reserved for ONVIF -->
</xs:sequence>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="Extension" type="xs:anyType" minOccurs="0"/>
<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> <!-- reserved for ONVIF -->
</xs:sequence>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>
If you remove both of the above lines containing Another way to fix the schema is to set Third option I can think of is to make the owners of the schema aware of this ambiguity and have them fix it. Not sure if that's feasible of course. The organization that publishes the schema has a GitHub account https://github.com/onvif/ but I haven't investigated further if they accept issue reports in the schemas they publish. |
Hi,
First time user of this generator and I'm getting these warnings that seem to prevent the code gen from completing. I am currently trying to understand how I should modify the XSD file to resolve these issues.
Generates these logs:
Any ideas?
common.xsd can be found here: https://www.onvif.org/ver10/schema/common.xsd
The text was updated successfully, but these errors were encountered: