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

no validation or code completion on nested elements #177

Closed
tenluap opened this issue Oct 28, 2018 · 8 comments
Closed

no validation or code completion on nested elements #177

tenluap opened this issue Oct 28, 2018 · 8 comments
Labels
bug Something isn't working completion This issue or enhancement is related to completion support
Milestone

Comments

@tenluap
Copy link

tenluap commented Oct 28, 2018

Good day,
I was referred by @angelozerr to report the issue I have using Red hat vscode xml extension.

I created a custom xsd schema for a xml file. Am using Vscode with Red hat vscode-xml extension.

The schema works for only the top elements giving me all its attributes and validation from my xsd file but not on the nested elements in the xml file.

I used the same xsd schema file in Jetbrain Intellij and it worked fine.

Here is an example of my issue.
xml_schema_error

Please also find below are my xsd and xml file.
kll Page.zip

I get swirling lines on the top element every time I reload vscode. My fix for that was to remove or add attribute to page tag.

Please can you kindly resolve this issue. Thanks

@fbricon fbricon added this to the v0.0.2 milestone Oct 28, 2018
@fbricon fbricon added bug Something isn't working completion This issue or enhancement is related to completion support labels Oct 28, 2018
@angelozerr
Copy link
Contributor

Problem ame from tht use of xs:any. I have fixed the problem with completion.

For validation, it should work since Xerces is ised to validate the XML content. You should have the same validation between vscode-xml and Intellij (I think Intellij uses Xerces too).

@tenluap
Copy link
Author

tenluap commented Oct 29, 2018

@angelozerr thanks for the fast fix, I will try it out now.

@tenluap
Copy link
Author

tenluap commented Oct 29, 2018

Had some issue to build the lsp4xml but succeeded by changing the protocol to http due to ssl problem.
But after this fix and successful build. Am happy to say that it works like a charm. Thanks for this amazing support. I wish you all the best in all you future plan.

@angelozerr
Copy link
Contributor

Glad it works for you.

@tenluap
Copy link
Author

tenluap commented Oct 29, 2018

Sorry but have to reopen this again. The completion is working fine but not validation available anymore

@fbricon
Copy link
Contributor

fbricon commented Nov 2, 2018

Completion shows duplicates of nodes already present in the document:
screen shot 2018-11-02 at 1 40 33 pm

@fbricon fbricon reopened this Nov 2, 2018
@angelozerr
Copy link
Contributor

I cannot reproduce it? Have you again this problem @fbricon ?

@fbricon
Copy link
Contributor

fbricon commented Nov 3, 2018

Can no longer reproduce the duplicates issue. Closing

@fbricon fbricon closed this as completed Nov 3, 2018
angelozerr added a commit that referenced this issue Aug 22, 2019
angelozerr added a commit that referenced this issue Aug 22, 2019
angelozerr added a commit that referenced this issue Aug 23, 2019
angelozerr added a commit that referenced this issue Aug 23, 2019
fbricon pushed a commit that referenced this issue Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completion This issue or enhancement is related to completion support
Projects
None yet
Development

No branches or pull requests

3 participants