International booleans proposal (con't)

Arnold, Curt Curt.Arnold at hyprotech.com
Mon Nov 15 19:03:50 GMT 1999


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>

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list