[tei-council] datatypes -- syd's comments

Sebastian Rahtz sebastian.rahtz at oucs.ox.ac.uk
Mon Sep 19 07:54:30 EDT 2005


Lou Burnard wrote:

>
>>  DTYPES has removed the percent sign, there is no way to distinguish
>>  "1" meaning 100% from "1" meaning 1%.
>
> Ah! good point. But what is your recommendation?
> (a) decide whether probability shd be expressed as a number between 0
> and 1 or as a number between 0 and 100 and then enforce one of them
> (if so, which?)
> (b) allow both as alternatives, but require that the latter (1 to 100)
> is always followed by a percent sign
> (c) leave things as proposed but note the constraint that numbers
> between 0 and 1 must be expressed including a decimal point.
>
> Being a lazy person, I have a slight preference for (c) though it's
> hard to care very much about this:  the total number of attributes
> affected in the current version of edw90 table is one (1)

why dont we just zap that one :-}

> I don't completely understand this comment since tei.data.numeric maps
> to xsd:decimal which does support floating point numbers.  I assume
> what you mean is that such numbers can't be represented using the
> mantis+exponent (aka "scientific") notation. So it will permit
> "1.23456789" but not  "2e0.134"
>
|if you use xsd:float then
"-1E4, 1267.43233E12, 12.78e-2, 12| |, -0, 0| and |INF| are all legal
literals for *float*"
(http://www.w3.org/TR/xmlschema-2/#float), so
why is decimal preferred to float?


-- 
Sebastian Rahtz      
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431

OSS Watch: JISC Open Source Advisory Service
http://www.oss-watch.ac.uk




More information about the tei-council mailing list