DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14597>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14597 : XSLTC, abbreviated syntax for extension implemented in Summary: : XSLTC, abbreviated syntax for extension implemented in Product: XalanJ2 Version: 2.4 Platform: Sun OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan.xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hello, I am using org.apache.xalan.xsltc.cmdline.Compile (version 1.2) an XSL file. I am using the abbreviated syntax for extension functions implemented in Java. When I try to compile the xsl file I get again: java org.apache.xalan.xsltc.cmdline.Compile xslt_functions.xsl Compiler error(s): Cannot find external method 'parseQuery.new' (must be public). Cannot find external method 'getVdkKey' (must be public). Cannot find external method 'getSessionId' (must be public). Could you please help ? Thanks, Mariella This is how the xsl file looks like _____________________________ <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" xmlns:XSLTFunctionsPackage="xalan://pack1.team.xsltfunctions" version="1.0"> <xsl:variable name="myType" select="XSLTFunctionsPackage:parseQuery.new()"/> <xsl:variable name="vdkKey" select="XSLTFunctionsPackage:getVdkKey ($myType)"/> <xsl:variable name="tmpFileName" select="XSLTFunctionsPackage:getSessionId ($myType,$vdkKey)"/> </xsl:stylesheet> __________________________________________ This is how the Java class looks like: _____________________________________________________ package pack1.team.xsltfunctions; import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class parseQuery extends HttpServlet { static String mVdkKey = ""; static String mRestOfUrl = ""; static String mSessionId = ""; static String mDbsSearched = ""; public void parseQuery() {} public void setVdkKey(String pVdkKey) { mVdkKey = pVdkKey; } public String getVdkKey() { return mVdkKey; } public String getSessionId() { return mSessionId; } ................ } ________________________________________________________ The JAVA classpath contains the pathname of the jar file that contains that class for which I call the functions in the xsl file. Thanks
