List Info

Thread: Simple Xpath Query




Simple Xpath Query
user name
2008-06-16 02:23:29
Hi,
I am trying to use XPath query and I must be doing something
wrong :
This query works fine :
/jcr:root/kmelia60/*    retuning my 2 child nodes whith the
primaryType 
my:type

while this one :
/jcr:root/kmelia60/element(*, my:type) return no child.

Where is my mistake ? (I am using jackrabbit 1.4 core
1.4.5)

Thanks,
Emmanuel

Re: Simple Xpath Query
user name
2008-06-16 03:16:55
Hi,

Emmanuel Hugonnet wrote:
> This query works fine :
> /jcr:root/kmelia60/*    retuning my 2 child nodes whith
the primaryType 
> my:type
> 
> while this one :
> /jcr:root/kmelia60/element(*, my:type) return no
child.
> 
> Where is my mistake ? (I am using jackrabbit 1.4 core
1.4.5)

did you make sure that those nodes are saved before you
execute the query?

regards
  marcel

Re: Simple Xpath Query
user name
2008-06-16 03:40:59


Marcel Reutegger wrote:
> 
> Hi,
> 
> Emmanuel Hugonnet wrote:
>> This query works fine :
>> /jcr:root/kmelia60/*    retuning my 2 child nodes
whith the primaryType 
>> my:type
>> 
>> while this one :
>> /jcr:root/kmelia60/element(*, my:type) return no
child.
>> 
>> Where is my mistake ? (I am using jackrabbit 1.4
core 1.4.5)
> 
> did you make sure that those nodes are saved before you
execute the query?
> 
> regards
>   marcel
> 
> 


Yes :(
But I have moved back to Lucene 2.2 (I was using 2.3.2) and
it works now.
-- 
View this message in context: http://www.nabble.com/Simple-Xpath-Query-tp1785
9214p17860259.html
Sent from the Jackrabbit - Users mailing list archive at
Nabble.com.


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )