[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? 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." 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. 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]
