|
[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: redefining base element integer
From: Willi Weichselbaumer <williweichselbaumer@hotmail.com>
Date: Tue, 29 May 2007 12:42:53 -0700 Message-ID: <BAY119-W17F7C81B6687B8847010DEBE2F0@phx.gbl> To: <xmlschema-dev@w3.org> Hi Michael, thanks for your suggestion: <xs:simpleType name="emptyString"> <xs:restriction base="xs:string"> <xs:pattern value=""/> </xs:restriction> </xs:simpleType> <xs:simpleType name="myinteger"> <xs:union memberTypes="xs:integer xs:emptyString"/> </xs:simpleType> works well, but how do I do a redefine? <xs:redefine schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"> <xs:simpleType name="integer"> ... </xs:simpleType> </xs:redefine> no matter what I try it seems to be invalid. What I try to accomplish is that a valid integer can be an integer or an empty string. I want to do this wit some other data types as well. Thanks, Willi _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBREReceived on Tuesday, 29 May 2007 19:43:01 GMT |
Subscribe in XML format
|






