Your xsd:element
tag is misplaced. You can't have xsd:element
as a child of xsd:contentType
.
You probably want to place it inside a group, such as a sequence:
<xsd:complexType>
<xsd:sequence>
<xsd:element ...>
...
...
You also have other problems in that XSD. You have to choose if you are going to have nested complexType
elements or if you are going to declare a simple type. You can fix it removing the type="xsd:string"
attributes from the nested xs:element
elements.
Finally you either refer to an attribute (which is not present in your XSD) or name it. Since you have a nested type, you probably don't want to reference it. So change <xsd:attribute ref="language">
to <xsd:attribute name="language">
.