[EMAIL PROTECTED] wrote:
> 
> > then the parser should report "Validation OK" or it should be silent or
> it should report error?
> 
> There are two ways of interpreting the word "report":
> 
> 1. The way described by the schema spec: PSVI. When a grammar is not
> available for validating the document, then it's not "assessed", and the
> validity is "unknown". So no error should be reported here.
> 
> 2. The way defined by parser interface: error handler. When a parser is
> "silent", it means "Validation OK". So the parser can't be silent in the
> case you mentioned. For the time being, Xerces chooses to report an error
> saying "not decl found for ...".

This brings up an issue that I recently posted to the list but got no
reponses to.  As you note, the current behavior is that validating an
instance doc that does not have any grammar associated with it causes an
error to be reported.  I was under the impression from Lisa Martin that
the IBM Toronto developers thought this does not conform to the W3C XML
Schema spec.  So the current JAXP 1.2 draft spec also specifies this
condition to not be an error.

In summary, the current implementation of Xerces2 does not conform to
the W3C XML Schema spec or the current JAXP 1.2 draft spec, which is a
bug that needs to be fixed.

Has this issue been fully resolved?

-Edwin

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

Reply via email to