jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Mistric" <amist...@nemours.org>
Subject RE: XPath - comparing dates
Date Fri, 21 Sep 2007 21:03:49 GMT
> -----Original Message-----
> From: Julian Reschke [mailto:julian.reschke@gmx.de] 
> Sent: Friday, September 21, 2007 4:57 PM
> To: users@jackrabbit.apache.org
> Subject: Re: XPath - comparing dates
> 
> Marcel Reutegger wrote:
> > Amir Mistric wrote:
> >> I am trying to compare 2 date properties to determine if 
> the node has 
> >> been modified.
> >> Here are the queries I tried to use:
> >>
> >> 1. 
> >> 
> /jcr:root/www-mysite-org//element(*,mgnl:content)[MetaData/@mg
> nl:activated='true' 
> >> and MetaData/@mgnl:lastmodified > MetaData/@mgnl:lastaction]
> > 
> > jackrabbit does not support property names on both sides of a 
> > comparison. one of them must be a literal.
> > ...
> 
> So that should result in an InvalidQueryException, right?
> 
> BR, Julian
> 

And ....it does not :) A Bug? Improvement?
Mime
View raw message