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

Re: XPath 1.5? (was RE: typing and markup)


xpath datetime
amyzing@t... (Amelia A Lewis) writes:

> It's extremely interesting to me that the date types seem to have such
> prominence in this discussion.
>
> XSDL has *nine* datatypes related to time information (date, time, dateTime,
> duration, and 5 x gHorribleKludge), all of which are primitive types with
> similar (sometimes nearly identical, especially in the gHorribleKludge set)
> lexical representations, and no common ancestor but anySimpleType.
>
> Does this correspond to a programming language that you currently use?  If

 Not having read any of the relevant specs perhaps I shouldn't say
 anything but the above statement makes me disappointed in the
 direction people seem to be taking this work.

 I would like to think that any work being done on strong typing in
 XML is directed towards allowing systems to indicate their context
 and thus avoid having to send too much data.

 Then, if two systems want to work within a different strongly typed
 context, what should there be to stop them?  Consider:

<xml type-context="some-common-standard">
<date>7/5/2002</date>

 and

<xml type-context="my-cool-types">
<date>Jurassic +500</date>

 Both ``dates'' are perfectly valid *within their own contexts* and
 neither has any reason to claim superiority over the other.  They can
 operate quite independently of one another and there's no reason why
 they can't interoperate (given some context).

> And with all that expensive complexity, you still can't easily represent a
> datatype indicating a non-Gregorian time instant, increment, or duration
> without custom definition and agreement at the application level.

 From which follows, what does 7/5/2002 mean to you?  Either we share
 some (date) context that it means 7th of May or it means July 5th.
 It doesn't matter how you represent it so long as we both know how to
 interpret it.

 Is there any means of indicating non-W3C types?

Cheers,

        Ian

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.