W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2002

XML Schema 1.1 request: additional default values

From: Brotherus, Robert <Robert.Brotherus@THERMOBIO.com>
Date: Wed, 27 Mar 2002 09:16:54 -0700
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
In XML Schema 1.0 one can define default values for eg. simple-type

	<xsd:element name="person" type="xsd:string" default="Jack"/>

It would, however, be useful for choice-modelgroup to be able to define
default element (by eg. its name) from the different alternatives:

<xsd:choice default="Plate">
	<xsd:element name="WellCount" type="xsd:positiveInteger"/>
	<xsd:element name="Plate">
	<xsd:element name="AllPlates">
	<xsd:element name="Automatic">
Received on Wednesday, 27 March 2002 11:42:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:59 UTC