XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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@gmail.com
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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS