W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

Re: Can schemas validate parts of an instance document?

From: <Noah_Mendelsohn@lotus.com>
Date: Thu, 8 Feb 2001 09:31:14 -0500
To: Eddie Robertsson <eddie@allette.com.au>
Cc: tom.gaven@xmls.com, xmlschema-dev@w3.org
Message-ID: <OFF5921F4B.AF482621-ON852569ED.005071A1@lotus.com>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:50 UTC