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

Re: Tags and Types (was Re: Re: maps)


Re:  Tags and Types (was Re:  Re: maps)

Jonathan Borden wrote:
> Uche Ogbuji wrote:
> > I think Joe made a killer point with his mention that you probably don't
> write
> > <quantity><hundreds>1</hundreds><tens>4</tens><ones>4</ones></quantity>
>
> I missed the point of this one.

The point was that numbers, when encoded in an XML document,
are almost always represented as atomic strings, with no further
markup required to distinguish the different components of the
lexical representation, number system used, etc.

The implication was that it's acceptable and even useful
to encode dates and names as atomic strings as well (depending
on the needs of the data).

> All numbers I've seen writted (unlike dates)
> are written right to left in increasing significance.

And every date in ISO-8601 format is written with the
year first, followed by the month, then the day.
That's why the vocabulary definition should specify
"a date in ISO 8601 format" or "a date, written YYYY-MM-DD"
and not simply "a date"; the latter is too underspecified
to be reliable.

(Strictly speaking, vocabulary definitions should probably also
specify "an integer, written in base-10 (decimal) notation"
and not just "a number", since the latter doesn't rule out
"MCMXCIX", "twelve", or "0x1F"; but the former is usually
tacitly assumed.)


--Joe English

  jenglish@f...

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.