Split specific element attribute into multiple rows based on delimiter

后端 未结 1 586
闹比i
闹比i 2021-01-28 16:16

I am trying to transform an XML and split the third App_Data element Value into multiple duplicate rows based on the commas from:

    
        &l         


        
1条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-28 16:34

    it only makes the attributes into child -elements when I need attributes

    Actually, your example shows that you do need an element for each token.

    Try it this way:

    XSLT 1.0

    
    
    
    
    
    
        
            
        
    
    
    
        
            
        
    
    
    
        
        
            
            
                
            
            
                
                
                    
                
            
    
    
    
    

    Or, if you prefer a shorter (but non-reusable) version:

    
    
    
    
    
    
        
            
        
    
    
    
        
        
            
            
                
            
            
                
                
                    
                
            
    
    
    
    

    0 讨论(0)
提交回复
热议问题