XSLT to sum product of two attributes

前端 未结 6 1174
花落未央
花落未央 2021-01-12 16:53

I have the following XML source structure:


    
    

        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 17:42

    
      
        
          
          
            
          
        
      
    
        
        
        
    
        
    
        
        
          
          
            
            
          
        
    
        
        
          
        
    
      
    
    

    Gives:

    410
    

    The two s can be replaced by a single . This would mean one less check during the recursion, but it also means two additional lines of code.

提交回复
热议问题