jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@pobox.com>
Subject Re: xpath query with child constraints
Date Mon, 03 Jul 2006 02:30:37 GMT
Torgeir Veimo wrote:
> I have a hard time coming up with a way to query on content 
> (jcr:contains) on subnodes of type nt:resource, combined with 
> constraints on properties of the parent nodes.

Is it correct to do something along the lines of

/jcr:root//element(*,nen:resource)[@isarticle]//element(*,nt:resource)[jcr:contains(*,'alive')]

where nen:resource is a parent node to nt:resource, and isarticle is a 
required attribute on the parent node?

-- 
-Torgeir

Mime
View raw message