RE: Internal Server Error:Cannot find a matching 2-argument function

2009-12-08 Thread Dr. Praveen Bhatia
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 http://xalan.apache.org/ 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 ?

  Thanks
Bhatia

-Original Message-
From: Brian M Dube [mailto:bd...@apache.org] 
Sent: Tuesday, December 08, 2009 4:38 PM
To: user@forrest.apache.org
Subject: Re: Internal Server Error:Cannot find a matching 2-argument
function

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=http://www.w3.org/1999/XSL/Transform;
   xmlns:java=http://xml.apache.org/xslt/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.

Brian

 Bhatia



Skinned Sites

2009-12-08 Thread mgutbier
Please remove the link www.art-painter.com. This site has been re-launched
and is not built with forrest any more.

 

We moved to Joomla, because the gallery content is easier to maintain. But
thank you for all the years we had with forrest. 

 

Best Regards

Matthias