How do I remove spaces in all attribute values using xslt?
问题 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: <OrderList> <Order OrderDate="26-July" OrderNo="ORDER 12345" CustomertName="JOHN DOE" OrderKey="ORDKEY12345"> <ShipAddress AddressLine="ABC Colony" FirstName="John" LastName="Doe "/> </Order> </OrderList> and the xsl I used to get rid of the spaces in the attributes like CustomertName="JOHN DOE" is: <?xml version="1.0" encoding="UTF-8"?> <xsl