<?xml version='1.0'?>
<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd" [
<!ATTLIST xs:documentation xmlns CDATA #IMPLIED>
<!ELEMENT p (#PCDATA)>
]>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" elementFormDefault="qualified" xml:lang="EN">

 
  <xs:annotation>
   <xs:documentation xmlns="http://www.w3.org/1999/xhtml">
    
     <p>A component of the XML Schema type library:
                    for mathematics.</p>
    
     <p>This is a very preliminary draft intended more to
                    indicate the direction in which the editors envisage
                    the type library evolving than anything else.  Please
                    send suggestions for improvements to
                    www-xml-schema-comments@w3.org.</p>
    
     <p>This version of this component has no target namespace:
                    it is suitable for including into any schema document
                    and will acquire the target namespace, if any, of the
                    including document.
                    A version in the type library namespace
                    (http://www.w3.org/2001/03/XMLSchema/TypeLibrary)
                    can be found at
                    http://www.w3.org/2001/03/XMLSchema/TypeLibrary-math.xsd
  </p>
    
     <p>$Id: TypeLibrary-nn-math.xsd,v 1.5 2001/03/15 19:23:53 ht Exp $</p>
    
     <p>
   In keeping with the XML Schema WG's standard versioning
   policy,  the schema document at this location, i.e.
   http://www.w3.org/2001/03/XMLSchema/TypeLibrary-nn-math.xsd, may change
   in the future, in order to remain compatible with the latest
   version of XML Schema itself.</p>
  <p>
   Stable versions will be preserved in date space for the month
   appropriate to the version of XML Schema they require.  The current 
   set of stable versions is:
    http://www.w3.org/2001/03/TypeLibrary-nn-math.xsd, etc.  PR of 20010316
    http://www.w3.org/2001/05/TypeLibrary-nn-math.xsd, etc.  REC of 20010502
  </p>
  <p>
   In other words, if the XML Schema namespace changes, the version
   of this document at
   http://www.w3.org/2001/03/XMLSchema/TypeLibrary-nn-math.xsd will change
   accordingly; the stable versions listed above will not change.
  </p>
    
   </xs:documentation>
  </xs:annotation>
 
 
 
  <xs:annotation>
   <xs:documentation xmlns="http://www.w3.org/1999/xhtml">
    
     <p>The setting above of elementFormDefault='qualified' is
tentative:  feedback welcome.</p>
    
   </xs:documentation>
  </xs:annotation>
 
 
 <xs:complexType name="complexNumber">
  
  <xs:annotation>
   <xs:documentation xmlns="http://www.w3.org/1999/xhtml">
    
     <p>This immediately raises a question of style for this whole
effort: do we need locally-renamed types for the component elements, as here,
or is direct reference to the XML Schema builtins sufficient?</p>
    
   </xs:documentation>
  </xs:annotation>
 
  <xs:sequence>
   <xs:element name="real" type="realPart"/>
   <xs:element name="imaginery" type="imagineryPart"/>
  </xs:sequence>
 </xs:complexType>
 
 <xs:simpleType name="realPart">
  <xs:restriction base="xs:decimal"/>
 </xs:simpleType>
 
 <xs:simpleType name="imagineryPart">
  <xs:restriction base="xs:decimal"/>
 </xs:simpleType>

 <xs:complexType name="rationalNumber">
  <xs:sequence>
   <xs:element name="numerator" type="numeratorPart"/>
   <xs:element name="denominator" type="denominatorPart"/>
  </xs:sequence>
 </xs:complexType>
 
 <xs:simpleType name="numeratorPart">
  <xs:restriction base="xs:integer"/>
 </xs:simpleType>
 
 <xs:simpleType name="denominatorPart">
  <xs:restriction base="xs:integer"/>
 </xs:simpleType>
 
</xs:schema>

