AnsweredAssumed Answered

XPath query with dot in jcr:like function

Question asked by ivans on Aug 11, 2008
I'm trying to get all files below some node by file extension. And using this query:
String query = "descendant::*[@cm:content and jcr:like(@cm:name,'%.txt')]";
In this way SearchService.selectNodes() returns empty result.
But then I'm using query:
String query = "descendant::*[@cm:content and jcr:like(@cm:name,'%txt')]";
It returns correct NodeRef's.
Does anyone know where is mistake? May be dot must be escaped by special way? (Escaping with slash didn't helped)