Skip to content
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

Adjust error range for RelaxNG "not allowed yet" when there is choice #1459

Closed
datho7561 opened this issue Jan 24, 2023 · 1 comment · Fixed by #1503
Closed

Adjust error range for RelaxNG "not allowed yet" when there is choice #1459

datho7561 opened this issue Jan 24, 2023 · 1 comment · Fixed by #1503
Assignees
Labels
bug Something isn't working validation
Milestone

Comments

@datho7561
Copy link
Contributor

Given the following .rng:

<grammar xmlns="http://relaxng.org/ns/structure/1.0"
  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <start>
    <ref name="rootElt" />
  </start>
  <define name="rootElt">
    <element name="root">
      <choice>
        <element name="elementA">
          <text />
        </element>
        <element name="elementB">
          <text />
        </element>
      </choice>
      <element name="element2">
        <text />
      </element>
    </element>
  </define>
</grammar>

and the following XML:

<?xml-model href="notAllowedYet.rng"?>
<root>
  <element2></element2>
</root>

The error code is listed as to_implement, and the error range doesn't select the start tag of element2.

@datho7561 datho7561 added bug Something isn't working validation labels Jan 24, 2023
@datho7561
Copy link
Contributor Author

@JessicaJHee if you are interested, I think this could be a good issue to fix for this sprint. Most of the other issues I found that I think should be fixed for 1.0 were trivial to fix (mostly NPEs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants