p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XSLT (http://p2p.wrox.com/forumdisplay.php?f=86)
-   -   Javascript in Xsl using-Xalan-Problem (http://p2p.wrox.com/showthread.php?t=13807)

angeshwar June 5th, 2004 08:26 AM

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.

mountainbiker May 7th, 2008 12:36 AM

Deepak, were you ever successful with your use of Xalan-J, JavaScript, and XSLT. I tried following the documentation from Apache's Xalan-J web site, but I could not get it working.



All times are GMT -4. The time now is 08:08 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.