>While working on the implementation of format-date() I've realized
>that I'm not handling time zones. The documentation for the function
>at exslt.org doesn't have anything to say about what time zone the
>formatted date should be displayed in.

I'd suggest going in the same direction that the XSL Working Group
will be going for the 2.0 version. If you look at the Functions &
Operators document at
http://www.w3.org/TR/xquery-operators/#func-dateTime-equal
you'll see how they (a) discuss obtaining the timezone from the
static context and (b) cite Schema Part 2 at
http://www.w3.org/TR/xmlschema-2/#dateTime
for more guidance on comparisons.

I think they will have a format-date function in XSLT 2.0, too.
If so, I would expect that it assumes a time zone, when needed,
in a manner similar to the above.
.................David Marston

Reply via email to