xsl-list
[Top] [All Lists]

RE: xdt:yearMonthDuration eq xs:duration

2006-02-01 13:44:36

With your comment in that bug report as background; doesn't 
it mean that any 
comparison involving xdt:dayTimeDuration and 
xdt:yearMonthDuration always 
will evaluate to false

No, 

xdt:dayTimeDuration('PT0S') = xdt:yearMonthDuration('P0M')

will return true.


Why is it of interest to have the following expression return false?

op:duration-equal(xs:duration("P1Y"), xs:duration("P365D"))


Because (for example) if you are doing grouping using xsl:for-each-group or
distinct-values(), then you want these values to end up in different groups.


Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>