|
Subject: RE: [xsl] xdt:yearMonthDuration eq xs:duration From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 1 Feb 2006 20:44:36 -0000 |
> 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/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] xdt:yearMonthDuration eq , Frans Englich | Thread | [xsl] Pagebreaks in Excel-HTML tran, Oleg Konovalov |
| [xsl] Language-specific output, cavecatem@xxxxxxxxxx | Date | RE: [xsl] Abstracting XSLT to gener, Johnathon Wright |
| Month |