Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1669

xpath node test ./node() should match all contained nodes

    XMLWordPrintableJSON

Details

    Description

      Per: https://github.com/apache/tika/pull/52 and Wulf Berschin:

      following the w3c spec the xpath node test ./node() should matches all contained nodes (types) but not attributes since attributes are no children. (=> Changes in NodeMatcher)
      
      So "/node()" returns a superset of "/*". In XPathParser the latter lead to the construction of "ChildMatcher(parse(xpath.substring(2)));" but the first simply returned a "NodeMatcher.INSTANCE" what is wrong i.m.o.
      

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            chrismattmann Chris A. Mattmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: