-
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
Relax NG schema validation not working when DOCTYPE declaration missing with file association #831
Comments
can you please provide a sample xml file and its schema, reproducing the issue? |
I confirm the bug. A sample schema:
An xml-file with error: <?xml version="1.0" encoding="UTF-8"?>
<foo><bar>baz</bar></foo> An xml-file without error: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo>
<foo><bar>baz</bar></foo> The schema is associated to the file using an |
with file association Fixes redhat-developer/vscode-xml#831 Signed-off-by: azerr <[email protected]>
File association is not a standard association (it belongs to vscode-xml) . If you use xml-model association it should work. I started to create a PR eclipse-lemminx/lemminx#1393 to fix this issue. |
with file association Fixes redhat-developer/vscode-xml#831 Signed-off-by: azerr <[email protected]>
with file association Fixes redhat-developer/vscode-xml#831 Signed-off-by: azerr <[email protected]>
with file association Fixes redhat-developer/vscode-xml#831 Signed-off-by: azerr <[email protected]>
The following error message appears above the root tag in the xml file:
Document root element must match DOCTYPE root "null"
With this error the validation based on the schema sometimes works however the completion and hover does not work at all. It cannot either complete based on exisiting tags in the file, which is something the extension supports when schema validation is switched off.
I am using Relax NG compact schema and the issue still occurs when using the non-compact schema.
The text was updated successfully, but these errors were encountered: