xsl-list
[Top] [All Lists]

RE: xslt extensions error : 'Call to extension function fai led'

2002-10-02 07:46:00
The XSLT processor I am  using is XALAN. I am not using the latest version
though. It is the one which is shipped with IBM Websphere3.5.
Amit

This is the complete JSP page that I used:
----------------------------------------------------------------
<%@ page import="org.apache.xalan.xslt.XSLTProcessor" %>
<%@ page import="org.apache.xalan.xslt.XSLTProcessorFactory" %>
<%@ page import="org.apache.xalan.xslt.XSLTInputSource" %>
<%@ page import="org.apache.xalan.xslt.XSLTResultTarget" %>
<%@ page import="org.apache.xalan.xslt.XSLProcessorException" %>
<%@ page import="org.xml.sax.SAXException" %>
<%@ page import="com.lotus.xml.xml4j2dom.XML4JLiaison4dom" %>

<%
    
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor(
                                        new XML4JLiaison4dom() );
    XSLTInputSource xmlSource = new XSLTInputSource( "D://numlist.xml" );
    XSLTInputSource xslSource = new XSLTInputSource( "D://4-numlistJava.xsl"
);
    XSLTResultTarget result = new XSLTResultTarget( out );
    processor.process( xmlSource, xslSource, result );


%>
--------------------------------------------------------------------------


-----Original Message-----
From: Michael Kay [mailto:michael(_dot_)h(_dot_)kay(_at_)ntlworld(_dot_)com]
Sent: Wednesday, October 02, 2002 9:42 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] xslt extensions error : 'Call to extension function
failed'


First thing you need to tell us is which XSLT processor you are using.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Amit Deshpande
Sent: 02 October 2002 13:55
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] xslt extensions error : 'Call to extension 
function failed'


I am trying to use xslt java extensions and am having 
problems when I write my own custom classes and try to use 
them. When I use the "xmlns:java" namespace the code runs fine.  
The error I get when using my custom class is : "Call to 
extension function
failed: com.example.DateFormatter". The problem is the error 
doesnt give out much information. Does anyone know what the 
possible cause'(s) of this error are. Btw the code happens to 
run on an appserver. Thanks in advance for all the help.
 
Amit

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>