The error message seems to be coming from an older Xalan version. Please
check whether XMLSpy includes another copy of Xalan somewhere. You can use
EnvironmentCheck to find out which version of Xalan is invoked by XMLSpy.
Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]
"Funk, Lori K."
<[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>
cc: <[EMAIL PROTECTED]>
01/30/2003 09:42 Subject: xalan extensions in
XMLSpy
AM
Hi,
I am trying to get the xalan-java 2.4.1 transformer working with XMLSpy
with extensions implemented in java. I saw a posting from Jesse Hersch on
this topic from April of last year but no responses. I can successfully
transform my xml file with my xsl file from the command line (java
org.apache.xalan.xslt.Process -in VendorDetail.xml -xsl bq-grid.xsl -out
test.htm) but when I try to do the transformation in xmlspy I get this
error:
file:/C://lkf/bq-grid.xsl; Line6; Column 61; XSLT Error
(javax.xml.transform.TransformerException):
javax.xml.transform.TransformerException: Instance method call to method
new requires an Object instance as first argument
My environment:
XMLSpy 4 - configured with command line - java
org.apache.xalan.xslt.Process -in "file:/%1" -xsl "file:/%3" -out %2
java 1.3
xalan-java 2.4.1
MS Windows 2000 sp5
The top part of the xsl file looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:xalan="
http://xml.apache.org/xalan" xmlns:dateConv="BQDateConverter"
extension-element-prefixes="dateConv">
<xalan:component prefix="dateConv" functions="convert">
<xalan:script lang="javaclass" src
="xalan://com.paradigm.util.BQDateConverter"/>
</xalan:component>
<xsl:variable name="dateConverter" select="dateConv:new()"/>
Thanks
Lori