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

Fixed error range for s4s-elt-invalid-content.3 #496

Closed
angelozerr opened this issue Jul 2, 2019 · 0 comments · Fixed by #497
Closed

Fixed error range for s4s-elt-invalid-content.3 #496

angelozerr opened this issue Jul 2, 2019 · 0 comments · Fixed by #497
Assignees
Labels
bug Something isn't working validation XSD
Milestone

Comments

@angelozerr
Copy link
Contributor

angelozerr commented Jul 2, 2019

With the given XSD file:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:element name="project" type="xs:string"></xs:element>
	<xs:import ></xs:import>
</xs:schema>

xs:import should be higlighted as error with message:

s4s-elt-invalid-content.3: Elements of type 'import' cannot appear after declarations as children of a <schema> element.

We could add a code action to remove this xs:import element.

@xorye xorye self-assigned this Jul 2, 2019
@angelozerr angelozerr added this to the v0.8.0 milestone Jul 3, 2019
@angelozerr angelozerr added bug Something isn't working validation XSD labels Jul 23, 2019
@angelozerr angelozerr changed the title Error range for s4s-elt-invalid-content.3 Error range for s4s-elt-invalid-content.3 Jul 23, 2019
@angelozerr angelozerr changed the title Error range for s4s-elt-invalid-content.3 Fixed error range for s4s-elt-invalid-content.3 Jul 23, 2019
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 XSD
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants