jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@pobox.com>
Subject Re: mimeType query
Date Sun, 23 Dec 2007 07:31:44 GMT

On 23 Dec 2007, at 15:53, Torgeir Veimo wrote:

> I'm looking for the correct xpath syntax for quering both the  
> properties of a node and the mimetype of a subnode (eg. of nodetype  
> cr:content).


To answer my own question for anyone else needing such a query, the  
trick was to use jcr:content/@jcr:mimeType;

/jcr:root/nen:content//element(*,nen:resource)[jcr:like(jcr:content/ 
@jcr:mimeType, 'image/%')]

-- 
Torgeir Veimo
torgeir@pobox.com




Mime
View raw message