Thanks again, but format-number(@time,'0') does not work either.
You can see the "midnight sun" effect at: http://www.farmersguide.co.uk/weather/fgweather.asp?county=Suffolk
In case it helps, I've pasted a larger section of the XSL file below. This may help explain where @time comes from (it...