Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 5th, 2004, 08:26 AM
Registered User
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript in Xsl using-Xalan-Problem


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


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

I also have the following 2 files in the path


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.

with regards,
Old May 7th, 2008, 12:36 AM
Authorized User
Join Date: Jan 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with passing parameters and Xalan pan69 XSLT 3 December 13th, 2007 06:06 PM
xsl javascript problem smi13y XSLT 1 December 26th, 2006 07:27 PM
Javascript with XSL drdexter33 XSLT 2 January 19th, 2006 01:36 PM
Problem with JavaScript in XSL viachi XSLT 3 August 30th, 2004 09:12 AM
Tricky Javascript/XSL '&' problem...... robster Javascript How-To 1 January 23rd, 2004 02:11 PM

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