No subject


Thu Jan 29 11:15:17 EST 2009


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

2.5.1.3 Union datatypes
The =B7value space=B7 and =B7lexical space=B7 of a =B7union=B7 datatype are=
 the
union of the =B7value space=B7s and =B7lexical space=B7s of its =B7memberTy=
pes=B7.
=B7union=B7 datatypes are always =B7derived=B7. Currently, there are no
=B7built-in=B7 =B7union=B7 datatypes.

http://www.w3.org/TR/xmlschema-2/#typesystem

In 2.5.1.3 Union datatypes

Example
A prototypical example of a =B7union=B7 type is the maxOccurs attribute on
the element element in XML Schema itself: it is a union of
nonNegativeInteger and an enumeration with the single member, the
string "unbounded", as shown below.

 <attributeGroup name=3D"occurs">
   <attribute name=3D"minOccurs" type=3D"nonNegativeInteger"
       use=3D"optional" default=3D"1"/>
   <attribute name=3D"maxOccurs"use=3D"optional" default=3D"1">
     <simpleType>
       <union>
         <simpleType>
           <restriction base=3D'nonNegativeInteger'/>
         </simpleType>
         <simpleType>
           <restriction base=3D'string'>
             <enumeration value=3D'unbounded'/>
           </restriction>
         </simpleType>
       </union>
     </simpleType>
   </attribute>
 </attributeGroup>

Any number (greater than 1) of =B7atomic=B7 or =B7list=B7 =B7datatype=B7s c=
an
participate in a =B7union=B7 type.

I think we could just replace 'unbounded' with '*'

cheers,

Graham

--=20
Graham Moore, Director, Networked Planet Limited
Editor XTM 1.0, ISO13250 (TopicMaps) -2,-3, TMCL
e: graham.moore at networkedplanet.com
w: www.networkedplanet.com
t: +44 1865 811131
m: +44 7769658611 (UK)
m: +47 45271713   (Norway)

Networked Planet Limited is registered in England and Wales, no. 5273377


More information about the sc34wg3 mailing list