how interpretation churned elements xml schema same name opposite charge value allowed?


i emanate xml schema brick xml, i shorten values "name" attribute, cost request wholly instance certified any week day:



<a>
<day name="monday" />
<day name="tuesday" />
<day name="wednesday" />
</a>


i have attempted this:



 <xs:complextype name="a">
<xs:sequence>
<xs:element name="day" minoccurs="1" maxoccurs="1">
<xs:complextype>
<xs:attribute name="name" use="required">
<xs:simpletype>
<xs:restriction base="xs:string">
<xs:enumeration value="monday" />
</xs:restriction>
</xs:simpletype>
</xs:attribute>
</xs:complextype>
</xs:element>
<xs:element name="day" minoccurs="1" maxoccurs="1">
<xs:complextype>
<xs:attribute name="name" use="required">
<xs:simpletype>
<xs:restriction base="xs:string">
<xs:enumeration value="tuesday" />
</xs:restriction>
</xs:simpletype>
</xs:attribute>
</xs:complextype>
</xs:element>
</xs:sequence>
</xs:complextype>


but xml schema validator obscure says blunder "multiple elements name 'day', opposite types, seem denote group.".



is there any way?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?