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

Re: An unclear point with W3C XML 1.0 Specification


w3c xml boolean
Quoting Elliotte Harold <elharo@m...>:

> david.lyon@c... wrote:
>
>
> > Usually there's no source code, and these days the programmers
> > are in India and the call centre is in a difference province
> > entirely. And all you want to know is why your payment hasn't
> > been processed....
> >
> > So keeping the logic in the code isn't very attractive in 2005..
>
> You missed my point completely. The logic is in your code *now*. The
> only thing that knows that ? is a boolean or @ is a date is your code.
> This is a convention you have adopted, and which you have implemented in
> your code. You seem to believe that you have somehow added data types to
> XML, but you haven't. All that's in your document is text, which is
> assigned types by code. You are keeping your logic in your code.

Partially true. There is some logic in the code to read out an
element. And the logic is able to determine what validation to
do on the data based upon the type of data found.

Embedding of the data type is done. And it is used at runtime
to tell the code what type of data is coming instead of the
traditional method of insisting that the 'code' knows what
to do with every single element.

When reading, the read_number(.. api or whatever it is
can read from boolean types (giving a 1 or a 0) or from
a string type if there is a number in it.

Conversely, the read_string api can read anything and
render it as text, be it a number, text, boolean or date.

> And this business analyst magically knows that ? is a boolean and @ is a
> date? I tend to doubt that.

Correct. They tend to have no idea and are not interested. But
they are able to more easily see the data content because it
is less cluttered.

Regards

David



----------------------------------------------------------------

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.