Hi Ashley,
versions of a node are stored under /jcr:system/jcr:versionStorage
your query should be something like:
/jcr:root/jcr:system/jcr:versionStorage//[EMAIL
PROTECTED]:primaryType='nt:frozenNode'
and @jcr:frozenPrimaryType='pl:attachment' and
@pl:contactDate='2005-12-26']
regards
marcel
Ashley Martens wrote:
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?