Join GitHub today
rnc2rng failure #3
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.
I think the top-level
I ran into this problem when trying to convert the schemas from the Nu Html Checker, for example this one.
added a commit
Jul 9, 2018
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?