jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand LEGA <legabertr...@yahoo.fr>
Subject Re: Querying the jcr:primaryType property [2]
Date Tue, 12 Apr 2005 15:10:55 GMT
My message didn't render properly.
Here is the body of the message.


I'm just wondering whether it is normla that querying the 
jcr:primaryType takes into account the content type inheritance.
I have the following content type definition :

   -- typeA
         -- typeB

And then, I created three nodes
   testA1    of type    typeA
   testA2    of type    typeA
   testB1    of type    typeB

The following query //*[@jcr:primaryType='typeA'] returns testA1, testA2 
and testB1.
Of course the query //*[@jcr:primaryType='typeB'] returns only testB1.

Is this supposed to be normal ?


View raw message