<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<html>
			<body>
				<xsl:for-each select="data">
					<xsl:copy-of select="@*"/>
					<xsl:apply-templates mode="copy"/>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>


	<!-- Recursive Copying Template -->
	<xsl:template match="@*|node()" mode="copy">
		<xsl:choose>
			<!-- Change tag from italic to i and copy all childs and attributes-->
			<xsl:when test="string(name(.))='italic'">
				<i>
					<xsl:copy-of select="@*"/>
					<xsl:apply-templates mode="copy"/>
				</i>
			</xsl:when>

			<!-- Standard Copy -->
			<xsl:otherwise>
				<xsl:copy>
					<xsl:copy-of select="@*"/>
					<xsl:apply-templates mode="copy"/>
				</xsl:copy>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>