Here is a sample schema written in W3C XML Schema syntax.
<xsd:schema targetNamespace = "http://www.example.com/baz.xsd" xmlns = "http://www.example.com/baz.xsd" xmlns:xsd = "http://www.w3.org/2001/XMLSchema"> <xsd:element name="a" type="t"/> <xsd:simpleType name="b"> <xsd:list itemType="xsd:integer"/> </xsd:simpleType> <xsd:complexType name="t"> <xsd:attribute name="b" type="xsd:string"/> <xsd:attribute name="c" type="b" use="optional"/> </xsd:complexType> <xsd:complexType name="u"> <xsd:complexContent> <xsd:extension base="t"> <xsd:choice> <xsd:element name="d"> <xsd:complexType> <xsd:sequence> <xsd:element name="a" type="xsd:string" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="e" type="xsd:string"/> </xsd:choice> </xsd:extension> </xsd:complexContent> </xsd:complexType> </xsd:schema>