jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohnny Moland" <rmol...@gmail.com>
Subject Re: Searching for multiple types using xpath
Date Thu, 05 Jul 2007 17:46:21 GMT
On 7/5/07, Brian Thompson <elephantium@gmail.com> wrote:
> Would something like this work?
>
>
> //element(*, superType)
>
> and in your node type definitions file:
>
> [superType] > nt:file
>
> [typeA] > superType
>
> [typeB] > superType
>
>
> Or do you need to mix'n'match many different types where I put superType?

I realized that I could use what Marcel suggested, - standard xpath
with or and not use the element function at all.

Still, I belive that a depth search for more than one type is
something that would be useful in many cases. If the element function
was extended to e.g something like //element(*,'typeA | typeB') ?

Thanks,
Rohnny

Mime
View raw message