Fetch positions (including exec) from ldap
[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     <p>
13       <div class="position">
14         <a href="mailto:{@position}@csclub.uwaterloo.ca"><xsl:value-of select="@name" /></a>
15       </div>
16       <xsl:if test="not(holder)">Vacant</xsl:if>
17       <xsl:for-each select="holder">
18         <xsl:value-of select="@name" /><br />
19       </xsl:for-each>
20     </p>
21   </xsl:for-each>
22 </xsl:template>
23
24 </xsl:stylesheet>