Hi, On Tue, Apr 7, 2009 at 10:35, Jacob Bergöö <[email protected]> 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. > >
