wow sandy, nice answer!

i learned an important fact about the schema for schemas

but that fact doesnt make me happy. :-(

On Tue, 26 Mar 2002 [EMAIL PROTECTED] wrote:

> [John Utz]
> 
> > > Xerces does not allow you to validate a schema against Schema for
> > > Schemas.
> >
> > but it can do so at some point in the future, correct?
> 
> [Eddie Robertsson]
> 
> Just out of curiosity, why doens't Xerces allow you to validate a Schema
> against the schema for schemas?

[Sandy Gao]

> In fact, Xerces *can* validate a schema document against the schema for
> schemas. But you can't use that schema from the spec directly. The reason
> is that the schema for schemas (especially the part where built-in simple
> types are defined) is only for illustration purpose. (At least I think so.)
> The following is mentioned
> 
> "These definitions are for information only, the real built-in definitions
> are magic.  Note in particular that there is no type named 'anySimpleType'.
> The primitives should really be derived from no type at all, and
> anySimpleType should be derived as a union of all the primitives."

i am dismayed to discover that this is the case. i am very glad that you
pointed it out.

> Also all built-in types are, by definition, presented in every schema
> document. If you use the schema for schemas as a normal schema (use it for
> instance validation), then the built-in types shouldn't be declared again.
>
> So if you only want to check grammar errors of your schema document, you
> can first modify the schema for schemas (by removing all built-in simple
> type declarations), then validation your schema document against this
> modified schema.

i'll think about doing this. but it really *bugs* me that XMLSchema
requires me to do this! i feel that language that provides for the
existence of a schema for schemas should not require that the schema for
schemas be *modified* just so that i can use it to check other schemas!

another ax to grind for XMLSchema 1.1.... :-)

i have sooo much to learn.

tnx!

johnu
 
> Cheers,
> Sandy Gao
> Software Developer, IBM Canada
> (1-905) 413-3255
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to