15 messages in org.apache.jackrabbit.usersRe: OCM - Issue while loading list of...
FromSent OnAttachments
Kaizer ShaikhOct 30, 2007 8:03 am 
Christophe LombartOct 31, 2007 12:38 am 
Felix MeschbergerOct 31, 2007 12:50 am 
Kaizer ShaikhNov 5, 2007 10:56 pm 
KaizerNov 6, 2007 8:29 pm 
Marcel ReuteggerNov 7, 2007 1:29 am 
KaizerNov 7, 2007 9:00 pm 
Marcel ReuteggerNov 9, 2007 2:15 am 
KaizerNov 13, 2007 1:45 am 
Christophe LombartNov 13, 2007 12:12 pm 
KaizerNov 13, 2007 8:49 pm 
Christophe LombartNov 14, 2007 7:37 am 
Kaizer ShaikhNov 15, 2007 3:41 am 
Christophe LombartNov 15, 2007 4:43 am 
Kaizer ShaikhNov 21, 2007 3:33 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: OCM - Issue while loading list of classes at that path itself.Actions...
From:Kaizer (Kaiz@mastek.com)
Date:Nov 13, 2007 1:45:35 am
List:org.apache.jackrabbit.users

Hi,

Thanks for the link. based on that, I tried

/jcr:root/some//test - This query is without using the "element".

/jcr:root/some//element(test, ocm:page) - This one will probably work only for the test folder.

Both the above queries work.

However, on using "element" in the query,i.e.,

jcr:root/some//test/element(*, ocm:page) or

/jcr:root/some//test//element(*, ocm:page)

it doesnt work.

Marcel Reutegger wrote:

Kaizer wrote:

Thanks for the reply. I dont have any nodes under test but as you mentioned, "jackrabbit also allows you to use the descendant-or-self axis anywhere else in the path", so if i want to get the "test node", which would be the self-axis, the query /jcr:root//some/test//element(*, my:type) should work. At least that was my understanding from the spec.

See http://www.w3.org/TR/xpath20/#abbrev. the example there says:

"Each non-initial occurrence of // is effectively replaced by /descendant-or-self::node()/ during processing of a path expression. For example, div1//para is short for child::div1/descendant-or-self::node()/child::para and so will select all para descendants of div1 children."

regards marcel