Re: XML Schema language version

On Oct 2, 2013, at 2:12 PM, Michael Kay wrote:

> I think it would be a creative but perfectly reasonable interpretation of the XSD 1.1 specification to advise users to set vc:minVersion="1.0" or vc:minVersion="1.1" or vc:maxVersion="1.0" on the xs:schema element to indicate whether they expect to use a 1.0 processor or a 1.1 processor for the schema, and for an IDE such as oXygen to use this attribute when selecting a processor to run.
> 
> See http://www.w3.org/TR/xmlschema11-1/#cip


That's an elegant idea, much better than the vague notions that were
floating around in my mind's eye of using the xml-model PI with
a new pseudo-attribute like 

  version="http://www.w3.org/XML/XMLSchema/v1.0"

or

  version="http://www.w3.org/XML/XMLSchema/v1.1"

I think vc:minVersion and vc:maxVersion are nicer.

To be specific, I think 

  vc:minVersion="1.0" should be taken to mean a 1.0 or a 1.1
  processor is fine for validations using this schema, but an
  editor like Oxygen should check that the schema document
  uses only 1.0 features, or that any 1.1 features are protected 
  by an appropriate version-control attribute, like 
  vc:minVersion="1.1".

  vc:maxVersion="1.0" should mean that ONLY a 1.0 
  validator should be used for validation, and that no 1.1
  features should be included at all (even with a
  version-control attribute).

  vc:minVersion="1.1" should mean that a 1.1 (or higher, if
  that day were ever to come) processor should be used for
  validation, and that an editor should check that only 1.1
  features are used.

Michael

-- 
****************************************************************
* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com 
* http://cmsmcq.com/mib                 
* http://balisage.net
****************************************************************

Received on Wednesday, 2 October 2013 20:38:39 UTC