XSL - copy elements but remove unused namespace(s)

后端 未结 4 599
悲哀的现实
悲哀的现实 2020-12-30 03:56

I\'ve got some XML which declares a namespace which is only used for attributes, like this:




        
4条回答
  •  孤城傲影
    2020-12-30 04:23

    
    
        
            
        
    
        
            
                
            
        
    
        
            
        
    
        
    
    

    I found an explanation here.

    Michael Kay wrote:
    exclude-result-prefixes only affects the namespaces copied from the stylesheet by a literal result element, it doesn't affect copying of namespaces from source documents.

提交回复
热议问题