<?xml version="1.0"?>

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


<xsl:template match="Survey">
<html>
   <head><title>XML Content Management Forum Survey</title></head>
   <body>
   <h1 align="center">XML Content Management Forum Survey</h1>
<xsl:variable name="attendees">0</xsl:variable>
<!--   <xsl:for-each select="Number">
      <xsl:variable name="attendees"><xsl:value-of select="$attendees + ."/>
      </xsl:variable>
   </xsl:for-each>
-->
   <p><b>Number of Potential Attendees: <xsl:value-of select="$attendees"/>
   </b></p> 
   <table align="center" width="90%" border="1">
   <tr valign="bottom">
   <th>&#160;</th>
   <th>Personal Information</th>
   <th>Interest in Attending</th>
   <th>Number of Attendees</th>
   <th>Interest in Rulemaking</th>
   <th>Subject</th>
   <th>Cost</th>
   <th>Attended Last Year</th>
   <th>Location</th>
   <th>Multiple Days</th>
   <th>Suggestion</th>
   <th>Comments</th>
   </tr>
  <xsl:apply-templates/>
   </table>
   </body>
</html>
</xsl:template>

<xsl:template match="*">
   <td><xsl:apply-templates/>&#160;</td>
</xsl:template>

<xsl:template match="Answers">
   <xsl:apply-templates/>
</xsl:template>

<xsl:template match="Response">
   <tr valign="top">
     <td><xsl:number level="multiple" count="Response" format="1."/>.</td>
     <xsl:apply-templates/>
   </tr>
</xsl:template>

<xsl:template match="PersonalInfo">
       <td><xsl:value-of select="Name"/><br/>
           <xsl:value-of select="Sector"/><br/>
           <xsl:value-of select="Industry"/><br/>
           <xsl:value-of select="OrgName"/><br/>
           <xsl:value-of select="Email"/><br/>
       </td>
</xsl:template>
<xsl:template match="Name"/>
<xsl:template match="Sector"/>
<xsl:template match="Industry"/>
<xsl:template match="OrgName"/>
<xsl:template match="Email"/>

</xsl:stylesheet>
