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