Hi, I am trying to do a query where I want to get a set of nodes by matching their names to a string. For example: Repository: /sites/mysite/_files/WeekI_Day1 /sites/mysite/_files/WeekI_Day2 /sites/mysite/_files/WeekII_Day1 /sites/mysite/_files/WeekII_Day2
I would like to be able to do a query so I can get the two WeekI nodes.. I have tried the following: //sites/mysite/_files//*[fn:name()="WeekI*"] order by @jcr:created descending //sites/mysite/_files//*[jcr:name="WeekI*"] order by @jcr:created descending These 2 only seem to work if I provide the full node name, which is not what I want. //sites/mysite/_files//*[jcr:contains(., "*WeekI*"] order by @jcr:created descending This one works fine for properties who contain WeekI but doesn't match the node name. Does anybody have any other suggestions? Kind regards, Simon
