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: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=QBRE
Received on Tuesday, 29 May 2007 19:43:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:59 GMT