jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: How to do this JCR XPath query
Date Wed, 28 Apr 2010 22:20:40 GMT
2010/4/28 Fran├žois Cassistat <f@maya-systems.com>:
> Your solution looks good, but what if I need to do this kind of test more than once in
the same query?

Sorry, I don't understand. Do you mean check a single node for
multiple node types at the same time? Instead of element(*, nt), you
can also search for the (virtual) "jcr:primaryType" property, eg.
[@jcr:primaryType='nt:file' or @jcr:primaryType='my:foo']

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message