Open GoogleCodeExporter opened 9 years ago
[deleted comment]
Here's an alternative approach that eliminates the group definition and relies
exclusively on element substitution:
<element name="abstractAltitudeMode" abstract="true"
type="kml:AltitudeModeBaseType"/>
<simpleType name="AltitudeModeBaseType">
<restriction base="string" />
</simpleType>
<element name="altitudeMode" type="kml:StandardAltitudeModeEnumType"
default="clampToGround" substitutionGroup="kml:abstractAltitudeMode"/>
<simpleType name="StandardAltitudeModeEnumType">
<restriction base="kml:AltitudeModeBaseType">
<enumeration value="clampToGround"/>
<enumeration value="relativeToGround"/>
<enumeration value="absolute"/>
<enumeration value="clampToSeaFloor"/>
<enumeration value="relativeToSeaFloor"/>
</restriction>
</simpleType>
See ns1a.xsd for the amended application schema that declares additional
values. Note that in all cases the enum types derive from
kml:AltitudeModeBaseType.
Original comment by rjmart...@gmail.com
on 2 Sep 2014 at 5:54
Attachments:
Original issue reported on code.google.com by
rjmart...@gmail.com
on 29 Aug 2014 at 3:57Attachments: