XSD 1.1 Conditional Type Assignment <alternative test=“”> to check if an element hasn't an attribute set?
I would like to ask if someone knows how to make an XSD 1.1 Conditional Type Assignment check if an element hasn't an attribute using the XPath query, e.g.: <!--inline alternative type definitions --> <element name="TimeTravel" type="TravelType"> <alternative test="@direction='Future'"> <complexType> <complexContent> <restriction base="TravelType" .... <!-- some past travel related elements go here --> </complexType> </alternative> <alternative test="@direction='Past'"> <complexType> <complexContent> <restriction base="TravelType" .... <!-- some future travel related elements go here --> <