XSLT for replace attribute in XML element if it exists in another XML?

后端 未结 1 1628
轻奢々
轻奢々 2021-01-14 18:30

I have 2 files

catalog.xml



    

        
1条回答
  •  半阙折子戏
    2021-01-14 19:28

    The following transform, uses catalog.xml as input and loads vinyl.xml using document(). It performs the merge just by making a simple test.


    [XSLT 1.0]

    
        
        
    
        
            
                
            
        
    
        
            
                
                
                    
                        
                    
                    
                        
                    
                
            
        
    
    
    

    This template for the attribute is less immediate, but it exploits pure XPath:

    
        
            
        
    
    

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