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

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


christian calender advantage
Joe English wrote:

>
> Jonathan Borden wrote:
>
> > Different formats each have their advantages. The clear advantage of
> > explicit tags, is that the meaning is less ambiguous. e.g.
> >
> > <date>
> >     <day>02</day>
> >     <month>02</month>
> >     <year>01</year>
> > </date>
> >
> > vs.
> >
> > "02-02-01"
>
> In the first example, did you mean 1 CE or 2001 CE?
> If the former, under which calendar should the day
> and month be interpreted?

I've not specified, but that isn't needed. The former example is tagged, and
so the "01" may easily be interpreted with respect to the <year> element,
and its associated semantics (for example a schema might tell us, or a
namespace name might reference something like

<div id="year"><p>Years in the Christian calender, to which 2000 is
added</p></div>

>
> Sorry, I really don't see any decrease in ambiguity
> in the first form.
>

Ambiguity is _decreased_ not eliminated because aside from which year we are
talking about we know which lexical value is intended to represent _some
year_ as opposed to _some day_.

If it didn't reduce ambiguity _some_ then there would hardly be a need for
XML, or SGML for that matter.

Jonathan



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.