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

XSD Schema Parse Error with namespaced attributes #4

Open
admonkey opened this issue Aug 9, 2016 · 0 comments
Open

XSD Schema Parse Error with namespaced attributes #4

admonkey opened this issue Aug 9, 2016 · 0 comments

Comments

@admonkey
Copy link

admonkey commented Aug 9, 2016

When I generate the XSD using this sample xml (renamed to sample.xml.txt for github's uploader)

./schema-learn -t xsd simple.xml > simple.xsd

Then try to validate it with xmllint

xmllint --noout --schema simple.xsd simple.xml

I get schema parser errors failing to compile


simple.xsd:33: element attribute: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}attribute', attribute 'name': 'dmd:lastModified' is not a valid value of the atomic type 'xs:NCName'.
simple.xsd:34: element attribute: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}attribute', attribute 'name': 'dmd:startDate' is not a valid value of the atomic type 'xs:NCName'.
simple.xsd:46: element attribute: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}attribute', attribute 'name': 'dmd:surveyId' is not a valid value of the atomic type 'xs:NCName'.
simple.xsd:50: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}complexType': The content is not valid. Expected is (annotation?, (simpleContent | complexContent | ((group | all | choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?)))).
WXS schema simple.xsd failed to compile

I think it has something to do with the namespaced attributes.

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