I’m trying to use the format-date template (from the date-time.xsl utility in the default workspace) to render dates like “Tuesday, November 30.”
I’m doing this as so:
<xsl:call-template name="format-date"> <xsl:with-param name="date"><xsl:value-of select="$today"/></xsl:with-param> <xsl:with-param name="format">W, M D</xsl:with-param> </xsl:call-template>
this appears to be theoretically supported but it fails with an error:
XSLTProcessor::transformToXml(): Evaluating variable weekday failed
The XSLT is looking for a @weekday attribute, so it assumes that the date param is an XML node rather than a string.
Please login to comment.
Quick Links
Contact the team
Found a bug on this website?
Symphony • Open Source XSLT CMS
--with-xsl
Compatible Hosts
I’m trying to use the format-date template (from the date-time.xsl utility in the default workspace) to render dates like “Tuesday, November 30.”
I’m doing this as so:
this appears to be theoretically supported but it fails with an error:
The XSLT is looking for a @weekday attribute, so it assumes that the date param is an XML node rather than a string.