Subject:Cannot find a matching 1-argument function named {Myclass}stringToUppercase() Author:Victoria Gilmous Date:04 Dec 2013 02:24 PM Originally Posted: 04 Dec 2013 02:12 PM
Hello everyone,
I'm new to Stylus Studio. I wrote a java class that contains one dummy function, i'm trying to call this class by adding it to classpath ..examples\javaExtension.. but i still get the following error :
java.lang.RuntimeException: Error: on line 7 of APPLIC~1.XSL:
XTDE1425: Cannot find a matching 1-argument function named {MyClass }stringToUppercase()
at com.exln.stylus.CSaxon8Driver.doProcessing(CSaxon8Driver.java:298)
at com.exln.stylus.CProcessorDriver.process(CProcessorDriver.java:116)
TestTransformation.xsl (7, 1)
Error: on line 7 of APPLIC~1.XSL: XTDE1425: Cannot find a matching 1-argument function named {MyClass}stringToUppercase()
my java class:
public class MyClass {
public static Object stringToUppercase(String lowerCase){
Subject:Cannot find a matching 1-argument function named {Myclass}stringToUppercase() Author:Victoria Gilmous Date:05 Dec 2013 04:33 AM
Hello Ivan,
I checked the IntDate example, i added the prefix and namespace but i got another error :
java.lang.RuntimeException: Error: on line 7 of APPLIC~1.XSL:
XTDE1425: Cannot find a matching 1-argument function named {java:ApplicationToForm}stringToUppercase(). The namespace URI and local name are recognized, but the number of arguments is wrong
at com.exln.stylus.CSaxon8Driver.doProcessing(CSaxon8Driver.java:298)
at com.exln.stylus.CProcessorDriver.process(CProcessorDriver.java:116)
ApplicationToFormTransformation.xsl (7, 1)
Error: on line 7 of APPLIC~1.XSL: XTDE1425: Cannot find a matching 1-argument function named {java:ApplicationToForm}stringToUppercase(). The namespace URI and local name are recognized, but the number of arguments is wrong