[xsl] XSLT/Java question

Subject: [xsl] XSLT/Java question
From: pcarey@xxxxxxxxxxx
Date: Tue, 23 Dec 2003 11:33:06 -0500
Hello XSLT gurus.

I am using Saxon 6.5.3 and I would like to have access to some java methods
I've defined. I looked through the archives, and I think I found the answer
here: http://www.dpawson.co.uk/xsl/sect4/N9723.html.

For some reason, though, I cannot seem to get this to work. I have been
successful in using the built-in java classes (such as java.lang.Math), but
I'm stuck when trying to use my own classes. Below are the relevant
portions of XSLT and java. If anyone has any ideas why this fails, I would
be extremely grateful.

Thanks, Pete

Here is the error:
The URI java:TestClass does not identify an external Java class

Here is my CLASSPATH:

Here is the java class, compiled in E:\XSLT_CLASSES:
public class TestClass
    public static String returnMyName(){        return "Pete";

Here is the xsl:stylesheet element and its attributes:

Here is where I attempted to call the returnMyName() method"
<xsl:variable name="test-variable">
    <xsl:value-of select="java:returnMyName()"/>

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

Current Thread