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

XML Schema 1.1 not supported #18

Open
dlastov opened this issue Jan 5, 2019 · 0 comments
Open

XML Schema 1.1 not supported #18

dlastov opened this issue Jan 5, 2019 · 0 comments

Comments

@dlastov
Copy link

dlastov commented Jan 5, 2019

I get following error report when I try to open the schema below:

Unknown node (8, 21): vc:minVersion
Unknown attribute (8, 21): vc:minVersion
Unknown node (24, 4): xs:alternative
Unknown element (24, 4): xs:alternative
Unknown node (25, 4): xs:alternative
Unknown element (25, 4): xs:alternative

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="test"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	targetNamespace="test"
	elementFormDefault="qualified"
	attributeFormDefault="unqualified"
	xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
	vc:minVersion="1.1"
	>
	<xs:complexType name="myType_v1">
		<xs:sequence>
			<xs:element name="description" type="xs:string"/>
		</xs:sequence>
		<xs:attribute name="version" type="xs:integer" use="required" fixed="1"/>
	</xs:complexType>
	<xs:complexType name="myType_v2">
		<xs:sequence>
			<xs:element name="new_description" type="xs:string"/>
		</xs:sequence>
		<xs:attribute name="version" type="xs:integer" use="required" fixed="2"/>
	</xs:complexType>
	<xs:element name="root">
		<xs:alternative test="@version=1" type="myType_v1"/>
		<xs:alternative test="@version=2" type="myType_v2"/>
	</xs:element>
</xs:schema>

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