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 <[EMAIL PROTECTED]> 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

Reply via email to