Hi Julien,
When I came accross the problem I just decided to use the CVS version
which has something lile
...
code snippet
private Object evalFunction(String owner, int pos) throws Exception {
int idx = Compiler.getFirstChildPos(pos);
int id = cmp.getOp(idx);
int endFunc = cmp.getOp(pos +1) - 1;
List args = new ArrayList();
int lp = idx+1;
while ( lp < endFunc ) {
args.add(evaluate(owner, lp));
lp = cmp.getNextOpPos(lp);
}
...
Indeed the XPath Compiler interface has changes
On Monday 10 Nov 2003 1:34 pm, Julien Le Dem wrote:
> <problem>
> When sending an xpath request using a function (like count(...) ) I have an
> exception.
> </problem>
> <Context>
> package org.apache.xindice.core.query
> class XPathQueryResolver
> <snip line="539">
> private Object evalFunction(String owner, int pos) throws Exception {
> int idx = cmp.getFirstChildPos(pos);
> int id = cmp.getOp(idx);
> int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
> </snip>
> the last line throws a NoSuchMethodError.
> after looking the Xalan javadoc getOpMap() doesn't return an array.
> I looked into CVS the current version and the code has changed (a bug fix
> ?) so it shouldn't throw an exception anymore (but I haven't tested it) I
> use xindice in embeded mode.
> </context>
> <question>
> What should I do ?
> 1) Do I use the wrong Xalan version ? Xindice 1.1b1 should use an older
> version and I have to use endorse something ?
> 2) Do I have to update my Xindice library to the actual CVS ?
> </question>
> thanks Julien
--
Best Regards.
JC.
\\- - -//
( @ @ )
===oOOo-(_)-oOOo=================================================
[EMAIL PROTECTED]
=================================================================