2007-07-16 22:27:55 -04:00
|
|
|
<?xml version='1.0'?>
|
|
|
|
|
2007-08-11 04:26:38 -04:00
|
|
|
<xsl:stylesheet version="2.0"
|
2007-08-11 05:24:19 -04:00
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
2007-08-11 04:26:38 -04:00
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
2007-08-12 16:06:22 -04:00
|
|
|
xmlns:fn="http://www.w3.org/2005/xpath-functions"
|
2007-09-14 00:45:51 -04:00
|
|
|
xmlns:csc="http://csclub.uwaterloo.ca/xslt">
|
2007-07-16 22:27:55 -04:00
|
|
|
|
|
|
|
<xsl:template match="members-this-term">
|
2007-08-11 04:26:38 -04:00
|
|
|
<p>The members for <xsl:value-of select="csc:term($g_date)" /> are
|
2007-09-26 02:46:20 -04:00
|
|
|
listed here. We currently have
|
2007-10-05 21:55:10 -04:00
|
|
|
<xsl:value-of select="count(document(concat($g_outdir, 'members.xml'))/memberlist/member)" />
|
2007-07-16 22:27:55 -04:00
|
|
|
members.</p>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Program</th>
|
|
|
|
<th>Userid</th>
|
|
|
|
</tr>
|
2007-10-05 21:55:10 -04:00
|
|
|
<xsl:for-each select="document(concat($g_outdir, 'members.xml'))/memberlist/member">
|
2007-07-16 22:27:55 -04:00
|
|
|
<xsl:variable name="class">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="position() mod 2 = 0">members1</xsl:when>
|
|
|
|
<xsl:otherwise>members2</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:variable>
|
|
|
|
<tr class="{$class}">
|
|
|
|
<td><xsl:value-of select="@name" /></td>
|
|
|
|
<td><xsl:value-of select="@program" /></td>
|
|
|
|
<td><xsl:value-of select="@userid" /></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</table>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|