Re: Can schemas validate parts of an instance document?

From [1]:

"With a schema which satisfies the conditions expressed in Errors in 
Schema Construction and Structure (§7.1) above, the schema-validity of an 
element information item can be assessed."  And then goes on to say 
exactly how and against which declarations.  Note that it says you can 
validate an "element", not necessarily the root element of a document.

Net answer to your question:  conforming processors can be written to 
validate any element you like.  Not all processors need provide this 
service:  buy or use processors that validate the information you need 
validated.  By the way, the detailed rules give the processor a choice of 
validating the element against some particular identified element 
declaration, some particular identified complex type, or to use the 
mechanisms of strict, lax etc. to determine what to validate based on what 
declarations happen to be available.  All of this is explained at [1].

[1] http://www.w3.org/TR/xmlschema-1/#validation_outcome

------------------------------------------------------------------------
Noah Mendelsohn                                    Voice: 1-617-693-4036
Lotus Development Corp.                            Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------------

Received on Thursday, 8 February 2001 09:43:08 UTC