<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:include href="wysiwyg.xsl"/>

<xsl:template match="AUTHOR-INFO">
	<xsl:apply-templates select="AUTHOR-NAME"/>
	<br/>
	<xsl:apply-templates select="URL"/>
	<br/>
	<xsl:apply-templates select="MAIL"/>
	<br/>
</xsl:template>

<xsl:template match="AUTHOR-INFO/AUTHOR-NAME">
	<span class="message_autor_name"><xsl:value-of select="."/></span>
	<br/>
</xsl:template>

<xsl:template match="AUTHOR-INFO/MAIL">
	<span class="message_autor_mail"><xsl:value-of select="."/></span>
	<br/>
</xsl:template>

<xsl:template match="MESSAGE">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td width="25%" valign="top">
		<xsl:apply-templates select="AUTHOR-INFO"/><br/>
		<span class="message_date_time">
			<xsl:apply-templates select="DATE-TIME"/>
		</span>
			<br/>
		</td>
		<td width="75%"  valign="top">
			<table width="100%" cellpadding="0" cellspacing="0" border="0" align="left">
				<tr >
					<td align="right" valign="top" width="100%">
						<xsl:apply-templates select="ACTIONS"/>
					</td>
				</tr>
				<tr>
					<td width="100%" valign="top"><span class="pageContent"><xsl:apply-templates select="COMMENT"/></span></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</xsl:template>

<xsl:template match="COMMENT"><xsl:apply-templates select="*|@*|comment()|text()"/></xsl:template>

<xsl:template match="COMMENT//@*|COMMENT//comment()|COMMENT//text()">
<xsl:copy>
	<xsl:apply-templates select="*|@*|comment()|text()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="COMMENT//*">
<xsl:copy>
	<xsl:attribute name="class">message_comment</xsl:attribute>
	<xsl:apply-templates select="*|@*|comment()|text()"/>
</xsl:copy>
</xsl:template>

</xsl:stylesheet>