xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] xdt:yearMonthDuration eq xs:duration


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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor