I'm trying to query the repository for nodes that have two properties
with the same value:
//element(*, nt:unstructured)[...@a=@b]
where properties a and b have arbitrary string values.
I understand that this is not supported in the JCR spec as the
property can only be compared to a literal value. From what I can
tell, the SQL query syntax doesn't solve my problem either.
I'm new to using Jackrabbit and am not much more than a novice with
XPath, so I may be missing the obvious.
Is there another way to structure this query with XPath? Is there an
alternate query mechanism in Jackrabbit that is more expressive than
the JCR APIs provide? Is there a more efficient mechanism than
traversing the tree myself and doing the comparison on a node-by-node
basis?
Thanks!
--
Brian Stiles