vscode-xml-complete icon indicating copy to clipboard operation
vscode-xml-complete copied to clipboard

Elements with same name (but not same schema)

Open nlips opened this issue 5 years ago • 3 comments

My schema contains two element definitions <Property>. Each one is valid in a specific context and have not the same attribute set (see attached file).

  • <Property> in <ElementA> must have a Identifier attribute.
  • <Property> in <ElementB> must have a Name attribute.

Identifier and Name attributes are suggested by xml-complete for the <Property> element in <ElementA>.

image

nlips avatar Sep 10 '19 13:09 nlips

This is somewhat related to #15, will need to be implemented.

rogalmic avatar Sep 10 '19 13:09 rogalmic

I think that fixing this bug will come from fixing issue #15. If xml-complete can clearly distinguish the contexts, it will no longer have difficulty pointing to the right element definition.

nlips avatar Sep 10 '19 13:09 nlips

I have made that to a "fork" that might get adopted.. it looks back in parent and resolves by that context as long as they (the parent) have different names (like your sample).. if names are the same but tree different - it will show shared list

AndersMad avatar Sep 10 '19 13:09 AndersMad