Need help to create an XSL file that will transform the input XML file input.xml to the format of output.xml

前端 未结 1 632
隐瞒了意图╮
隐瞒了意图╮ 2020-12-21 20:25

I need to:

  1. Transform the input.xml (file below) to the format of output.xml
  2. Create another XLS that will display per each am
1条回答
  •  我在风中等你
    2020-12-21 20:38

    You need to link the quantities to their respective orders by matching the order id. The best way to do this is by using a key:

    XSLT 1.0

    
    
    
      
    
    
    
        
             
                
                    
                    
                        
                              
                        
                    
                    
            
        
    
    
    
    
    

    Note that we are assuming that each order has no more than one quantity of each unit (i.e no summing is required). Also it seems to me that the target structure is less useful than what you're starting with.

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