I would like to display current date with the following format. However using current-date() is throwing error "Failed to apply XSLT" Thu 02 Mar 2017
The following is the code that i have so far. Thank you
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
exclude-result-prefixes="x d xsl msxsl cmswrt"
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
xmlns:x="http://www.w3.org/2001/XMLSchema"
xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
xmlns:cmswrt="http://schemas.microsoft.com/WebParts/v3/Publishing/runtime"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:w="http://rss.weather.com.au/w.dtd">
<ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
<xsl:template match="/">
<div id="top" >
<div class="weather rendered">
<xsl:attribute name="onclick">OpenPopUpPage('<xsl:value-of select="/rss/channel/link"/>')</xsl:attribute>
<xsl:attribute name="title">Current temperature: <xsl:value-of select="/rss/channel/item/w:current/@temperature"/>° 
City forecast for <xsl:value-of select="/rss/channel/item/w:forecast[1]/@day"/>:
<xsl:value-of select="/rss/channel/item/w:forecast[1]/@min"/>°-<xsl:value-of select="/rss/channel/item/w:forecast[1]/@max"/>°, <xsl:value-of select="/rss/channel/item/w:forecast[1]/@description"/></xsl:attribute>
<div class="max"><xsl:value-of select="format-number(/rss/channel/item/w:current/@temperature, '0')"/><span class="deg">°</span></div>
<div><xsl:value-of select="ddwrt:FormatDateTime(string(@CurrentDate) ,1033 ,'MMM yyyy')"/></xsl:value-of> </div>
</div>
</div>
</xsl:template>
</xsl:stylesheet>
Note: if I used the following it work fine, but it will display date in GMT not local date which is 11 hours ahead.
<div class="date"><xsl:value-of select="substring(/rss/channel/item/pubDate,1,16)"/></div>