Use xsl:element to create an element node in the output document.
Note: the curly braces in the name attribute may look strange, if you aren't familiar. It is an Attribute Value Template used to evaluate an XPATH expression inside of an attribute declaration.
Applied to your stylesheet: