<!– 3.2.3 : 3.2

type and <simpleType> must not both be present

–> <schema xmlns=“www.w3.org/2001/XMLSchema” targetNamespace=“foo” xmlns:foo=“foo”>

<attribute name="bar" type="string">            
        <simpleType>
                <restriction base="string">
                        <maxLength value="20"/>
                </restriction>
        </simpleType>
</attribute>    

<element name="foo"/>

</schema>