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

RE: Personal reply to Edd Dumbill's XML Hack Article wrt W3C XML Schema

  • From: Elliotte Rusty Harold <elharo@m...>
  • To: XML DEV <xml-dev@l...>
  • Date: Mon, 12 Mar 2001 16:31:15 -0500

1 in the last place
At 7:48 PM +0100 3/12/01, Matthew Gertner wrote:

>Let me get this straight. I have the following document:
>
><foo>
>	<value>45.67</value>
></foo>
>
>What you are saying is that someone might want to treat "value" directly as
>something other than a floating point number? I can easily see how this
>element could be transformed into a boolean (e.g. greater than 30) for
>display, or into an integer (e.g. through truncation) for some other
>processing. But surely the original value in the original document is always
>a real number, right?

No, not at all. Without going to the extremes of some other posters 
in this thread, it could most certainly be interpreted as:

1. A decimal monetary type, as in COBOL
2. A fixed point number
3. An infinitely precise floating point number such as represented by 
the java.math.BigDecimal class
4. A double
5. A float
6. Some other variation of precision and width
7. A rational number
8. An imprecisely known decimal number with 4 significant digits 
that's plus or minus 1 in the last place.
9. An imprecisely known decimal number with 4 significant digits 
that's plus or minus 5 in the last place.
10. Build 67 of version 45 of Microsoft Word

Other interpretations are doubtless possible, and even make sense in 
particular contexts. There's no guarantee that the string 45.67 in 
fact represents a real number.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|                  The XML Bible (IDG Books, 1999)                   |
|              http://metalab.unc.edu/xml/books/bible/               |
|   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+

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.