-
Notifications
You must be signed in to change notification settings - Fork 82
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
XSD 1.1 - cannot validate with conditions #783
Comments
I think it is because we use Xerces which cannot support XSD 1.1. |
So is there anything what can we do? |
I worked long time ago to support XSD 1.1 in eclipse-lemminx/lemminx#515 but it is uses a non official Xerces version, I fear that there is no solution for the moment while Xerces doens't support XSD 1.1. |
Thank you very much, have a nice day 👍 |
Hello, I'm trying to use conditions in my XSD, because of different tags in elements.
<xs:element name="a" maxOccurs="unbounded">
<xs:alternative test="@type = 1" type="a1Type"/>
<xs:alternative test="@type = 1" type="a2Type"/>
</xs:element>
<xs:complexType name="a1Type">
<xs:sequence>
<xs:element name="name" />
<xs:element name="surname" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="a2Type">
<xs:sequence>
<xs:element name="name" />
<xs:element name="id" />
</xs:sequence>
</xs:complexType>
When i will drop that to W3C validator, it's valid. But in VS code with your extension not. It says this: s4s-elt-must-match.1: The content of 'a' must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)). A problem was found starting at: alternative.
The text was updated successfully, but these errors were encountered: