File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes ArrayIndexOutofBoundException in XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "ArrayIndexOutofBoundException in XSLT" Watch "ArrayIndexOutofBoundException in XSLT" New topic
Author

ArrayIndexOutofBoundException in XSLT

Souvik Basu
Greenhorn

Joined: Aug 22, 2009
Posts: 7
I am getting an error while xsl transformation of a xsl file which contains a param within xsl:template.
when I am writing <xsl:value-of select ="$var" /> I am getting "ArrayIndexOutofBoundException" . I am using xslt 1.0. Can anyone tell me the reason why this is happening?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The stack trace should contain some useful information. Please read our FAQ entry TellTheDetails and then respond based on what you read there.
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 499
    
    3
>I am getting "ArrayIndexOutofBoundException"
You could/should download updated version of xalan-j of 2.7.1 or higher(?) and re-do the transformation see if it resolves the problem.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ArrayIndexOutofBoundException in XSLT
 
Similar Threads
A doubt
xsl variables to core set
Which one is the best XML parser?
Struts - Problem with indexed form attribute
How to avoid server calls in Sorting