Hi - I am having problems with the weather page (XML/XSL/ASP) on a website I manage. The issue is that during daylight saving time, the XSL file does not recognise 00:00 as midnight, so often the forecast will show the sun shining at midnight - which here in the UK it does not.
The relevent bit of XSL is at the bottom of this post. It makes sure that the nighttime graphics show between 17:00 and 07:00. I added "or format-number(@time,'#')&eq;0" to try and resolve the issue, but all that did was cause an error "Error loading XSL file: Reference to undefined entity 'eq'."
Has anyone any idea how I can resolve this please?
Thanks
Graeme
---------------------
<td><img><xsl:attribute name="src">images/<xsl:if test="forecastTime[format-number(@time,'#')>17 or format-number(@time,'#')<7 or format-number(@time,'#')&eq;0]">N</xsl:if><xsl:value-of select="weather"/>.gif</xsl:attribute></img></td>
---------------------
The relevent bit of XSL is at the bottom of this post. It makes sure that the nighttime graphics show between 17:00 and 07:00. I added "or format-number(@time,'#')&eq;0" to try and resolve the issue, but all that did was cause an error "Error loading XSL file: Reference to undefined entity 'eq'."
Has anyone any idea how I can resolve this please?
Thanks
Graeme
---------------------
<td><img><xsl:attribute name="src">images/<xsl:if test="forecastTime[format-number(@time,'#')>17 or format-number(@time,'#')<7 or format-number(@time,'#')&eq;0]">N</xsl:if><xsl:value-of select="weather"/>.gif</xsl:attribute></img></td>
---------------------