How can I wrap a group of adjacent elements using XSLT?

后端 未结 2 1647
一整个雨季
一整个雨季 2020-12-06 18:27

I have some XML with elements, and I\'d like to wrap any consecutive runs with elements. So, source XML would look so

2条回答
  •  没有蜡笔的小新
    2020-12-06 18:47

    This transformation:

    
     
    
     
    
     
      
       
      
     
    
     
      
        
        
      
     
    
     
    
     
      
     
    
    

    when applied on the provided XML document:

    Heading Blah item 1 item 2 item 3 item 4 Something else

    produces the wanted result:

    Heading Blah item 1 item 2 item 3 item 4 Something else

提交回复
热议问题