XSLT: moving a grouping html elements into section levels

前端 未结 4 904
礼貌的吻别
礼貌的吻别 2020-11-27 08:18

I\'m trying to write an XSLT that organizes an HTML file into different section levels depending on the header level. Here is my input:


 

        
4条回答
  •  执念已碎
    2020-11-27 08:53

    Here is an XSLT 2.0 stylesheet:

    
    
      
    
      
        
        
        
          
            
              

    It should do what you asked for, although it does not stop at four nested levels but rather groups as long as it finds h[n] elements.

提交回复
热议问题