Description
Queries that contain "text" or "element" as a node name currently fail, because the the parser assumes "text()" / "element(...)". Example query that fails:
/jcr:root/content/text/jcr:content//element(*,nt:unstructured)
A workaround is to use the escape mechanism, that is:
/jcr:root/tmp/_x0074_ext/jcr:content//element(*,nt:unstructured)
It looks like '(' and ')' are valid characters in node names, but to query for those characters, they need to be escaped.
Attachments
Issue Links
- relates to
-
OAK-4437 Backport OAK-4387 (XPath: querying for nodes named "text"...) to 1.2 and 1.4
- Closed