Just a wild guess: try and remove the @ in the predicate inside jcr:contains:
/jcr:root/nen:content//element(*,nen:resource)[EMAIL PROTECTED]:isarticle and @dep:state = 'published' and @nen:type = '1' and jcr:contains(jcr:content/jcr:data, 'fusce')] Regards, Alex On Thu, Jul 10, 2008 at 10:22 AM, Torgeir Veimo <[EMAIL PROTECTED]> wrote: > This query works; > > /jcr:root/nen:content//element(*,nen:resource)[EMAIL PROTECTED]:isarticle and > @dep:state > = 'published' and @nen:type = '1' and jcr:contains(jcr:content/., 'fusce')] > > while this one doesn't > > /jcr:root/nen:content//element(*,nen:resource)[EMAIL PROTECTED]:isarticle and > @dep:state > = 'published' and @nen:type = '1' and jcr:contains(jcr:content/@jcr:data, > 'fusce')] > > Any idea what is wrong with the second one? > > -- > Torgeir Veimo > [EMAIL PROTECTED] > > > > > -- Alexander Klimetschek [EMAIL PROTECTED]
