In my XSD, I'm trying to use alternative
tag. For some reasons, I got this error in my IDE (PHPStorm) :
Invalid content was starting with with element 'xs:alternative' ...
XSD
<xs:complexType name="tableType">
<xs:sequence>
<xs:element type="columnType" name="column" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="keyType" name="key" maxOccurs="unbounded" minOccurs="0">
<xs:alternative test="@type='index'" type="keyIndexType"/>
<xs:alternative test="@type='unique'" type="KeyUniqueType"/>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="name" use="required"/>
</xs:complexType>
I saw I should not add something more to use the 1.1 xsd version but do I need something to support alternative
tag ?