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

src-import.3.1 Highlighting for Namespace Attribute #1075

Closed
AlexXuChen opened this issue Jul 2, 2021 · 0 comments · Fixed by #1086
Closed

src-import.3.1 Highlighting for Namespace Attribute #1075

AlexXuChen opened this issue Jul 2, 2021 · 0 comments · Fixed by #1086
Assignees
Labels
bug Something isn't working validation
Milestone

Comments

@AlexXuChen
Copy link
Contributor

Given the following snippet, assuming foo.xsd exists in the same directory:

<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
	<xs:import namespace='BAD_NAMESPACE' schemaLocation='foo.xsd' />
	<xs:element name='foo'></xs:element>
</xs:schema>

the following behaviour will occur:
Screenshot from 2021-07-02 09-35-27
which throws src-import.3.1: The namespace attribute, 'BAD_NAMESPACE', of an <import> element information item must be identical to the targetNamespace attribute, 'null', of the imported document.

It would be better if the namespace attribute value was highlighted instead of the current default.

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