-
Notifications
You must be signed in to change notification settings - Fork 103
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
W3C schema causes 'Unexpected event, expected end-tag' #56
Comments
Hi, Yes, it is related to the problem from 2009. The schema for xslt imports the schema for XML-schema (XMLSchema.xsd). That schema uses the 'notation' feature, which is not supported. What you can easily do is remove some of these imports. They are probably only referred to via "xs:any" types. This means that you will still be able to parse the XML documents, but there will be no value for these "any" elements. That means that you are fine if you are not interested in these values, or of they do not occur. If you do really need these values, then you could try what I did for SOAP: remove the reference to XML Schema (so use an edited version of the xslt schema), compile it and then add a simplified version of XMLSchema.xsd to the result using the (undocumented) function erlsom:add_xsd_model() - see here for an example. In any case you have to be aware that the result of parsing an XML that has such a complex schema will be a pretty complicated data structure, so getting the information that you need from that will probably not be easy. Good luck, |
Thanks for the quick response, @willemdj 😄 Thanks for the suggestions. I tried removing the imports, but it looks like the schema is relying on more than the Does
Couldn't agree more, but it's unavoidable 😢 Thanks again! |
If you can let me know exactly which XSD/standard you are trying to use, I can take a closer look and maybe make some more specific suggestions. |
I just took another look, and I think that I wasn't going far enough down the chain of |
Everything appears good with |
Hello,
I'm experiencing an issue when compiling XSD that includes some of the W3C schema.
These appear to be the lines that break compilation:
I also get the same error when I download and attempt compilation on those schemas directly.
This may be related to #45 and this exchange from 2009. If that is the case, has a workaround found?
Thanks! 😄
The text was updated successfully, but these errors were encountered: