-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
rnc2rng failure #3
Comments
According to my reading of the spec, this is not a valid grammar. You should probably get rid of the top-level Yeah, error messages aren't that great yet. |
Error messages have been improved in 6682abb. Closing. |
I think the top-level Also I ran into this problem when trying to convert the schemas from the Nu Html Checker, for example this one. |
Hmm, okay. So I interpreted the "single element" constraint for I've started to extend the grammar to allow it to eventually deal with the SVG spec (that's certainly the largest schema I've thrown at rnc2rng so far!), but it looks like it might take some further work. |
@mthuurne so current rnc2rng master can parse a lot more of the SVG spec from the validator repo you pointed to (and also the original schema that started this issue). However, it's currently failing when trying to parse svg-extensibility.rnc. As far as I can tell, the use of annotation elements here is invalid per the spec. The spec says that a top-level annotation must always be surrounded by square brackets, and so an annotation element like Do you disagree with my interpretation of the spec? |
I have the following rnc schema:
Running rnc2rng version 2.0 yields:
I believe my rnc file is correct (but I can't be so sure because I cannot find a converter that would work). If the rnc file is incorrect, I would at least expect a better error message.
The text was updated successfully, but these errors were encountered: