Unable to copy and modify attribute in XSLT when using a namespace

后端 未结 2 1692
梦如初夏
梦如初夏 2021-01-23 13:57

I\'m trying to transform an XML document and modify the attributes of single element but the transform is not getting applied if the root element has a namespace attribute. Simp

2条回答
  •  不思量自难忘°
    2021-01-23 14:35

    The element you're trying to match is in a namespace (the default namespace), so you need to properly use namespaces in your XSLT:

    
                      
      
    
      
      
        
          
        
        
    
      
                    
      
        
          
          
          
            
                     
          
        
      
    
    

提交回复
热议问题