-
Notifications
You must be signed in to change notification settings - Fork 82
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
Interaction between XInclude and <?xml-model>
PI
#1021
Comments
To be honnest with you, I don't know. RelaxNG validation is done with https://github.com/relaxng/jing-trang library. I suggest that you report your issue at https://github.com/relaxng/jing-trang |
Thank you for your reply. When I use
My guess is that the information from the As I don't think |
Indeed you are right. Badly I have no time to investigate your issue, any contribution are welcome. If you need some help, please ask me. |
I'll try to look into the LemMinX code. In the meantime, I found a temporary fix, by adding an (Another fix would be to use file association.) |
It should be really cool! I will try to do my best to assist you. |
I've looked at the LemMinX code. The fix is quite trivial. As stated in the Section 3 of the "Associating Schemas with XML documents" Group Note, for a PI with the Contrary to this specification, the code at https://github.com/eclipse/lemminx/blob/main/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/extensions/xerces/xmlmodel/XMLModelHandler.java#L124 looks anywhere in the document. To fix that, one simply needs to add a However, I'm unwilling to sign the Eclipse Contributor Agreement and give out my real name. If anyone who has signed this agreement wishes to commit the bugfix, they're free to do so. |
Thanks @koh6uawi for your feedback! |
Fixes redhat-developer/vscode-xml#1021 Signed-off-by: azerr <azerr@redhat.com>
@koh6uawi I created a PR at eclipse-lemminx/lemminx#1670 by following your suggestion and write a test. Let's see if CI build is working again. |
Thank you very much! |
I am using the VSCode XML extension for a project using XInclude and a RelaxNG schema.
I faced the same problem as in the 2nd question of #845, so I ended up using the following structure:
common.rnc
document.rnc
chapter.rnc
document.xml
chapter{1,2}.xml
It works well when I only include one chapter XML file, but when I try to include both, the extension raises the following error:
It also starts working again as soon as I remove the
<?xml-model>
processing instruction from one of the files.Is it the expected behaviour?
The text was updated successfully, but these errors were encountered: