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: <5.1.0.14.1.20020327091649.05fdffd8@localhost>
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
elements:

	<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:complexType/>
	</xsd:element>
	<xsd:element name="AllPlates">
		<xsd:complexType/>
	</xsd:element>
	<xsd:element name="Automatic">
		<xsd:complexType/>
	</xsd:element>
</xsd:choice> 
Received on Wednesday, 27 March 2002 11:42:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:33 UTC