CSV to XML using xslt - how to have incrementing column name

前端 未结 4 1379
小鲜肉
小鲜肉 2021-01-03 13:42

I have this xslt to convert a csv to xml, works fine, except the tag is the same for all columns. I need it to increment like this


  

        
4条回答
  •  难免孤独
    2021-01-03 13:55

    It looks as though csvtoxml is being called with a large string and it recursively works it's way through that string. position() won't work in this case because you're not working with a set of nodes.

    Instead you might be able to achieve what you're after with a counting param:

    
        
        
        
        
            
            
                
                
                    
                
                
                
                    
                    
                
            
            
            
                
                    
                
            
        
    
    

提交回复
热议问题