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

xml.fileAssociations property does not work with DTD files #184

Closed
amasino opened this issue Sep 27, 2019 · 1 comment
Closed

xml.fileAssociations property does not work with DTD files #184

amasino opened this issue Sep 27, 2019 · 1 comment
Assignees
Labels
bug Something isn't working DTD
Milestone

Comments

@amasino
Copy link

amasino commented Sep 27, 2019

Adding a file association in settings.json using a DTD like the following:

[{"systemId": "http://w3.atsec/cctool/dtd/my-grammar.dtd",
"pattern": "ase_*.xml"}]

does not work.

The extension successfully matches the xml file (I set "xml.validation.noGrammar": "error" and there is no error when opening the file) but neither is the DTD existence verified nor the grammar is checked.

@angelozerr
Copy link
Contributor

angelozerr commented Sep 27, 2019

Indeed the xml file associations doesn't work with DTD. It works only with XSD. It's a limitation of Xerces, I created a bug for that https://issues.apache.org/jira/browse/XERCESJ-1711?filter=-2

@angelozerr angelozerr added bug Something isn't working DTD labels Jul 15, 2020
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 28, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
@angelozerr angelozerr added this to the 0.14.0 milestone Aug 28, 2020
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 28, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 28, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 28, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 28, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 31, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 31, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 31, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Aug 31, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to eclipse/lemminx that referenced this issue Aug 31, 2020
See redhat-developer/vscode-xml#184

Signed-off-by: azerr <azerr@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DTD
Projects
None yet
Development

No branches or pull requests

2 participants