Re: Re: association of RELAX NG with a document

James Clark <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.