Hi Roy
Like others said before, ISO9075 is what you need. You only need to
encode the first digit. The encoding is simple enough to remember (if
used regularly ;) ):
0: _x0030_
1: _x0031_
2: _x0032_
...
Your query would thus become:
If I recall correctly, if you want to use paths in XPath queries then you
need to escape the path segments according to ISO9075 rules. For your
referenced, there is a brief section about that on the wiki at [1].
Also, there is a utility class in jackrabbit that can do the ISO9075 path
encoding
It seems that there's a mismatch between what is a valid XML name (which
is what XPath is supposed to be working with) and what is a valid JCR
node name.
XPath accepts an XML name in a path [1], which by definition cannot
start with a number [2].
JCR says that local node names can start with
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 (r...@teeuwen.be) 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