jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Weird XPath bug
Date Mon, 08 Jun 2009 09:11:26 GMT
On Thu, Jun 4, 2009 at 3:10 PM, Conoly,
Brett<Brett.Conoly@digitalinsight.com> wrote:
> Hey all, we're using an xpath query against Day's CRX repository to get
> the listings of all the files under a certain directory and currently
> we've run into a weird issue.  Currently the 1st query below works fine
> as it finds all files under the given directory regardeless of what
> subfolder they are under (exactly what we want).  Unfortunately, the
> second query only returns the files contained in that exact directory
> and we can't seem to figure out why.
>
>
>
> //element(*, nt:file)[jcr:contains(.,
> '/default/main/09/09997/WORKAREA/wc/')]
>
>
>
> //element(*, nt:file)[jcr:contains(.,
> '/default/main/09/09997/wcnewsite/WORKAREA/wc/')]
>
>
>
> Does anyone have any idea why this could be?

What does the "normal" way of doing path queries give you as result?

/jcr:root/default/main/09/09997/WORKAREA/wc//element(*, nt:file)

/jcr:root/default/main/09/09997/wcnewsite/WORKAREA/wc//element(*, nt:file)

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message