forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dr. Praveen Bhatia" <>
Subject RE: Internal Server Error:Cannot find a matching 2-argument function
Date Tue, 08 Dec 2009 08:35:24 GMT
Hello Brian,
   There is xalan-2.7.0.jar in the WEB-INF/lib of the war file already.
However, I also copied $FORREST's xalan 2.7.0 to $TOMCAT/common/lib but the
same error appears.
   Xalan website informs that it only supports xslt
and xpath 1.0 version, and I could not locate the format(...,...) function
in xslt/xpath 1.0 version. Is the format(...,...) part of xalan 2.7.0? Or
Could it be another .jar file ....?


-----Original Message-----
From: Brian M Dube [] 
Sent: Tuesday, December 08, 2009 4:38 PM
Subject: Re: Internal Server Error:Cannot find a matching 2-argument

On Tue, Dec 08, 2009 at 03:44:30PM +0900, Dr. Praveen Bhatia wrote:
> Hello,
>    Further information that I could gather on this error is as follows:
>    The file:
> skins/common/xslt/html/site-to-xhtml.xsl has the following on line 381
> <xsl:variable name="year" select="java:format($formatter, $date)"/>
> The java: namespace has earlier been defined in the same stylesheet as
> below:
> <xsl:stylesheet version="1.0"
> xmlns:xsl=""
>   xmlns:java=""
> exclude-result-prefixes="java">
> So the reported error seems to be that the classes for the
> java:format($formatter, $date) are not locatable/ not included.
> Which classes/jar file in forrest/cocoon has these function
> extensions?

XSLT extensions are handled by the XSLT processor, Xalan, which is in
lib/endorsed/xalan-x.y.z.jar. I think there is an issue about the war
target not copying all the necessary libraries. If I recall correctly,
the workaround is to copy Xalan from $FORREST/lib/endorsed to
$TOMCAT/shared/lib. I can test this later, but I don't have Tomcat
configured at the moment.


> Bhatia

View raw message