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

Re: Re: XSLT Date

Subject: Re: Re: XSLT Date
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Wed, 17 Oct 2001 16:08:02 +0100
xslt date
I agree about the potential for disappointment, but perhaps this is best
handled as an expectation management problem? Use this as a target
spec., and make sure potential users realise that they will have to
provide or use their own localization (of course, that's "localisation"
for my fellow Brits) routines.

For instance, C# users should probably be using
DateTimeFormatInfo.UniversalSortableDateTimePattern for timestamps in
ISO 8601 format with UTC timezones.

Francis.

Joerg Pietschmann wrote:
> 
> Francis Norton <francis@xxxxxxxxxxx> wrote
> >I'd be quite happy with the functionality required for XML Schema
> >(http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#dateTime, which is
> >based on ISO 8601) to start with. Have you spotted any booby traps
> >there?
> 
> There is not much functionality in the sense of "stuff we can invoke
> from within the XSLT language to get problems solved", unless i missed
> something.
> It defines the lexical format for date/time related datatypes, some
> rules how to interpret the values and how to add a durations and a
> date and a duration. This implies that XPath can rely on robust parsing
> of dates and it is cheap to define constructors, comparisions,
> a simple arithmetic and perhaps additional validation routines
> based on the definitions there. All this technology is proven and well
> debugged.
> And i have to qualify my statement above: the combination of proper
> parsing, constructors/casts for the various date related types
> and arithmetic is already a powerful tool. For example, you should be
> able to extract the month from a date by a cast, no longer bother
> to substring(.,2,4) onto a lexical format you don't control...
> 
> However, given the tendency of many users to use a localized lexical
> format for dates, there is still a lot of potential for disappointment.
> 
> Regards
> J.Pietschmann
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.