<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- XSL stylesheet for XML memo documents -->
<!-- J. Remmers, March 2004                -->

<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">

    <html>
    <head>
        <title>Memo: <xsl:value-of select="memo/subject"/></title>
    </head>
    <body>
        <table>
	<tr>
	<th align="left">Date:</th>
	<td><xsl:value-of select="memo/date"/></td>
        </tr>
	<tr>
	<th align="left">To:</th>
	<td><xsl:value-of select="memo/to"/></td>
        </tr>
	<tr>
	<th align="left">From:</th>
	<td><xsl:value-of select="memo/from"/></td>
        </tr>
	<tr>
	<th align="left">Subject:</th>
	<td><xsl:value-of select="memo/subject"/></td>
        </tr>
	<tr>
	<th align="left">Priority:</th>
	<td><xsl:value-of select="memo/@priority"/></td>
	</tr>
        </table>

        <p><xsl:value-of select="memo/body/greeting"/></p>

	<xsl:for-each select="memo/body/para">
	<p><xsl:value-of select="."/></p>
        </xsl:for-each>

	<p><i><xsl:value-of select="memo/body/signature"/></i></p>
    </body>
    </html>


</xsl:template>

</xsl:stylesheet>
