jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Thompson" <elephant...@gmail.com>
Subject Re: Searching for multiple types using xpath
Date Thu, 05 Jul 2007 16:59:27 GMT
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?

-Brian


On 7/4/07, Rohnny Moland <rmoland@gmail.com> wrote:
>
> Hi,
>
> I am trying to search for multiple types in jcr using xpath. To search
> for one type the spec says I can use something like:
>
> //element(*,nt:file)
>
> Works great. My guess was that I could use something like:
>
> /path/to/context//element(*, typeA or typeB)
>
> But this did not work. Tried to search this mailing list also, but
> couldnt find any answer for this.
>
>
> Thanks,
> Rohnny
>

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