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

ISO8601 and XSD

  • From: "Toby Considine" <Toby.Considine@gmail.com>
  • To: <xml-dev@lists.xml.org>
  • Date: Fri, 9 May 2014 09:16:26 -0400

ISO8601 and XSD

The canonical description of date and time and duration is ISO8601. That specification is broken into date-time and duration. This is a question about duration.

 

Duration in ISO8601 allows one to express simple durations

P1W (1 Week)

and complex duration

P18Y9M4DT11H9M8S  (18 years, 9 months, 4 days, 11 hours, 9 minutes and 8 seconds)

 

When XSD was being developed, the string format defined for the Duration type did not include the full range of Durations as defined in ISO8601.

 

The most common calendaring standard, iCalendar (currently RFC 5545) also uses strings derived from IS8601. It also did not include the full range of Durations as defined in ISO8601. To make things more interesting, it specified a different sub-set than did the XSD folks.

 

I am working right now on defining schemas that implement the full range of string variables for Duration as defined in ISO8601. Using the traditional software principal that it is always better to borrow rather than create….

 

Does anyone know a set of public schemas that have already defined the string restrictions and patterns to validate the full ISO8601 set for durations in an XSD?

 

Thanks

 

tc


"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."

- Brian W. Kernighan


Toby Considine
TC9, Inc

OASIS TC Chair: oBIX & WS-Calendar

OASIS TC Editor: EMIX, Energy Interoperation

SGIP Smart Grid Architecture Committee

  

Email: Toby.Considine@g...
Phone: (919)619-2104

http://www.tcnine.com
blog: http://www.NewDaedalus.com

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.