Hi Roy,

you need to escape it - in AEM you can use
https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/javadoc/com/day/text/ISO9075.html
(or
use SQL2 for the query).

Best regards,
Bjoern

On 29 August 2019 at 17:54:16, Roy Teeuwen ([email protected]) wrote:

Hey all,

In the framework that we use (AEM) there is a folder structure as
following:

/content/launches/2019/08/29/my-launch/content/site-name

I would like to do a query to search for subresources in this site, but it
seems that this gives issues because an xpath query cannot take numbers as
path names:

/jcr:root/content/launches/2019(*)/08/29/my-launch/content/site-name//*[@sling:resourceType='some/components/path'];
expected: jcr:root, /, *, @, (, .

Is there any way around this to still make it work with xpath queries? Can
I escape it in any way? Or can I say "start the query below
/content/launches/2019/08/29/my-launch/content/site-name so that it doesnt
see the numbers in the query

Thanks!
Roy

Reply via email to