[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: "W. E. Perry" <wperry@f...>
  • To: XML DEV <xml-dev@l...>
  • Date: Mon, 12 Mar 2001 14:16:59 -0500

Re: Personal reply to Edd Dumbill's XML Hack Article wrt W3C XML	Schema
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? If not, I'd appreciate a more concrete example. I'm
> not sure whether I get it.

The 'original value in the original document' is the character string
'<value>45.67</value>'; after parsing it is the text '45.67'. There is no real
number there. If some recipient of that document requires a real number of this
form in a field which--through mechanisms he is responsible for and which may
not be known to the sender--he can identify with this <value> element, and if he
has (which we assume) the processing capability to instantiate what arrives as a
character string in the XML document into the internal representation of a real
number which his processing software requires, then it is incumbent on that
recipient to do just that as part of the processing which he is specifically
responsible for.

Respectfully,

Walter Perry



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.