You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Marcel Reutegger <ma...@gmx.net> on 2007/01/03 17:17:09 UTC

Re: How to get all nodes which names has a determinated word with jsr:like function

Adal Gil Darias wrote:
> i want to do a query that result is all nodes which name is %nameToFind%'.I
> do this query but it doesn work:
> /jcr:root/acs//element(*, 
> nt:unstructured)[jcr:like(@jcr:name,'%catalogo%')]
> 
> How can i reference name property correctly?

There is no such property. The current version of the specification only allows 
you use the full name or a '*' as part of a location step in an XPath query.

I've created an enhancement request: 
http://issues.apache.org/jira/browse/JCR-696 which would offer access to the 
nodes' local name using the fn:local-name() function.

regards
  marcel