rogalmic / vscode-xml-complete

XML editing helper (using XSD schemaLocation)
MIT License
28 stars 14 forks source link

Elements with same name (but not same schema) #16

Open nlips opened 5 years ago

nlips commented 5 years ago

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).

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

image

rogalmic commented 5 years ago

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

nlips commented 5 years ago

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.

AndersMad commented 5 years ago

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