XSLT: How to change an attribute value during ?

后端 未结 8 497
南旧
南旧 2020-11-29 01:14

I have an XML document, and I want to change the values for one of the attributes.

First I copied everything from input to output using:



        
8条回答
  •  既然无缘
    2020-11-29 01:47

    This problem has a classical solution: Using and overriding the identity template is one of the most fundamental and powerful XSLT design patterns:

    
        
    
        
    
        
            
                
            
        
    
        
            
                
            
        
    
    

    When applied on this XML document:

    
      value1
      value2
    
    

    the wanted result is produced:

    
      value1
      value2
    
    

提交回复
热议问题