jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaco Prinsloo" <jacoli...@gmail.com>
Subject Query on child node returning parent node
Date Wed, 19 Nov 2008 05:49:24 GMT
Hi All,

Is there anyway for me to create a query (XPath preferably) that will check
some criteria against a node, and if it matches return the parent node?
What I want to do is check in my jcr:content nodes for all files created
before a certain date and then return the nt:file node, something like this:

/jcr:root//jcr:content[@jcr:lastModified < date]/..

(in regular XPath '..' returns the parent)

Thank you,

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