Chris A. Mattmann created TIKA-1669:
---------------------------------------

             Summary: xpath node test ./node() should matches all contained 
nodes (types
                 Key: TIKA-1669
                 URL: https://issues.apache.org/jira/browse/TIKA-1669
             Project: Tika
          Issue Type: Bug
          Components: handler, parser
         Environment: Github https://github.com/apache/tika/pull/52
            Reporter: Chris A. Mattmann
            Assignee: Chris A. Mattmann
             Fix For: 1.10


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

{noformat}
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.
{noformat}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to