Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Understanding Restrictions on Groups

From: "Michael Kay" <mike@--------.--->
To: "'Henry S. Thompson'" <ht@---.--.--.-->, "'Eliot Kimber'" <ekimber@---------------.--->
Date: 6/26/2007 2:16:00 PM
> The motivation is to provide an invariant rather like that of 
> object-oriented programming languages:  any valid member of a 
> type defined by restriction is also a valid member of the 
> type defined by its base.

I think that what this demonstrates is that's there's a set of use cases
where what people want is "a schema that's the same as X except for
difference D", with no constraints on the nature of the difference D - it
might be making a mandatory element optional, or adding values to an
enumeration, or changing something from float to double.

People imagine that's what xs:redefine was designed for, and perhaps it
should have been. Rather like overriding in XSLT, come to think of it - no
constraints requiring compatibility with whatever it is you are overriding.

Michael Kay
http://www.saxonica.com/


From EKimber@i... Tue Jun 26 12:51:45 2007
R


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent