Open jgrodskiy-donlen opened 8 years ago
xs:extension
is already implemented. Let me know if you any issue with that.xsi:type
?Your example is almost working. The diet tag is not detected because it's overwritten by the diet attribute since both have the same name. I will consider this as a bug and try to fix for the next version.
So in that example, inside of zoo I should be able to make an "animal" or a landAnimal and see the appropriate options in the auto complete. In other editors the way that is done is with the xsi:type. The tag has the base name, and the xsi:type specifies the specific version and based on the xsi type it knows if there are other properties. If you need a better example or more explanation let me know.
<animal animalClass="" xsi:type="LandAnimal"> </animal>
Support for xsi:type and extending types in xml