File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "ArrayIndexOutofBoundException in XSLT" Watch "ArrayIndexOutofBoundException in XSLT" New topic

ArrayIndexOutofBoundException in XSLT

Souvik Basu

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

Joined: Oct 14, 2005
Posts: 19973

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: 630
>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.
I agree. Here's the link:
subject: ArrayIndexOutofBoundException in XSLT
It's not a secret anymore!