2010/4/28 François Cassistat <[email protected]>:
> //element(*, my:type)[... and element(*, 
> my:othertype)[...@someattribute='somevalue' and 
> @someotherattribute='someothervalue'] and ...]

Not sure what exactly you want to do, but if you want to search for
child nodes of type "my:othertype" below nodes of type "my:type", this
should do it:

//element(*, my:type)[...@attribute='foo']/element(*,
my:othertype)[...@someattribute='somevalue' and
@someotherattribute='someothervalue']

element(*, type) from JCR can be used as a standard location step in
xpath queries.

Hopt that helps,
Alex

-- 
Alexander Klimetschek
[email protected]

Reply via email to