W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 1999

International booleans proposal (con't)

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Mon, 15 Nov 1999 12:01:12 -0700
Message-ID: <61DAD58E8F4ED211AC8400A0C9B468734154C9@THOR>
To: "'xml-dev@ic.ac.uk'" <xml-dev@ic.ac.uk>, "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Oops, pressed wrong key which prematurely send last message.  To follow

Examples of use:

Swedish-only boolean 

<datatype name="swedishOnlyBoolean">
	<basetype name="boolean"/>
	<enumeration>
		<literal value="true">sant</literal>
		<literal value="false">falskt</literal>
	</enumeration>
</datatype>

--------------

Swedish and default boolean.  Accepts true and false in additional to
explicitly enumerated values since enumeration is open and true and false
are legal values for base type.

<datatype name="swedishSupportingBoolean">
	<basetype name="boolean"/>
	<enumeration model="open">
		<literal value="true">sant</literal>
		<literal value="false">falskt</literal>
	</enumeration>
</datatype>


--------------------------

Swedish, default, and 0/1 boolean

<datatype name="multiBoolean">
	<basetype name="boolean"/>
	<enumeration model="open">
		<literal value="true">sant</literal>
		<literal value="false">falskt</literal>
		<literal value="true">1</literal>
		<literal value="false">0</literal>
	</enumeration>
</datatype>

-----------------------

Numeric data type with symbolic names

<datatype name="symReal">
	<basetype name="real"/>
	<enumeration model="open">
		<literal value="3.1415926">pi</literal>
		<literal value="2.718">e</literal>
	</enumeration>
</datatype>
Received on Monday, 15 November 1999 14:03:22 UTC

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