Don't output vacant positions
[mspang/www.git] / xsl / positions.xsl
1 <?xml version='1.0'?>
2
3 <xsl:stylesheet version="1.0"
4     xmlns="http://www.w3.org/1999/xhtml"
5     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6     xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
7
8 <xsl:template match="positions">
9   <xsl:variable name="exec" select="@exec" />
10   <xsl:for-each select="csc:position-list('')/position[@exec=$exec]">
11     <xsl:sort select="@order" order="ascending" />
12     <xsl:if test="holder">
13       <p>
14         <div class="position">
15           <a href="mailto:{@position}@csclub.uwaterloo.ca"><xsl:value-of select="@name" /></a>
16         </div>
17         <xsl:for-each select="holder">
18           <xsl:value-of select="@name" /><br />
19         </xsl:for-each>
20       </p>
21     </xsl:if>
22   </xsl:for-each>
23 </xsl:template>
24
25 </xsl:stylesheet>