Re: JDOM XPath with datatype casts
Laurent Bihanic <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, 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. Laurent [email protected] a écrit : > Hi, > > 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: > > xs:dateTime(@lastTime)-xs:dayTimeDuration('PT0.001S') > > 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. > > Yours, > > Clint Redwood _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]