I have done an experiment trying to reproduce this. I get this error message when the class containing the extension function is not on the classpath. I don't get the error when it is on the classpath.

Michael Kay

On 29/07/2010 20:17, seth park wrote:
How do I use saxon extensions with a compiled stylesheet? When compiling the .sxx file, the extensions were in my classpath, but now when I try to run the .sxx file, I receive the error:

java.io.IOException: Cannot load a class containing extension functions used by the stylesheet: com.innodata_isogen.saxon.InnodataSaxonExtensions
    at com.saxonica.extra.JavaExtensionFunctionCall.readObject(JavaExtensionFunctionCall.java:746)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1

I have tried various combination of configuration elements (xslt/extensionElement and resources/extensionFunction), but have not found a combination that works.

The extension is located at http://www.innodata-isogen.com/knowledge_center/tools_downloads/saxon_extensions

Any help would be greatly appreciated.

-seth park
------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help