Merge branch 'master' of caffeine:/users/www/www
[mspang/www.git] / xsl / positions.xsl
1 <?xml version='1.0'?>
2
3 <xsl:stylesheet version="1.1"
4     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5     xmlns:csc="http://csclub.uwaterloo.ca/xsltproc"
6     xmlns="http://www.w3.org/1999/xhtml"
7     exclude-result-prefixes="csc">
8 <xsl:output method="xml" />
9
10 <xsl:template match="positions">
11   <xsl:variable name="exec" select="@exec" />
12   <xsl:for-each select="csc:position-list('')/position[@exec=$exec]">
13     <xsl:sort select="@order" order="ascending" />
14     <xsl:if test="holder">
15       <p>
16           <a class="position" href="mailto:{@position}@csclub.uwaterloo.ca"><xsl:value-of select="@name" /></a><br />
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>