How to replace namespace prefix in element and attributes using xslt
问题 I have a source xml like following: <SampleRequest xmlns="http://sample.com/s" xmlns:s1="http://sample.com/s1" xmlns:s2="http://sample.com/s2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sample.com/s schema.xsd"> <data> <s1:customer s1:firstName="Jim" s1:lastName="Ellison"/> <s2:address> 123 test street </s2:address> </data> </SampleRequest> I need to transform it to the following <SampleRequest xmlns="http://sample.com/t" xmlns:t1="http://sample.com/t1"