XSLT Create a hierarchical structure from a flat structure by using certain level criteria

后端 未结 2 1284
被撕碎了的回忆
被撕碎了的回忆 2021-01-26 08:18

I want to create a XSD structure from an Excel output using XSLT. But my XSLT does not generate the hierarchical structure, correctly. It has some additional nodes in an element

2条回答
  •  天涯浪人
    2021-01-26 08:44

    Here is a suggestion using a recursive function:

    
    
      
    
      
          
          
          
            
                
                
                    
                        
                    
                    
                        
                    
                
            
          
      
    
      
          
              
          
      
    
      
          
      
    
    
    

    You will have to test yourself with more levels or provide some input samples with deeper nesting to allow us to test.

提交回复
热议问题