I'm trying to run a query that's returns all the versions of a node where a certain value exists. For example; "/jcr:root/test-app/Attachments/[EMAIL PROTECTED]:primaryType='nt:frozenNode' and @jcr:frozenPrimaryType='pl:attachment' and @pl:contactDate='2005-12-26']", which does not work. I can use "/jcr:root/test-app/Attachments/[EMAIL PROTECTED]:primaryType='pl:attachment' and @pl:contactDate='2005-12-26']" to get the current version but it does not query all the versions of the node.
Any ideas?