Actions
Bug #14093
closedREXML doesn't implement name() and interprets nam() as an element path.
    Bug #14093:
    REXML doesn't implement name() and interprets nam() as an element path.
  
Description
Please see the attached script.
Considering this xml:
<a><b><name/></b></a>
The xpath /a/b/name() xpath should return the name of element a. Instead it returns the child element name.
Output:
<name/>
Files
        
           Updated by hsbt (Hiroshi SHIBATA) almost 8 years ago
          Updated by hsbt (Hiroshi SHIBATA) almost 8 years ago
          
          
        
        
      
      - Status changed from Open to Assigned
- Assignee set to kou (Kouhei Sutou)
        
           Updated by kou (Kouhei Sutou) almost 8 years ago
          Updated by kou (Kouhei Sutou) almost 8 years ago
          
          
        
        
      
      - Status changed from Assigned to Rejected
/a/b/name() is an invalid LocationPath. LocationPath is consists of Steps. You can't use name() as Step. Because name() isn't NodeTest.
        
           Updated by kou (Kouhei Sutou) almost 8 years ago
          Updated by kou (Kouhei Sutou) almost 8 years ago
          
          
        
        
      
      - Description updated (diff)
Actions