Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: emptiable content in particle inheritance

From: "Michael Kay" <mike@--------.--->
To: "'G. Ken Holman'" <gkholman@----------------.--->, <xmlschema-dev@--.--->
Date: 2/2/2009 9:25:00 PM
> I think it is explicit.
> 
> http://www.w3.org/TR/xmlschema-1/#declare-element states:
> 
>    "the corresponding schema components are as follows (unless
>     minOccurs=maxOccurs=0, in which case the item corresponds
>     to no component at all):"
> 

Ah yes, thanks - I knew it had to be there somewhere!

And I see that the same rule is present for other kinds of particle as well.

One does wonder why maxOccurs="0" is allowed, if it has to be treated as an
exception to the normal rules. I guess it's analogous to use="prohibited" on
attributes, which also causes some odd anomalies.

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


From tobias.koenig@t... Tue Feb 03 09:57:04 2009
Recei


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