Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4387

XPath: querying for nodes named "text", "element", and "rep:excerpt" fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.3, 1.6.0
    • None
    • None

    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

          Activity

            People

              thomasm Thomas Mueller
              thomasm Thomas Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: