Re: Classroom critique of XML Schema 1.1

Michael Kay <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
> One student made the following remark after learning of the restrictions on<assert>  and<alternative>  and the inheritable attributes:
>
>     I see no reason for using XML Schema 1.1 since
>     I can do everything (and more) using the combination of
>     XML Schema 1.0 and Schematron. Plus, with
>     Schematron I get friendly, user-defined
>     diagnostic messages, which I don't get from
>     either XML Schema 1.0 or 1.1
>
> How would you respond to that? What does XML Schema 1.1 give that can't already be obtained using XML Schema 1.0 and Schematron?
>

You simply have to look at all the messages that ask "How do I write a 
schema to do X?" and the answers that say "In XSD 1.0 you can't, but in 
XSD 1.1 you can do it like this:...". That's your answer.

Of course XSD 1.1 assertions don't give you any validation capability 
that can't already be achieved using XSD 1.0 + Schematron, or XSD 1.0 + 
XSLT, or XSD 1.0 + Java. But (a) no-one wants to use two technologies if 
one will do, and (b) XSD is not only about validation.

Michael Kay
Saxonica
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.