xslt compare two different nodes and then combine

后端 未结 2 1146
栀梦
栀梦 2021-01-21 21:18

I have a requirement where i need to show the difference amount () based on two different values which is in different section.The input xml as b

2条回答
  •  [愿得一人]
    2021-01-21 22:02

    This is your solution to sum these values:

    XSLT:

    
      
      
      
    
    
      
        
          
          
          
          
        
      
    
      
        
          
            
              
                
                
                
                
                
                  
                    
                      
                    
                    
                      
                    
                  
                
              
              
                
                  
                
              
            
          
        
      
    
    
    
    

    OUTPUT:

    
       
          LTRW00
          34142
          Cr
          1250
       
       
          LUL500
          34142
          Cr
          300
       
       
          1550
       
    
    

提交回复
热议问题