Author:
Allen
Version:
1.0
Released:
6 May 2009
Category:
Date & Time

New#1: Problem with weekday formatting

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details