Re: [xslt] date:time($some) strange result
- From: Vladimir Grebenschikov <vova sw ru>
- To: cbozeman hiwaay net
- Cc: "xslt gnome org" <xslt gnome org>
- Subject: Re: [xslt] date:time($some) strange result
- Date: Sat, 16 Oct 2004 15:41:34 +0400
В пт, 15/10/2004 в 14:17 -0500, cbozeman hiwaay net пишет:
> The result you get is obviously wrong, however using libxslt-1.1.11 I get:
> 17:51:07+04:00 which is correct. Maybe you need to upgrade.
I have tried with libxslt-1.1.11.
I have found reason, it does not show +HH:MM for GMT TZ:
This code:
<xsl:template match="/">
.
<xsl:value-of select="date:time('2004-10-11T13:51:07+00:00')"/>;
<xsl:value-of select="date:time('2004-10-11T13:51:07+04:00')"/>;
<xsl:value-of select="date:time()"/>;
</xsl:template>
shows:
.
13:51:07;
13:51:07+04:00;
15:35:06+04:00;
when I run it without TZ specify,
shows:
.
13:51:07;
13:51:07+04:00;
11:35:45;
when TZ set to GMT:
(env TZ=GMT xsltproc dt.xsl dt.xsl)
Not sure that it is completely right.
> Charlie B.
>
> Quoting Vladimir Grebenschikov <vova sw ru>:
>
> >
> > Hi
> >
> > I try to use EXSLT date: xmlns:date="http://exslt.org/dates-and-times"
> >
> > Is following result '13:51:07+04:00' is expected for
> > date:time('2004-10-11T17:51:07+04:00') XPath expression ?
> >
> > While date:time() returns time without zone-shift:
> > '13:51:07'
> >
> > --
> > Vladimir B. Grebenschikov
> > SWsoft Inc. vova sw-soft com
> > _______________________________________________
> > xslt mailing list, project page http://xmlsoft.org/XSLT/
> > xslt gnome org
> > http://mail.gnome.org/mailman/listinfo/xslt
> >
--
Vladimir B. Grebenschikov
SWsoft Inc. vova sw-soft com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]