jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandru Popescu <the.mindstorm.mailingl...@gmail.com>
Subject polymorphic queries
Date Fri, 10 Feb 2006 00:35:12 GMT
Hi!

Considering the following hierarchy of node types: nt:parentType, nt:childType1 extends 
nt:parentType and nt:childType2 extends nt:parentType, than I am wondering if a query in the
form:

//element(*, nt:parentType) is gonna return both types of children (or is it strict, meaning
that 
the query will look only for nt:parentType nodes and no children of nt:parentType; Than to
retrieve 
both children types nodes you should use //element(*, nt:childType1) or //element(*, nt:childType2)).

Thanks in advance,

./alex
--
.w( the_mindstorm )p.




Mime
View raw message