I have an input XML
US A
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...