Merge 2 XML files and modifying the attribute values

前端 未结 2 1185
无人及你
无人及你 2021-01-21 10:21

I have two xml files. I want to merge them and make some arithmetic with a few attributes. Please provide some ideas. I am using a standard xslt http://informatik.hu-berlin.de/m

2条回答
  •  日久生厌
    2021-01-21 10:53

    This transformation:

    
     
    
     
     
    
     
    
     
       
     
    
     
       
     
    
    

    when applied on any XML document (not used), and having the two provided XML documents reside in:

    c:/temp/delete/file1.xml:

    
    
    

    and c:/temp/delete/file2.xml:

    
    
    

    produces the wanted, correct result:

    
    

提交回复
热议问题