albanm / node-libxml-xsd

XSD validation for node.js using libxml.
70 stars 28 forks source link

XSD 1.1 #12

Closed iRyusa closed 8 years ago

iRyusa commented 8 years ago

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 an unbounded 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

albanm commented 8 years ago

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 !

iRyusa commented 8 years ago

Thanks for the answer, I guess we'll switch for a JSON validator then !

wking commented 6 years ago

For what it's worth, there's a 2016-05-03 libxml bug about this (no progress on the bug though).