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

Re: Is Anyone Interested In XPath 2.0 Use Cases or Requirement


xsd date comparison
> -----Original Message----- 
> From: Uche Ogbuji [mailto:uche.ogbuji@f...] 
> Sent: Sat 7/6/2002 12:36 PM 
> To: Dare Obasanjo 
> Cc: xml-dev@l... 
> Subject: Re:  Is Anyone Interested In XPath 2.0 Use Cases or Requirements?
> 
> >> 4.) Lack of value comparators for nodesets
> >I'm not clear on what you mean here, and a brief read of your full article didn't help me.  Can you clarify?  An example, perhaps?
> 
> There is no mechanism to perform comparisons of node sets for equality in the same manner one would for mathematical sets. For instance I can't say a node-set containing (A, B, C) is equivalent to a nodeset containing (B, C, A)


I see, and I concur.  Some sort of is-equivalent() function would be nice for node sets.

Of course the big question would be whether node identity or, say, node text comparison after c14n, would be the criteria for checking nodes within the set.  And whether there should be an ordering imposed before the comparison (and what to do when the spec provides for no normative ordering, e.g. if document() is used).


> >Besides dates, which are provided for in EXSLT, can you say whet sorts of practical problems you've had people report that caused them to >think they needed operations on other schema types?  Or do they just think that because their schema has types, that XPath ought to be >able to do funky things with those types?
> 
> Dates are probably the only types requested with any sort of frequency to establish a trend. Funny enough, adding XSD dates may not satisfy some of our end users who expect to be able to use dates in the format from regular usage (e.g. MM-DD-YYYY or DD/MM/YYYY) and may balk at the ISO 8601 format used by XSD (YYYY-MM-DD) 

I do think that a good date library is the primary thing needed.  I think we differ only in that you'd like to see this as just one aspect of WXS types support, and that I'm happy just to see a nice plug-in library for dates that are independent of WXS (but can handle the needs introduced by WXS date types).


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Track chair, XML/Web Services One Boston: http://www.xmlconference.com/
The many heads of XML modeling - http://adtmag.com/article.asp?id=6393
Will XML live up to its promise? - http://www-106.ibm.com/developerworks/xml/library/x-think11.html



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.