XSLT combine multiple nodes into single node

前端 未结 3 1642
無奈伤痛
無奈伤痛 2021-01-06 09:43

 
  Sydney Office
  SYDNEY
  

        
3条回答
  •  时光取名叫无心
    2021-01-06 10:09

    I would start with a template like

    
    

    which should more precisely match the element you want matched. As to how to select the adjacent sibling element... why not use the following-sibling XPath axis with the proper string?

    
      
      ...
      
      ...
    
    
    
      
      ...
    
    

    BTW, this looks like an endless loop waiting to happen:

    
       ...
       
       ...
    
    

    I am sure there are a few mistakes in my answer, but it should be helpful in some capacity anyway.

提交回复
热议问题