I am using Jaxen and a VariableContext but I am having problems with the
following XPath expression:
$result > 10

What is the actual Java Object class that VariableContext implementation
should be returning? Is Jaxen smart enough so that a String returned would
be properly converted to Integer or Double, for instance? If no, what is the
contract that a VariableContext should be implementing in terms of Objects
returned?

This is the exception I am getting:
ava.lang.ClassCastException: java.lang.Integer  at
java.lang.Double.compareTo(Double.java:576)     at
org.jaxen.expr.DefaultGreaterThanExpr.evaluateObjectObject(DefaultGreaterTha
nExpr.java:128)         at
org.jaxen.expr.DefaultRelationalExpr.evaluate(DefaultRelationalExpr.java:85)
at
org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java
:135)   at org.jaxen.expr.DefaultXPath.asList(DefaultXPath.java:46)     at
org.jaxen.JaXPath.jaSelectNodes(JaXPath.java:33)        at
org.jaxen.BaseXPath.selectNodes(BaseXPath.java:21) 


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

Reply via email to