Misleading error message when array index out of bound
I'm doing some work with arrays. At one point, I got this message
Error at char 0 in expression in xsl:variable/@select on line 336 column 64 of tablecals.xsl: FOAY0001 Requested 1, actual size 1
That puzzled me. It took me a long time to add an xsl:message and work out that I was actually asking for item 2 in this array of length 1.
I tried to reproduce this with a very simple test and got a different message
Error FOAY0001 while evaluating xsl:message at line 14 of file:/tmp/out.xsl: Array index (2) out of range (1 to 1)
At a guess, I'd say whatever part of the code generates the former message is reporting the 0-based Java index and not the 1-based XSLT index.
In any event, if you need code to reproduce this, I'll keep a snapshot around.
Please register to edit this issue