Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 5th, 2004, 08:26 AM
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
  #2 (permalink)  
Old May 7th, 2008, 12:36 AM
Authorized User
 
Join Date: Jan 2004
Location: , , United Kingdom.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:48 PM.


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