Re: choice for attributes?

Hi Scot,

Scot Nielsen wrote:

> Thanks for this Jeni.
>
> Can we then assume that many schema rules and constraints are
> validated solely by the parser and not the schema.xsd? For example an
> <element> declaration must have either a type or ref attribute but not
> both. I can find no constraint in schema.xsd to enforce this so it
> must be the parser right?
>
That's correct. Most schema processors won't actually use the
XMLSchema.xsd schema to validate the schema you pass to it. Instead it
will have a built in schema structure that gets used for validation.

Cheers,
/Eddie

Received on Wednesday, 23 January 2002 17:46:31 UTC