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

>
> (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.

Dave


Dave

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