jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: XPath query problem
Date Wed, 08 Apr 2009 11:58:59 GMT
Hi,

On Tue, Apr 7, 2009 at 10:35, Jacob Bergöö <jacob.bergoo@gmail.com> wrote:
> I am trying to find all files of a specific type (eg. *.html) from a subtree
> in the repository.
> Could not find any solutions in the forum. So far I have managed to list all
> files with the following xpath statement:
>
> "TEMPLATES//*[@jcr:primaryType = 'nt:file']"

you can place a constraint on the mime type property:

TEMPLATES//element(*, nt:file)[jcr:content/@jcr:mimeType = 'text/html']

regards
 marcel

> I tried to use:
> fn:ends-with(@name, '.html')
>
> but jackrabbit complains that it does not support this function.
>
> Any ideas?
>
> best regards,
> Jacob
> --
> View this message in context: http://www.nabble.com/XPath-query-problem-tp22924528p22924528.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message