[relaxng-user] Re: association of RELAX NG with a document

James Clark jjc at jclark.com
Fri Oct 24 23:12:06 ICT 2003


On Sat, 2003-10-25 at 01:40, David Tolpin wrote:

> My opinion is that this association should be
> obligatory once present and could not be overriden.

It's a basic tenet of RELAX NG that the schema is not inherent in the
document and that validation is a process that has two
independently-specifiable inputs.  Section 8 of the spec says: "A
conforming RELAX NG validator must be able to determine for any XML
document and for any correct RELAX NG schema whether the document is
valid with respect to the schema."  If I understand you correctly,
you're saying that if the document contains a particular processing
instruction, then there should not be a way to validate it against a
schema other than that specified in the processing instruction.  That's
clearly non-conformant. A conforming RELAX NG validator must allow you
to use any schema to validate a document, no matter what processing
instruction the document contains.

James




More information about the relaxng-user mailing list