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

RE: limits of the generic


xs duration w3c
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@j...] 
	Sent: Sat 9/28/2002 9:18 AM 
	To: uche.ogbuji@f... 
	Cc: Jonathan Robie; xml-dev@l... 
	Subject: Re:  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" />
	                            ^^^^^^^^^^^^^^^^^^
	    ...
	  </xsl:for-each>
	
	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.
	


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.