> If I have an Jaxen XPATH that looks like the following:
> 
> '$result > 10'
> 
> And I have a VariableContext set in the engine that returns, for instance, a
> String("4") or a Double(4.0), Jaxen is going to throw a ClassCastException
> because it is relying on the Java Comparator of Primitive Objects (Integer,
> String, Double, etc). From the XPATH expression, 10 is an Integer(10) and
> Integer.compare(String("10")) is going to throw the exception.

I only started using this today, but I wrap my returns in a List object,
that seems to work :) Try stick that string in a vector and return it.

Christian



_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to