W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2007

Re: What's a valid instance...James Clark

From: David Carver <kingargyle@gmail.com>
Date: Thu, 22 Mar 2007 10:14:56 -0400
Message-ID: <46028F60.1000003@gmail.com>
To: Pete Cordell <petexmldev@tech-know-ware.com>, xmlschema-dev@w3.org

> (I didn't really need to include the last line, but just love the word 
> 'bogosity!')
> By my understanding he is wrong on this.  The only valid document 
> (ignoring whitespace) would surely be:
>    <foo xmlns="http://www.example.com"/>
> Trouble is, James Clark is one of those people who I would imagine is 
> rarely wrong, so I thought I'd better ask!
Yes, James Clark is wrong.   Of course you need to take a look at the 
date of the email, which is 2002, and we are in 2007 now, so I suspect 
it was accurate at the time it was written.   Xerces correctly rejects 
the <bar/> element when validated with the schema example provided.

RelaxNG has it's advantageous and Schema has it's.  One tool may not fit 
all situations.   Closest would be schematron but it is too wordy and 
most people I know that deal with this aren't comfortable writing XPaths.


Received on Thursday, 22 March 2007 14:13:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:41 UTC