Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - Re: [xsl] xdt:yearMonthDuration eq xs:duration [Thread Next] RE: [xsl] xdt:yearMonthDuration eq xs:durationTo: Date: 2/1/2006 8:54:00 PM > 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
