Subject: RE: [xsl] RFC 822 From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 23 Sep 2005 11:47:59 +0100 |
Saxon isn't currently handling the "Z" and "z" specifiers in format-date/time correctly. Hopefully this will be fixed at the next release - though whether the answer will actually be what RFC 822 expects is an open question. I didn't realize RFC 822 had the US time zone names hard-coded into it - talk about cultural bias! There's a bit of a problem with these as there's no way of knowing whether a timezone of -05:00 means EST or CDT, even if you know to use a US timezone (which one can get from the country argument). Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Alan Gutierrez [mailto:alan-xsl-list@xxxxxxxxx] > Sent: 23 September 2005 11:03 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] RFC 822 > > This is my RFC 822 format picture. > > <xsl:variable > name="gmt" > select="adjust-dateTime-to-timezone( > $dateTime, xdt:dayTimeDuration('PT0H'))"/> > > <xsl:value-of select="format-dateTime($gmt, > '[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] GMT', > 'en', (), 'US')"/> > > For dateTime... > > 2005-09-21T02:47:00Z > > This emits... > > Wed, 21 Sep 2005 02:47:00 GMT > > I've tried a number of varitions on the time zone, [z] [Z] > and [ZN,*-3]. > > Those pictures translate to "Z" when I expect GMT or UTC. > > I'm pretty sure I'm doing something terribly wrong and I don't want > to lose my timestamps. > > Where's my error? > > (Sorry, for asking so many questions at once. I've kinda been > storing them up. I'm doing a clean up.) > > -- > Alan Gutierrez - alan@xxxxxxxxx > - http://engrm.com/blogometer/index.html > - http://engrm.com/blogometer/rss.2.0.xml
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RFC 822, Alan Gutierrez | Thread | Re: [xsl] RFC 822, Alan Gutierrez |
Re: [xsl] Merging adjacent nodes of, Matt Sims | Date | RE: RE: [xsl] % in xslt printing as, cknell |
Month |