jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paco Avila" <monk...@gmail.com>
Subject Re: qeury for multiple node types
Date Tue, 22 Jul 2008 09:21:51 GMT
Ok, thanks!

The query can be re-written as:

/jcr:root/okm:root//element(*,
mix:notification)[@jcr:primaryType='okm:folder']

On Tue, Jul 22, 2008 at 9:55 AM, Marcel Reutegger <marcel.reutegger@gmx.net>
wrote:

> Hi,
>
> you can only use a single element() test per location step. if you want to
> filter multiple types you need to do that manually by checking
> jcr:primaryType and jcr:mixinTypes properties. e.g.:
>
> /jcr:root/okm:root//*[jcr:mixinTypes = 'mix:notification' and
> jcr:primaryType = 'okm:folder']
>
> please note that this does not take the node type hierarchy into account.
> if you also want to include sub types of okm:folder you need to explicitly
> specify that.
>
> regards
>  marcel
>
> pavila@git.es wrote:
>
>> I want to look for nodes which are of a special node type and hace a mixin
>> attribute, but the query fails:
>>
>> /jcr:root/okm:root//(element(*, mix:notification) and element(*,
>> okm:folder))
>>
>> There is another way to perform this query?
>>
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message