I have an input XML
<Request>
<Info>
<Country>US</Country>
<Part>A</Part>
</Info>
</Request>
My output should be like
<Request
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://hgkl.kj.com">
<Info>
<Country>US</Country>
<Part>A</Part>
</Info>
</Request>
Please let me know how to add the multiple namespaces and a default namespace like the above XML.
Here's how I'd do it in XSLT 2.0...
XML Input
XSLT 2.0
XML Output
Here's an XSLT 1.0 option which produces the same output, but requires you to know the name of the root element...