[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Integral types in OBIX wd36 schema and UML figure; schema and spec inconsistent
Toby, Craig, and all --
This is modified from my 16 October email to the list. The most recent UML diagram and schema use "int" for the integral types. RECOMMENDATION:
Thanks! bill INT INTEGER etc From the XML Schema Datatypes Second Edition: [Definition:] integer is ·derived· from decimal by fixing the value of ·fractionDigits· to be 0 and disallowing the trailing decimal point. 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. [Definition:] long is ·derived· from integer by setting the value of ·maxInclusive· to be 9,223,372,036,854,775,807 and ·minInclusive· to be -9,223,372,036,854,775,808. The ·base type· of long is integer. [Definition:] int is ·derived· from long by setting the value of ·maxInclusive· to be 2,147,483,647 and ·minInclusive· to be -2,147,483,648. The ·base type· of int is long. The schema uses xs:int, the third definition above - a 32 bit integer. The UML diagram update I sent a few minutes ago uses "int" everywhere for consistency. So should it be "long" or "int" or "integer"? Depends on what the schema users expect, and the schema is definitive, so the spec should match the schema which should match the spec :-)For the OBIX type Int, note the type of the attributes min, max, and val. A related issue is on line 516:<xs:complexType name="Int"> This is in part a carryover from the short/int/long issues in C.ERROR "4.3.1.2 int" is really muddled. it says "val ... maps to xs:long", NOT xs:int. So the schema should say xs:long NOT xs:int. And so should the UML. Thanks! bill -- William Cox Email: wtcox@CoxSoftwareArchitects.com Web: http://www.CoxSoftwareArchitects.com +1 862 485 3696 mobile |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]