Getting the parent node attributes in XSL

前端 未结 2 1508
温柔的废话
温柔的废话 2021-02-18 20:21

In my XML I have the following:


  
    
      
        
          someResult         


        
2条回答
  •  伪装坚强ぢ
    2021-02-18 20:43

    Use:

    ancestor::c[1]/@something
    

    This selects the attribute named something of the first (from the current node upwards) ancestor named c.

提交回复
热议问题