jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shane O'Sullivan" <shaneosulliv...@gmail.com>
Subject How to select nodes that do NOT have a given child in JackRabbit
Date Wed, 26 Jul 2006 16:43:04 GMT
I need to be able to run an XPATH query on jackrabbit that will allow me to
select all nodes that do not have a particular child.

For example, given the tree

<A>
    <B>
</A>
<A>
    <C>
</A>

I want to only select the "A" nodes that don't have a <B> child.
With Xpath I should be able to do something like
    /A/*[name()!='B']
or
    /A/*[count(B)=0]

but JackRabbit says that both of these XPath functions are not supported.
Does anyone know of another way to do this?

Thanks,

Shane

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message