W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2007

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:simpleType name="myinteger">
   <xs:union memberTypes="xs:integer xs:emptyString"/>
works well, but how do I do a redefine?
<xs:redefine schemaLocation="http://www.w3.org/2001/XMLSchema.xsd">
   <xs:simpleType name="integer">
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.
Discover the new Windows Vista
Received on Tuesday, 29 May 2007 19:43:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:12 UTC