Richard Emberson wrote:
> Thats right, there is xml schema in  the instance document.
> Its a "neat" idea, making the schema instance self validating (or at
> least contains the
> missing schema needed for validation - and the schema appears in the
> instance right
> where the ref="s:schema" appears in the schema file)
> But neither alphaworks schema quality checker nor the xerces parser in
> validation
> mode will accept either the schema or the instance.

Xerces (and quality checker) implement the XML Schema Recommendation.
The operation you are referring to is a proprietary extension.

Xerces provides a mechanism to pre-parse (and validate) XML Schema
document. You can also set the pre-parsed Grammar objects on the parser
to tell parser to use those grammars to validate a document.
For more information, please read Grammar Cashing FAQ:
http://xml.apache.org/xerces2-j/faq-grammars.htm

Also, there is a property that allows you to specify a set of grammars
"http://apache.org/xml/properties/schema/external-schemaLocation":
http://xml.apache.org/xerces2-j/properties.html

Hope this helps. Let us know if you have any additional questions.
-- 
Elena Litani / IBM Toronto

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

Reply via email to