adjust-dateTime-to-timezone with timezones in $arg & $timezone

Hi,

The last paragraph in 10.7.1 fn:adjust-dateTime-to-timezone reads:

<quote>
If $arg has a timezone component and $timezone is not the empty sequence, then 
the result is an xs:dateTime value with a timezone component of $timezone 
that is equal to $arg.
</quote>

I'm confused what is meant by "equal" here; and what that is equal to what. 

Assume the resulting xs:dateTime("the result") is $result. Does it mean that 
the XPath expression "$result eq $arg" should hold true? Or that the 
date/time properties except the timezone property of $result should be equal 
to the date/time properties except the timezone property of $arg?

I would bet on the latter, but another possible interpretation is that the 
date/time properties of $result should be shifted to "even" out the time zone 
offset.

I played with Saxon 8.6 in order to get a tip for interpretation, but the 
expression:

adjust-dateTime-to-timezone(xs:dateTime("2001-01-01T01:00:00+01:00"),
                            xdt:dayTimeDuration("PT6H"))

evaluates to: "2001-01-01T06:00:00+06:00".

Assuming this is a conformant result, I still don't get it. Wasn't the 
timezone of $arg ignored? Why was the hour property changed, (looks like as 
to the hour property of $timezone)? And what part of the result is equal to 
$arg?

I didn't file this as a bug report because a confused reader does not 
necessarily mean a confused spec.. I'll file if it turns out appropriate.


		Frans

Received on Sunday, 29 January 2006 19:38:25 UTC