Re: DATATYPES: mental dump.

At 01:28 AM 11/15/01 +0100, jos.deroo.jd@belgium.agfa.com wrote:
>BTW using
>   @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
>one has following primitive datatypes
>   xsd:string
>   xsd:boolean
>   xsd:decimal
>   xsd:float
>   xsd:double
>   xsd:duration
>   xsd:dateTime
>   xsd:time
>   xsd:date
>   xsd:gYearMonth
>   xsd:gYear
>   xsd:gMonthDay
>   xsd:gDay
>   xsd:gMonth
>   xsd:hexBinary
>   xsd:base64Binary
>   xsd:anyURI
>   xsd:QName
>   xsd:NOTATION
>
>(so no xsd:integer)

Er, from XML schema datatypes doc:  http://www.w3.org/TR/xmlschema-2/

[[[
3.3.13 integer

[Definition:]  integer is derived from decimal by fixing the value of 
fractionDigits to be 0.  This results in the standard mathematical concept 
of the integer numbers. The value space of integer is the infinite set 
{...,-2,-1,0,1,2,...}. The base type of integer is decimal.
]]]

Also, in http://www.w3.org/2001/XMLSchema.xsd:

[[[
   <xs:simpleType name="integer" id="integer">
     <xs:annotation>
       <xs:documentation
         source="http://www.w3.org/TR/xmlschema-2/#integer"/>
     </xs:annotation>
     <xs:restriction base="xs:decimal">
       <xs:fractionDigits value="0" fixed="true" id="integer.fractionDigits"/>
     </xs:restriction>
   </xs:simpleType>
]]]

#g


------------------------------------------------------------
Graham Klyne                    MIMEsweeper Group
Strategic Research              <http://www.mimesweeper.com>
<Graham.Klyne@MIMEsweeper.com>
       __
      /\ \
     /  \ \
    / /\ \ \
   / / /\ \ \
  / / /__\_\ \
/ / /________\
\/___________/

Received on Thursday, 15 November 2001 09:52:08 UTC