Adding presentor name and making thumbnails clickable.
[mspang/www.git] / xsl / members.xsl
1 <?xml version='1.0'?>
2
3 <xsl:stylesheet version="1.1"
4     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5     xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
6     xmlns="http://www.w3.org/1999/xhtml"
7     exclude-result-prefixes="csc">
8 <xsl:output method="xml" />
9
10 <xsl:template match="members-this-term">
11   <p>The members for <xsl:value-of select="csc:term($g_date)" /> are
12     listed here. We currently have
13     <xsl:value-of select="count(csc:member-list('')/member)" />
14     members.</p>
15   <table>
16     <tr>
17       <th>Name / Webpage</th>
18       <th>Program</th>
19       <th>Userid</th>
20     </tr>
21     <xsl:for-each select="csc:member-list('')/member">
22       <xsl:sort select="@name" order="ascending" />
23       <xsl:variable name="class">
24         <xsl:choose>
25           <xsl:when test="position() mod 2 = 0">members1</xsl:when>
26           <xsl:otherwise>members2</xsl:otherwise>
27         </xsl:choose>
28       </xsl:variable>
29       <tr class="{$class}">
30         <td><a href="/~{@userid}/"><xsl:value-of select="@name" /></a></td>
31         <td><xsl:value-of select="@program" /></td>
32         <td><xsl:value-of select="@userid" /></td>
33       </tr>
34     </xsl:for-each>
35   </table>
36 </xsl:template>
37
38 </xsl:stylesheet>