How to remove namespace prefix leaving namespace value (XSLT)?

前端 未结 2 680
青春惊慌失措
青春惊慌失措 2020-12-21 21:57

I know how to remove namespaces at all but what I need to do is only to remove specific namespace prefixes eg transform this file (removing xenc prefixes):

&         


        
2条回答
  •  别那么骄傲
    2020-12-21 22:07

    Try the following stylesheet. It contains the identity transform and a template to strip the namespace of xenc:* elements. Note that xenc:* attributes are not handled.

    
    
    
        
            
        
    
    
    
        
            
        
    
    
    
    

提交回复
热议问题