<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" indent="yes"/>
    <xsl:template match="/application">
        <html>
            <head>
                <title>
                    <xsl:value-of select="name"/> Membership Application</title>
            </head>
            <body>
                <h2>Membership Application</h2>
                <div style="margin: 2em">
                    <table width="90%" cellspacing="6">
                        <tr>
                            <td nowrap="nowrap">
                                <strong>Applicant Name</strong>
                            </td>
                            <td>
                                <xsl:value-of select="name"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Email</strong>
                            </td>
                            <td>
                                <xsl:value-of select="email"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>City, Country</strong>
                            </td>
                            <td>
                                <xsl:value-of select="city"/>, <xsl:value-of select="country"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Organization</strong>
                            </td>
                            <td>
                                <xsl:value-of select="organization"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>Merit</strong>
                            </td>
                            <td>
                                <xsl:value-of select="merit"/>
                            </td>
                        </tr>
                    </table>
                    <h4>Survey Data</h4>
                    <table width="90%" cellspacing="6">
                        <tr>
                            <td nowrap="nowrap">
                                <strong>Organization Size</strong>
                            </td>
                            <td>
                                <xsl:value-of select="survey/orgsize"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <strong>How do you use Plone?</strong>
                            </td>
                            <td>
                                <xsl:value-of select="survey/ploneuse"/>
                            </td>
                        </tr>
                    </table>
                </div>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>
