W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2005

RE: Versioning of XML Schema and namespaces

From: Michael Kay <mike@saxonica.com>
Date: Tue, 10 May 2005 08:56:56 +0100
To: <John.Hockaday@ga.gov.au>, <xmlschema-dev@w3.org>
Message-ID: <E1DVPc3-0008Lt-OW@bart.w3.org>

> What should
> an XML document instance that tells you what XSD to validate 
> it against look like? 

In my view, it should look something like this:

<?xml version="1.0"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               version="2.0">

The namespace tells you what standard vocabulary the document uses, and the
version attribute tells you what version of that standard is used.

The job of finding a suitable schema (or other tool) to verify that the
document does indeed conform to that standard is left entirely to the
recipient.

As has been said a number of times on this thread, the recipient is
validating the document because he doesn't trust the sender. So it makes no
sense at all to validate against a schema nominated by the sender.

Michael Kay
http://www.saxonica.com/
Received on Tuesday, 10 May 2005 07:57:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:50 GMT