OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   XML Schema enum and boolean

[ Lists Home | Date Index | Thread Index ]
  • From: "Anders W. Tell" <anderst@toolsmiths.se>
  • To: xml-dev@ic.ac.uk, ricko@allette.com.au
  • Date: Thu, 11 Nov 1999 13:31:59 +0100

Food for thoughts:

Add a bindings concept to XML schema to handle boolean ,
enumeration data types and language issues.

An binding is a sequence of pairs of value space expression and lexical
where each value space expression must express a subspace (or equal) of
data types value space. The order of the pairs is important since it
defines a confliction
resolution order.

<datatype name=”boolean”>
  <basetype name=”integer”/>

<datatype name=”myBoolean”>
    <basetype name=”boolean”/>
     <bind><value> 1 <value>  <pattern> [Tt][Rr][Ue][Ee]</pattern>
     <bind><value> 0 <value>  <pattern> [Ff][Aa][Ll][Ss][Ee] </pattern>
     <bind><value> 1 <value>  <literal> on </literal> </bind>
     <bind><value> 0 <value>  <literal> off </literal> </bind>

<-- Here the value space is the same but more acceptable lexical resp.
<datatype name=”mySwedishBoolean”>
    <basetype name=”myBoolean”/>
     <bind><value> 1 <value>  <literal> sant </literal> </bind>
     <bind><value> 0 <value>  <literal> falskt </literal> </bind>

<-- Enumeration -->
<datatype name=”enum”>
  <basetype name=”integer”/>

<datatype name=”myByteColor”>
  <basetype name=”enum”/>
     <bind><value> 0 <value>  <literal> white </literal> </bind>
     <bind><value> 255 <value>  <literal> black </literal> </bind>

<datatype name=”mySwedishByteColor”>
  <basetype name=”myByteColor”/>
     <bind><value> 0 <value>  <literal> vit </literal> </bind>
     <bind><value> 255 <value>  <literal> svart </literal> </bind>

/  Financial Toolsmiths AB  /
/  Anders W. Tell           /

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@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@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS