Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: block="substitution"

From: Zafar Abbas <Zafar.Abbas@---------.--->
To: Michael Kay <mike@--------.--->, <xmlschema-dev@--.--->
Date: 1/19/2007 5:58:00 AM
I agree with your analysis. The declaration of F just doesn't become a
member of the substitution group of E; the declaration itself is valid
per spec. But you are right that this looks more like an issue which is
better detected at schema compilation time as no one will ever be able
to substitute E with F.

-----Original Message-----
From: xmlschema-dev-request@w... [mailto:xmlschema-dev-request@w...]
On Behalf Of Michael Kay
Sent: Saturday, December 09, 2006 8:18 AM
To: xmlschema-dev@w...
Subject: block="substitution"


As far as I can see the following schema is valid:

<xsd:element name="E" type="A" block="substitution" />

<xsd:element name="F" type="A" substitutionGroup="E" />

The effect of the "block" is not to make the declaration of F invalid:
instead, it effectively causes the attribute substitutionGroup="E" to =
be
ignored, so that an instance that attempts to use F in place of E will
be
invalid.

Is this analysis correct? On the surface, this seems to be detecting an
error at run time that would be better detected at compile time.

Can someone explain the rationale?


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



From ratesnow@m... Sun Jan 21 23:43:41 2007
Received: from 


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