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

CodeAction to add missing required elements with RelaxNG #1418

Closed
JessicaJHee opened this issue Dec 16, 2022 · 0 comments · Fixed by #1429
Closed

CodeAction to add missing required elements with RelaxNG #1418

JessicaJHee opened this issue Dec 16, 2022 · 0 comments · Fixed by #1429
Assignees
Milestone

Comments

@JessicaJHee
Copy link
Contributor

JessicaJHee commented Dec 16, 2022

Given this RelaxNG schema: https://github.com/eclipse/lemminx/blob/main/org.eclipse.lemminx/src/test/resources/relaxng/tei_all.rng,
and this XML:

<?xml-model href="tei_all.rng"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
</TEI>

We get the following error:

Screenshot from 2022-12-16 12-30-00

It would be nice to provide a code action that inserts the required elements according to the schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants