Re: [xml-dev] Perplexing Invalid Schema

From
Timothy Cook <>
To
"\"" <>
Date
2012-09-11T15:14:16Z
ID
<CA+LLCXM4KZvu1Bp_o51LWwpeinRP-CDA_nk=>
Thread
Re: [xml-dev] Perplexing Invalid Schema
On Tue, Sep 11, 2012 at 11:44 AM, Michael Kay <> wrote:
>
> Saxon is rejecting the schema because type X is not a restriction of type
> Any; it is derived from Any, but some of the derivation steps involve
> Extension.
...
>
> 1 If B and D are not the same type definition, then the {derivation method}
> of D must not be in the subset.
>
> But the subset includes "extension", so derivation by extension isn't
> allowed; therefore it isn't a valid restriction.
>

Thanks for a great explanation.
I guess I should have been using Saxon when I started this project.  :-)

So, is there a way to group complexTypes similar to substitutionGroups
for elements?  Or is there some other way that people use to model an
object-oriented approach using schemas?

Regards,
Tim


-- 
============================================
Timothy Cook, MSc           +55 21 94711995
MLHIM http://www.mlhim.org
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
Skype ID == timothy.cook
Academic.Edu Profile: http://uff.academia.edu/TimothyCook