[4suite] Problem with exslt date
Lewis, Scott (LNG - AUS)
scottl at abix.com.au
Wed Dec 20 17:16:57 MST 2006
I recently upgraded a system I use for XSLT processing with 4suite to
Python 2.5 and 4suite 1.0.1. Part of a XSLT stylesheet uses exslt date
to build a date labelled file name (yymmdd), and then links to that
file. The xslt that gets the day of the month looks like this:
<xsl:variable name="day2d">
<xsl:number value="date:day-in-month()" format="01"/>
</xsl:variable>
I found much to my surprise that after the upgrade the day number
returned was for the previous day, instead of the current day when the
script was run early in the morning. Later in the day, the correct day
number is returned.
At first I was quite sure this must be some system time setting, but I
could find no such error. Further, when I switched back to using Python
2.4 with an older version of 4Suite, the problem instantly went away.
My guess is that there must be a timezone specification I'm not setting
somewhere (which I can see would be pretty handy normally), but I
haven't found any reference to this. Does anyone have any information on
this?
Thanks in advance for any help/advice.
T. Scott Lewis
product development
ABIX/LexisNexis Australia
"What information consumes is rather obvious: it consumes the attention
of its recipients. Hence a wealth of information creates a poverty of
attention, and a need to allocate that attention efficiently among the
overabundance of information sources that might consume it."
Herbert Simon, "Computers, Communications and the Public Interest",
[1971]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fourthought.com/pipermail/4suite/attachments/20061221/f4dc65c5/attachment.html
More information about the 4suite
mailing list