-
Notifications
You must be signed in to change notification settings - Fork 28
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 #12
Comments
Hello, This small module only acts as a wrapper to libxml and it seems that xsd 1.1 support is not provided and not event planned for in the libxml project. So, bad news I'm afraid ! |
Thanks for the answer, I guess we'll switch for a JSON validator then ! |
For what it's worth, there's a 2016-05-03 libxml bug about this (no progress on the bug though). |
wking
added a commit
to wking/license-list-XML
that referenced
this issue
Mar 24, 2018
The Node tests were choking with: Entity: line 65: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': Invalid value for maxOccurs (must be 0 or 1). which is mentioned in [1]. Despite unbounded being in the 1.0 spec, maxOccurs was restricted to 1 inside <all> in XSD 1.0. The restriction was lifted in 1.1 [2]. The backing libxml issue is [3]. This commit works around the limitation by adding a wrapping <obsoletedByes> to mirror our existing <crossRefs> wrapping <crossRef>. In both cases, the wrapper adds no useful semantics, but we need it to get the tests passing until we can find an XSD 1.1 validator. [1]: albanm/node-libxml-xsd#12 [2]: https://www.w3.org/TR/xmlschema11-1/#ch_models [3]: https://bugzilla.gnome.org/show_bug.cgi?id=765936
wking
added a commit
to wking/license-list-XML
that referenced
this issue
Mar 24, 2018
The Node tests were choking with: Entity: line 65: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': Invalid value for maxOccurs (must be 0 or 1). which is mentioned in [1]. Despite unbounded being in the 1.0 spec, maxOccurs was restricted to 1 inside <all> in XSD 1.0. The restriction was lifted in 1.1 [2]. The backing libxml issue is [3]. This commit works around the limitation by adding a wrapping <obsoletedBys> to mirror our existing <crossRefs> wrapping <crossRef>. In both cases, the wrapper adds no useful semantics, but we need it to get the tests passing until we can find an XSD 1.1 validator. [1]: albanm/node-libxml-xsd#12 [2]: https://www.w3.org/TR/xmlschema11-1/#ch_models [3]: https://bugzilla.gnome.org/show_bug.cgi?id=765936
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
Thanks for this really cool lib, it allow us to handle the validation on github.com/mjmlio/mjml
Is there any way to use XSD 1.1, because we need
xs:any
with anunbounded
maxOccurs
?Because we're getting a :
Entity: line 192: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element': Invalid value for maxOccurs (must be 0 or 1).
Thanks for the help
The text was updated successfully, but these errors were encountered: