XSL - copy elements but remove unused namespace(s)

后端 未结 4 488
悲哀的现实
悲哀的现实 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:09

    This will remove the x namespace from output.

    
    

    Remember to do two things when you deal with a default namespace. First map it into something in the stylesheet tag, and then remove it using a namespace-alias.

提交回复
热议问题