View Single Post
  #1 (permalink)  
Old June 5th, 2004, 08:26 AM
angeshwar angeshwar is offline
Registered User
 
Join Date: Jun 2004
Location: Stuttgart, BW, Germany.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript in Xsl using-Xalan-Problem

Hi,

I have a XSL file which has javascript embedded. I am using xalan parser. I have

xalan.jar
xercesImpl.jar
bsf.jar
xml-apis.jar
js.jar

files in clsspath,(all latest version), java version is 1.4.

I also have the following 2 files in the path

bsfactivescriptengine.dll
msvcp60.dll

I use the command

java org.apache.xalan.xslt.Process -in C:\may27\xalan2.xml -xsl C:\may27\xalan2.xslt -out C:\may27\xalan2.html

The xmla and xsl files that I use are the ones present in the
http://xml.apache.org/xalan-j/ site.

But I get the error

java.lang.reflect.InvocationTargetException: com.ibm.bsf.BSFException: JavaScript Error: Internal Error: java.
lang.IllegalArgumentException: Line number can not be negative:-1

Can any one help me in identifying the problem.

bye,
with regards,
Deepak.
Reply With Quote