This query works; /jcr:root/nen:content//element(*,nen:resource)[@dep: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)[@dep: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 torgeir@pobox.com