W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

Re: Correction: Restricting an anyType?

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 21 Feb 2002 10:06:47 +0000
Message-ID: <19489286757.20020221100647@jenitennison.com>
To: Simon.Cox@csiro.au
CC: xmlschema-dev@w3.org
Hi Simon,

> In the following schema I use an anyType element to head a
> substitutionGroup. I use this in a content model for ValType, with
> unlimited cardinality.
> I define a complexType and two elements based on it in the
> substitutionGroup. Then I try to derive IdentifiersPropertyType
> containing these, by restriction from ValType.
> Spy says OK, but Xerces (via SQC) says this is illegal.  

I tried it with Xerces C++ 1.6.0 and it validated just fine. It looks
OK by eye, but then derivation by restriction involving substitution
groups is one of the more fuzzy areas of the spec, so it might be a
matter of interpretation.

[BTW, should identifiers be in the gml:_val substitution group rather
than the gml:_property substitution group? That would make the
substitution group hierarchy match the type hierarchy.]



Jeni Tennison
Received on Thursday, 21 February 2002 05:06:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:59 UTC