XSLT: How to change an attribute value during ?

后端 未结 8 493
南旧
南旧 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:53

    The top two answers will not work if there is a xmlns definition in the root element:

    
    
        
    
    

    All of the solutions will not work for the above xml.

    The possible solution is like:

     
    
    
    
      
      
          
                    some new value here
              
      
    
      
          
              
          
      
    
    

提交回复
热议问题