[jdom-interest] JDOM XPath with datatype casts
laurent.bihanic at atosorigin.com
Wed Oct 10 13:25:10 PDT 2007
JDOM XPath relies on Jaxen that (AFAIK) only supports XPath 1.0. The function
you're trying to use are only available in XPath 2.0.
You should try with Saxon.
Clint.Redwood at xansa.com a écrit :
> I'm trying to use a JDOM XPath object to perform the following query on a
> document containing a dateTime field.
> My xpath string is:
> and I'm getting an exception at instanciation
> org.jdom.JDOMException: Invalid XPath expression:
> "xs:dateTime(@lastTime)-xs:dayTimeDuration('PT0.001S')": Unexpected '('
> I've tried setting the "xs" namespace, but I can't do this until the XPath
> is already instanciated, so that's already too late.
> Any suggestions would be appreciated.
> Clint Redwood
More information about the jdom-interest