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

Re: What is lost if xsd:choice is jettisoned?

From: Michael Kay <mike@saxonica.com>
Date: Wed, 09 Mar 2011 00:13:13 +0000
Message-ID: <4D76C619.9040005@saxonica.com>
To: "Costello, Roger L." <costello@mitre.org>
CC: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>

> Suppose the xsd:choice element were jettisoned from the XML Schema specification. Would there be any loss of functionality? Put another way, can you provide a real-world, compelling example of a schema that uses xsd:choice which cannot be expressed using abstract element plus substitution groups?

You wouldn't be able to define a content model that allows either an A, 
or a B followed by a C. OK, that's not a real-world example.

Michael Kay
Received on Wednesday, 9 March 2011 00:13:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:18 UTC