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:29:12 UTC
[jira] [Updated] (OAK-4387) XPath: querying for nodes named "text"
and "element" fails
[ https://issues.apache.org/jira/browse/OAK-4387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Mueller updated OAK-4387:
--------------------------------
Fix Version/s: 1.5.3
> 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
> Assignee: Thomas Mueller
> Fix For: 1.5.3
>
>
> 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)