Don't output vacant positions
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Wed, 21 Nov 2007 23:35:32 +0000 (18:35 -0500)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Wed, 21 Nov 2007 23:35:32 +0000 (18:35 -0500)
xsl/positions.xsl

index 71cd1d8..532acef 100644 (file)
@@ -9,15 +9,16 @@
   <xsl:variable name="exec" select="@exec" />
   <xsl:for-each select="csc:position-list('')/position[@exec=$exec]">
     <xsl:sort select="@order" order="ascending" />
-    <p>
-      <div class="position">
-        <a href="mailto:{@position}@csclub.uwaterloo.ca"><xsl:value-of select="@name" /></a>
-      </div>
-      <xsl:if test="not(holder)">Vacant</xsl:if>
-      <xsl:for-each select="holder">
-        <xsl:value-of select="@name" /><br />
-      </xsl:for-each>
-    </p>
+    <xsl:if test="holder">
+      <p>
+        <div class="position">
+          <a href="mailto:{@position}@csclub.uwaterloo.ca"><xsl:value-of select="@name" /></a>
+        </div>
+        <xsl:for-each select="holder">
+          <xsl:value-of select="@name" /><br />
+        </xsl:for-each>
+      </p>
+    </xsl:if>
   </xsl:for-each>
 </xsl:template>