On Thu, Jun 4, 2009 at 3:10 PM, Conoly, Brett<[email protected]> 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 [email protected]
