XSLT: Change certain attribute values

后端 未结 4 1318
孤街浪徒
孤街浪徒 2021-01-12 08:16

I am a XSLT newbie and have a simple task:

Suppose I have the following XML:


    
         


        
4条回答
  •  太阳男子
    2021-01-12 08:59

    You didn't say what happens when @attr=3 for example so there is an otherwise clause to just copy the value if it is not one of the selected.

    
    
      
        
      
    
    
      
        
          
            A
          
          
            X
          
          
            
          
        
      
    
    
    

提交回复
热议问题