How to use XSLT to convert a XML to Table [CODE UPDATED 11/6]

前端 未结 2 1483
隐瞒了意图╮
隐瞒了意图╮ 2021-01-28 10:41

I have a XML file want to convert to a Table OR CSV by XSLT. I tried by Altova MapForce 2014to map the columns but still,not able to gen out the outcomes. thanks a lot.

2条回答
  •  生来不讨喜
    2021-01-28 11:04

    You need two nested loops here:

    ...
    
        
        
        
            
                
                    
                    
                    
                    
                    
                    
                    
                    
                    
                
            
    
    ...
    

    Edit:

    To avoid storing all name details in individual variables, you can do:

    
        
        
            
                
                
                
                
                
                
                
                
                
            
        
    
    

    Edit 2:

    Here's an example of 3 nested loops, adding the dates you have added in your latest edit.

    
        
        
            
            
                
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    
                
            
        
    
    

提交回复
热议问题