<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xsl:template match="br | BR"><br/></xsl:template>
    <xsl:template match="strong | STRONG"><strong><xsl:apply-templates/></strong></xsl:template>
	<xsl:template match="strike | STRIKE"><strike><xsl:apply-templates/></strike></xsl:template>
	<xsl:template match="b | B"><b><xsl:apply-templates/></b></xsl:template>
    <xsl:template match="u | U"><u><xsl:apply-templates/></u></xsl:template>
    <xsl:template match="i | i"><i><xsl:apply-templates/></i></xsl:template>
    <xsl:template match="ul | UL"><ul><xsl:apply-templates/></ul></xsl:template>
	<xsl:template match="ol | OL"><ol><xsl:apply-templates/></ol></xsl:template>
    <xsl:template match="li | LI"><li><xsl:apply-templates/></li></xsl:template>
	<xsl:template match="p | P"><p>
		<xsl:if test="count(@align)>0"><xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@class)>0"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@style)>0"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@id)>0"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@title)>0"><xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute></xsl:if>
		<xsl:apply-templates select="p|P|a|A|blockquote|BLOCKQUOTE|span|SPAN|div|DIV|font|FONT|strong|STRONG|strike|STRIKE|b|B|i|I|br|BR|u|U|li|LI|ul|UL|ol|OL|text() "/>
	</p></xsl:template>
    <xsl:template match="a | A">
      <a>
         <xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
         <xsl:if test="count(@target)>0"><xsl:attribute name="target"><xsl:value-of select="@target"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@class)>0"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@style)>0"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@name)>0"><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@title)>0"><xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@id)>0"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
         <xsl:apply-templates select="p|P|a|A|blockquote|BLOCKQUOTE|span|SPAN|div|DIV|font|FONT|strong|STRONG|strike|STRIKE|b|B|i|I|br|BR|u|U|li|LI|ul|UL|ol|OL|text() "/>
      </a>
    </xsl:template>
	<xsl:template match="font | FONT">
      <font>
         <xsl:if test="count(@face)>0"><xsl:attribute name="face">Arial, Helvetica, sans-serif</xsl:attribute></xsl:if>
		 <xsl:if test="count(@class)>0"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@style)>0"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@size)>0"><xsl:attribute name="size"><xsl:value-of select="@size"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@pointsize)>0"><xsl:attribute name="pointsize"><xsl:value-of select="@pointsize"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@color)>0"><xsl:attribute name="color"><xsl:value-of select="@color"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@id)>0"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@title)>0"><xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute></xsl:if>
         <xsl:apply-templates select="p|P|a|A|blockquote|BLOCKQUOTE|span|SPAN|div|DIV|font|FONT|strong|STRONG|strike|STRIKE|b|B|i|I|br|BR|u|U|li|LI|ul|UL|ol|OL|text() "/>
      </font>
    </xsl:template>
	<xsl:template match="div | DIV">
      <div>
         <xsl:if test="count(@align)>0"><xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@class)>0"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@style)>0"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@id)>0"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@title)>0"><xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute></xsl:if>
         <xsl:apply-templates select="p|P|a|A|blockquote|BLOCKQUOTE|span|SPAN|div|DIV|font|FONT|strong|STRONG|strike|STRIKE|b|B|i|I|br|BR|u|U|li|LI|ul|UL|ol|OL|text() "/>
      </div>
    </xsl:template>
	<xsl:template match="span | SPAN">
      <span>
     	 <xsl:if test="count(@class)>0"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@style)>0"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@id)>0"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@title)>0"><xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute></xsl:if>
         <xsl:apply-templates select="p|P|a|A|blockquote|BLOCKQUOTE|span|SPAN|div|DIV|font|FONT|strong|STRONG|strike|STRIKE|b|B|i|I|br|BR|u|U|li|LI|ul|UL|ol|OL|text() "/>
      </span>
    </xsl:template>
	<xsl:template match="blockquote | BLOCKQUOTE">
      <blockquote>
     	 <xsl:if test="count(@class)>0"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@style)>0"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@id)>0"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
		 <xsl:if test="count(@title)>0"><xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute></xsl:if>
         <xsl:apply-templates select="p|P|a|A|blockquote|BLOCKQUOTE|span|SPAN|div|DIV|font|FONT|strong|STRONG|strike|STRIKE|b|B|i|I|br|BR|u|U|li|LI|ul|UL|ol|OL|text() "/>
      </blockquote>
    </xsl:template>
</xsl:stylesheet>

