> 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 ...".

Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                
                                    
                    <Indrajit.Chaudhuri@                                        
                                    
                    nokia.com>                 To:     <[EMAIL PROTECTED]>,     
                         
                                                <[email protected]>   
                                    
                    02/07/2002 11:10 AM        cc:                              
                                    
                    Please respond to          Subject:     Schema Question - 
parser behavior w.r.t schemaLocation  
                    xerces-j-dev                attribute                       
                                    
                                                                                
                                    
                                                                                
                                    
                                                                                
                                    



Hi,

The W3C XML Schema specification says that :
"....... The schemaLocation attribute contains pairs of values: The first
member of each pair is the namespace for which the second member is the
hint describing where to find to an appropriate schema document. The
presence of these hints does not require the processor to obtain or use the
cited schema documents, and the processor is free to use other schemas
obtained by any suitable means, or to use no schema at all. "

Does it mean that if I have used the xsi:schemaLocation attribute in my XML
and the schema is not present, then the parser should report "Validation
OK" or it should be silent or it should report error?

TIA for your help.

Regards,
Indrajit


---------------------------------------------------------------------
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