[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

compare dayTimeDuration ?

Aaron Redalen Aaron.Redalen at marklogic.com
Sat Feb 24 10:26:41 PST 2007


  compare dayTimeDuration ?
Apologies if I've misunderstood your point, but the op functions are available to users via operators, are they not? 

For instance: 

op:date-greater-than($arg1 as xs:date, $arg2 as xs:date) as xs:boolean

Provides the implementation for an expression like:

(xs:date("2007-02-24") gt xs:date("1959-02-03"))

However, it probably could be made clearer to new users that op: functions are not designed to be called as functions, but using their corresponding operators.

Again, my apologies if I've misunderstood you in any way.

Sebastian, I suspect you just need to cast your values to xs:date.

Aaron Redalen
Staff Consultant
Mark Logic Corporation
+1 240 688 7433 Phone
http://x-query.com/mailman/listinfo/talk
www.marklogic.com


-----Original Message-----
From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf Of Martin Probst
Sent: Friday, February 23, 2007 12:29 PM
To: Ilya Sterin
Cc: http://x-query.com/mailman/listinfo/talk; Sébastien Geindre; Andrew Welch
Subject: Re:  compare dayTimeDuration ?

> A simple look at the docs would of yielded the answer...
>
> http://www.w3.org/TR/xpath-functions/#durations-dates-times

I don't think this actually helps - the op:... functions are not  
available to users, and there is nothing else mentioned. Also, at  
least for me, I found that you need to read the regular XQuery spec,  
the F&O and the XML schema spec at the same time to find out the  
particular semantics of some operations. This is not something I  
would recommend or expect users to understand.

Regards,
Martin

-- 
Martin Probst
X-Hive Corporation
http://x-query.com/mailman/listinfo/talk


_______________________________________________
http://x-query.com/mailman/listinfo/talk
http://x-query.com/mailman/listinfo/talk



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
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.