I received the next XSD bit from the client. This is part of an outdated scheme that spans dozens of files.
<xs:element name="stateProvinceName"> <xs:complexType mixed="true"> <xs:attributeGroup ref="xml:attlist.global-attributes"/> </xs:complexType> </xs:element>
I'm trying to figure out what they really want. There are no sub-elements, so what does this "xs: mixed" mean? should it be simpleContent or without content?
I told them that they should use a more standard design like
<xs:element name="stateProvinceName"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attributeGroup ref="xml:attlist.global-attributes"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element>
But they are not sure that it means the same thing. Both schemes accept
<stateProvinceName ID="345643">California</stateProvinceName>
and
<stateProvinceName ID="345643"/>
source share