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

RE: <enumeration> of duration types

From: Michael Kay <mike@saxonica.com>
Date: Thu, 14 Apr 2005 17:02:13 +0100
To: "'Anli Shundi'" <ashundi@tibco.com>
Cc: "'Kasimier Buchcik'" <kbuchcik@4commerce.de>, "'XML-SCHEMA'" <xmlschema-dev@w3.org>
Message-ID: <8074.28229.1120563500@automsgid.listhub.w3.org>
distinct values in tibco

> 
> The spec lays out the order in 3.2.6.2 [1] and clarifies 
> normalization.
> 
> P12M is indeed P1Y but the comparison to P365D fails.
> 
> [1] http://www.w3.org/TR/xmlschema-2/#duration-order
> 

I agree that this implies that durations are normalized for the purpose of
ordering, but it's not clear that the order relation and equality matching
(e.g. for matching the enumeration facet) have anything to do with each
other. It's clearly stated elsewhere in the spec that equality is based on
identity in the value space, and the value space for duration appears to
treat P1Y and P12M as distinct values.

I would like you to be right, but I don't see this in the spec.

Michael Kay
http://www.saxonica.com/
Received on Thursday, 14 April 2005 16:02:23 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

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-2007 All Rights Reserved.