8357b32f996b7db5740374a050d668ebe910d770
[mspang/www.git] / xsl / exec.xsl
1 <?xml version='1.0'?>
2
3 <xsl:stylesheet version="2.0"
4     xmlns="http://www.w3.org/1999/xhtml"
5     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6     xmlns:xs="http://www.w3.org/2001/XMLSchema"
7     xmlns:fn="http://www.w3.org/2005/xpath-functions"
8     xmlns:csc="http://csclub.uwaterloo.ca/xslt">
9
10 <xsl:template match="execlist">
11   <h3>Elected positions</h3>
12   <ul>
13     <xsl:apply-templates select="exec[@type='elected']" />
14   </ul>
15   <h3>Appointed positions</h3>
16   <ul>
17     <xsl:apply-templates select="exec[@type='appointed']" />
18   </ul>
19 </xsl:template>
20
21 <xsl:template match="exec">
22   <li>
23     <xsl:value-of select="@name" /> is this term's <b>
24     <xsl:value-of select="@position" /></b>. You can <a
25     href="mailto:{@userid}@csclub.uwaterloo.ca">e-mail the
26     <xsl:value-of select="@position" /></a>
27     <xsl:if test="not(@href='')">
28       or <a href="{@href}">visit
29       <xsl:choose>
30         <xsl:when test="@sex='male'"> his </xsl:when>
31         <xsl:when test="@sex='female'"> her </xsl:when>
32         <xsl:otherwise> his or her </xsl:otherwise>
33       </xsl:choose>
34       homepage</a>
35     </xsl:if>.
36   </li>
37 </xsl:template>
38
39 </xsl:stylesheet>