format-date with weekday
This is an open discussion with 5 replies, filed under XSLT.
Search
Looks like the XSLT is looking for a @weekday
attribute, so it assumes that the date
param is an XML node rather than a string. Bug!
Thanks Nick, that’s what I thought. Will log this as an issue (and attempt to fix it tonight.)
I’m thinking…
- the Date field should output this attribute. Maybe it used to and was subsequently removed?
- there should be a $weekday param in the pool for cases like your own
Or… the utility makes use of EXSLT, which can might be able to get the current weekday without it being passed from another source.
I had the same issue when using this utility. I suggest you to use Format Date/Time Advanced utility.
Nice, thanks Rainer! I’ll give that a shot.
Create an account or sign in to comment.
Hi XSLT wizards, wondering if anyone could shed some light on this error I’m getting. I’m trying to use the format-date template (from the date-time.xsl utility) 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 error occurs in the date-time.xsl utility, perhaps there is a bug there?