You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2016/05/20 13:28:12 UTC
[jira] [Created] (OAK-4387) XPath: querying for nodes named "text"
and "element" fails
Thomas Mueller created OAK-4387:
-----------------------------------
Summary: XPath: querying for nodes named "text" and "element" fails
Key: OAK-4387
URL: https://issues.apache.org/jira/browse/OAK-4387
Project: Jackrabbit Oak
Issue Type: Bug
Reporter: Thomas Mueller
Queries that contain "text" or "element" as a node name currently fail, because the the parser assumes "text()" / "element(...)". Example query that fails:
{noformat}
/jcr:root/content/text/jcr:content//element(*,nt:unstructured)
{noformat}
A workaround is to use the escape mechanism, that is:
{noformat}
/jcr:root/tmp/_x0074_ext/jcr:content//element(*,nt:unstructured)
{noformat}
It looks like '(' and ')' are valid characters in node names, but to query for those characters, they need to be escaped.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)