<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html"/>

	<xsl:template match="/">
		<H1>Email Listing</H1>
		<xsl:for-each select="mailbox/email">
			<table>
				<xsl:apply-templates/>
			</table>
		</xsl:for-each>
	</xsl:template>

	<xsl:template match="from">
		<tr>
			<td>From:</td>
			<td>
				<xsl:value-of select="concat(name, '(', address, ')')"/>
			</td>
		</tr>
	</xsl:template>

	<xsl:template match="to">
		<tr>
			<td>To:</td>
			<td>
				<xsl:value-of select="concat(name, '(', address, ')')"/>
			</td>
		</tr>
	</xsl:template>

	<xsl:template match="subject">
		<tr>
			<td>Subject:</td>
			<td>
				<xsl:value-of select="."/>
			</td>
		</tr>
	</xsl:template>

	<xsl:template match="content">
		<tr>
			<td colspan="2">
				<xsl:value-of select="."/>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="emails.xml" userelativepaths="yes" externalpreview="no" url="emails.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->