Re: Correction: Restricting an anyType?

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.]

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

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