[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>
RE: redefining base element integer
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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.