This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: xslt extensions error : 'Call to extension function failed'


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.h.kay@ntlworld.com]
Sent: Wednesday, October 02, 2002 9:42 AM
To: xsl-list@lists.mulberrytech.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.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of 
> Amit Deshpande
> Sent: 02 October 2002 13:55
> To: XSL-List@lists.mulberrytech.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]