[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Strong Typing in SGML and XML

  • From: Tim Bray <tbray@t...>
  • To: xml-dev@i...
  • Date: Tue, 06 May 1997 10:21:37 -0700

typing fractions
At 09:44 AM 5/6/97 GMT, Peter Murray-Rust wrote:

>> 3. The syntax for dates and so on should match some ISO standard,
>>    but I haven't found which one yet.
>
>Do you mean you there are several and you haven't decided between them?
>I thought that people had converged on a single one (I can't remember
>the number, it's something like 8601).

I mean I spent half an hour poking around the Web and didn't come
up with anything right away.  If someone will send me a pointer to
the standard syntax, I'll put it in the draft.

>I don't find SQLSIZE 'obvious'

OK, all of the types but one need a single parameter; each parameter
is numeric, except for DATE, which is a boolean for timezone
existence.  I didn't want to make up different attributes for each one.
Yes, it's hopelessly overloaded.  Maybe it should just be called
XML-SQLPARAM.  It is *not* the case that there is a single concept
in SQL to which all these parameters map.

>In box 2 you have XML-MIN - I assume this is a typo.

Right. 

>I found SIZE, MIN and MAX, very confusing.  I *think* that the text is 
>correct, but it's very easy to get lost.  Are we stuck with these?

Not stuck; this is the first ever draft.  Improvements welcome.

>4.5  Presumably SQLMIN<=SQLMAX? etc...

Yes.

>4.6 Reference to SQL SCALE was unclear.  Is there a requirement for SQLSCALE
>as well or does this simply need rewriting.

Scale of a decimal fraction is the number of digits to the right of
the decimal point.

>4.7 I am not happy without exponential notation.  For example do we 
>really have to represent Avogadro's number (6.023E+23) as
>602300000000000000000000?  Surely we can use IEEE notation?

Yes, this has to be supported.  Somebody else pointed that out too.

>Is equality defined/definable for floating point?

Yes, because in the real world, there are no real numbers [sorry,
math joke] - what I mean is that floating point numbers exist either
as fixed-size binary objects in computer storage, or as strings of
digits, decimal points, and exponents, also in storage.  Either
way, equality tests are meaningful.  Given good implementations of
the IEEE rules, they are even useful.

 -Tim

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.