-
Notifications
You must be signed in to change notification settings - Fork 92
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
Can't use XML catalog with XSD files that have <xs:include /> #914
Comments
@rnathuji thank a lot for reporting this issue and give us a very detailed information. Is there any chance to have a PR and tests with your suggestion fix? |
@angelozerr - Sure, I'd be happy to help with a PR. I may, however, need some guidance due to my lack of familiarity 😅 . I've created a draft PR for the time being which contains the quick and dirty change that allowed things to work while debugging / testing. I'd definitely welcome feedback as far as:
I can also start looking at the test additions, but LMK if there are any major course corrections that should be made in terms of the implementation approach. |
Fixes eclipse-lemminx#914 Signed-off-by: azerr <azerr@redhat.com>
Fixes eclipse-lemminx#914 Signed-off-by: azerr <azerr@redhat.com>
Fixes eclipse-lemminx#914 Signed-off-by: azerr <azerr@redhat.com>
Fixes eclipse-lemminx#914 Signed-off-by: azerr <azerr@redhat.com>
Fixes eclipse-lemminx#914 Signed-off-by: azerr <azerr@redhat.com>
Fixes eclipse-lemminx#914 Signed-off-by: azerr <azerr@redhat.com>
Fixes #914 Signed-off-by: azerr <azerr@redhat.com>
While using the XML catalog with XSD configuration with the
vscode-xml
plugin, we encountered an issue where XSD files that utilize<xs:include />
tags don't work. Take, for example, the followingtest.xml
withtest.xsd
which includestest-include.xsd
:test.xml
test.xsd
test-include.xsd
With a catalog definition as follows:
test_catalog.xml
Opening
test.xml
results in:A "merged"
test-merged.xsd
, however, works just fine:test-merged.xsd
It seems this may be due to the way resolution occurs in
XMLCatalogResolver
based upon the namespace when invoked here. As a quick test to help confirm the root cause, we did find that making a similar change as the one in this related SO post toresolveEntity
inXMLCatalogResolverExtension.java
seemed to correct the problem.The text was updated successfully, but these errors were encountered: