Please specify also the default value if not set. Maybe you can also specify the type as:

            <xsd:simpleType>
                <xsd:union memberTypes="xsd:integer xsd:string" />
            </xsd:simpleType>