How do I remove spaces in all attribute values using xslt?

后端 未结 2 1994
刺人心
刺人心 2021-01-06 14:22

I want to remove spaces from all attributes in my xmls using xslt. I used strip-space, but that removes the spaces from nodes. My input xml is:

         


        
2条回答
  •  花落未央
    2021-01-06 15:07

    You can use the translate function, like so, although it would make sense to refactor this with a call template:

    
        
    
    
        
    
    
        
    
    

提交回复
热议问题