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

ValidationTest test failed #2

Closed
quaff opened this issue Feb 17, 2014 · 1 comment
Closed

ValidationTest test failed #2

quaff opened this issue Feb 17, 2014 · 1 comment

Comments

@quaff
Copy link
Contributor

quaff commented Feb 17, 2014

Running org.eaxy.usage.ValidationTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.189 sec <<< FAILURE!

Tests in error:
shouldAcceptValidXml(org.eaxy.usage.ValidationTest): cvc-complex-type.3.2.2: Attribute 'role' is not allowed to appear in element 'msg:recipient'.

@jhannes
Copy link
Owner

jhannes commented Feb 18, 2014

Thanks for reporting this. The issue was due to differences between the Java 1.7 parser (which was in my classpath) and Xerces 2.9.2, which was in Maven's.

There's a deeper problem here, though: I was trying to write an example of the form:

<msg:recipient msg:type="email" role="cc" />

The "role" attribute is unqualified. I was unable to write an XSD that Xerces would accept for this. Do you know enough about XSD to help?

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

2 participants