Inserting namespaces in xml through Xsl 1.0

Curio

New Member
I have my Input XML like this -\[code\]<Integer xmlns="www.maths.com" xmlns:abc="www.dateTypes.com" xmlns:def="www.calculations.com"> <ID>A1</ID> <abc:Date>2005-11-20</abc:Date> <Type>12345</Type> <def:Maths>Multiply</def:Maths></Integer>\[/code\]I want to add namespaces through XSL 1.0 to the root element with same prefixes but with different value to it.I want my output to be like -\[code\]<Integer xmlns="www.maths.com" xmlns:abc="www.dateTypes-2.0" xmlns:def="www.calculations-2.0"> <ID>A1</ID> <abc:Date>2005-11-20</abc:Date> <Type>12345</Type> <def:Maths>Multiply</def:Maths></Integer>\[/code\]Please suggest.
 
Back
Top