Subject: Re: JDOM XPath with datatype casts 2007-10-10 - By Laurent Bihanic
Back 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
Clint.Redwood@(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(@(protected))-xs:dayTimeDuration('PT0.001S') > > and I'm getting an exception at instanciation > > org.jdom.JDOMException: Invalid XPath expression: > "xs:dateTime(@(protected))-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/youraddr@(protected)
|
|