OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] limits of the generic

[ Lists Home | Date Index | Thread Index ]

xs:duration is broken and should never have made it into the W3C XML Schema REC in the first place. Simple question; Is an  xs:duration representing 3 months equivalent to an xs:duration representing 90 days? 
On the other hand, xf:yearMonthDuration and xf:dayTimeDuration are fully ordered and can be sorted in the manner you described. 

	-----Original Message----- 
	From: Jeni Tennison [mailto:jeni@jenitennison.com] 
	Sent: Sat 9/28/2002 9:18 AM 
	To: uche.ogbuji@fourthought.com 
	Cc: Jonathan Robie; xml-dev@lists.xml.org 
	Subject: Re: [xml-dev] limits of the generic

	<snip />

	3. Similarly, how to compare whether two durations are the same.
	<snip />

	Also, I do think that someone who's gone to the trouble of creating a
	W3C XML Schema schema for their markup language is going to expect
	that the data types they specified within their schema for the
	elements/attributes will be used in the document, so that they won't
	have to do:
	  <xsl:for-each select="item">
	    <xsl:sort select="@num" data-type="number" />
	if they've already specified that the 'num' attribute is an integer
	within the schema. This seems the most persuasive argument for
	including support for W3C XML Schema data types in XPath 2.0.
	Unfortunately, the current WDs don't actually manage to support the
	latter requirement -- I'm thinking particularly of the restrictions on
	xs:duration -- but there's still time to change, thus increasing the
	net gain from having the data types.


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

Copyright 2001 XML.org. This site is hosted by OASIS