RE: redefining base element integer

You can define this type in two ways:
 
(a) a list of xs:integer with minLength=0, maxLength=1
 
(b) a union of xs:integer with a type that allows only a zero-length string.
 
>From a validation perspective, these are identical. If you're using
schema-aware queries and stylesheets then (a) is probably the better choice,
especially when static typing is used.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Willi Weichselbaumer
Sent: 26 May 2007 00:29
To: xmlschema-dev@w3.org
Subject: redefining base element integer


Is it possible to redefine the base element integer to create a new type
integer that will also pass an empty string as a value?

Thanks for your help,

Willi   <http://gfx1.mail.live.com/mail/w1/ltr/i_send.gif> Send

  _____  

Explore the seven wonders of the world Learn more!
<http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE>  

Received on Saturday, 26 May 2007 08:21:27 UTC