[ http://issues.apache.org/jira/browse/XALANJ-2239?page=comments#action_12442941 ] Brian Minchau commented on XALANJ-2239: ---------------------------------------
There are other exslt.org functions that are not supported, so this is not the only one. The patch is for Xalan-J interpretive. If we do support this then it should also make it work for XSLTC and for Xalan-C as well. > add support for exslt.org's date:date-format extension element > -------------------------------------------------------------- > > Key: XALANJ-2239 > URL: http://issues.apache.org/jira/browse/XALANJ-2239 > Project: XalanJ2 > Issue Type: Improvement > Components: Xalan-extensions > Affects Versions: 2.7 > Reporter: Hack Kampbjorn > Priority: Minor > Attachments: exslt-date-format.diff.txt > > > The exslt.org library includes an extension element for creating a named > format or setting the default format's language used in the date:format-date > and date:parse-date functions (Xalan 2.7.0's implementation always uses > Java's default locale as default language) > http://exslt.org/date/elements/date-format/index.html > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:date="http://exslt.org/dates-and-times" > extension-element-prefixes="date"> > <xsl:output method="text"/> > <xsl:template match="/"> > <date:date-format lang="en"/> > <date:date-format name="danish" lang="da"/> > <xsl:value-of select="date:format-date('2005-11-08', 'EEE, dd MMM', > 'danish')\/> > <xsl:value-of select="date:format-date('2005-11-08', 'EEE, dd MMM')"/> > </xsl:template> > </xsl:stylesheet> > produces: > ti, 08 nov > Tue, 08 Nov -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
