Subject:Error when running xalan samples extensions in Stylus Studio Enterprise Edition Author:david dou Date:13 Nov 2007 12:00 AM
Hi There,
When running xalan samples extensions in Stylus Studio Enterprise Edition. Release 2.
1. Set up the processor as Java built-in.
2. Add the D:\XSLT\Test\Extensions\IntDate.jar to the project classpath.
I got the below error message. Could you please tell me how can I fix this issue?
Recoverable error: Cannot find class 'IntDate'.
Recoverable error: Cannot find external method 'IntDate.getDate' (must be public).
Recoverable error: Cannot convert argument/return type in call to method 'java.text.SimpleDateFormat.format(void)'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(Unknown Source)
at com.exln.stylus.CJaxpDriver.transform(CJaxpDriver.java:96)
at com.exln.stylus.CJaxpDriver.doProcessing(CJaxpDriver.java:141)
at com.exln.stylus.CProcessorDriver.process(CProcessorDriver.java:111)
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(Unknown Source)
at com.exln.stylus.CJaxpDriver.transform(CJaxpDriver.java:96)
at com.exln.stylus.CJaxpDriver.doProcessing(CJaxpDriver.java:141)
at com.exln.stylus.CProcessorDriver.process(CProcessorDriver.java:111)
Could not compile stylesheet
Subject:Error when running xalan samples extensions in Stylus Studio Enterprise Edition Author:(Deleted User) Date:14 Nov 2007 04:36 AM
Hi David,
the interface between Stylus and the Java built-in processor doesn't allow the processor to access external functions; you should create a custom processor by specifying, for example: