Alex,

Thank you for your fast answer!

Your solution looks good, but what if I need to do this kind of test more than 
once in the same query?


Frank



Le 2010-04-28 à 3:35 PM, Alexander Klimetschek a écrit :

> 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