- Add support for sex in the about/exec.xml page.
authorSimon Law <sfllaw@csclub.uwaterloo.ca>
Wed, 15 Jan 2003 01:30:41 +0000 (01:30 +0000)
committerSimon Law <sfllaw@csclub.uwaterloo.ca>
Wed, 15 Jan 2003 01:30:41 +0000 (01:30 +0000)
about/exec.xml
cscweb.xsl

index a2818be..29b3b65 100755 (executable)
@@ -8,37 +8,44 @@
   <execlist>
    <exec position="President"
          name="Kannan Vijayan"
+        sex="male"
         href="http://www.csclub.uwaterloo.ca/u/kvijayan/whoami.html"
          userid="president" />
  
    <exec position="Vice President"
          name="Meg Darragh"
+        sex="female"
         userid="vice-president" />
 
    <exec position="Secretary"
          name="Wojtek Kosnik"
+        sex="male"
         userid="secretary" />
 
    <exec position="Treasurer"
          name="James Perry"
+        sex="male"
          href="http://www.ring-zero.org/"
          userid="treasurer" />
 
    <exec position="System Administrator"
          type="appointed"
          name="Stefanus Du Toit"
+        sex="male"
         href="http://3.141592.org/"
         userid="sysadmin" />
 
    <exec position="Librarian"
          type="appointed"
          name="Simon Law"
+        sex="male"
         href="http://www.eng.uwaterloo.ca/~sfllaw/"
         userid="librarian" />
 
    <!--
    <exec position="Imapd (Individual Making Arrangements for Pop Delivery)"
          type="appointed"
+        sex=""
          name="To Be Announced"
         userid="" />
    -->
@@ -46,6 +53,7 @@
    <exec position="Drunken Web Master"
          type="appointed"
          name="Julie Lavoie"
+        sex="female"
         href="http://www.deor.org/~jlv/"
         userid="www" />
   </execlist>
index bb79267..6d42ba0 100755 (executable)
  <li><xsl:value-of select="@name"/> is this term's <b><xsl:value-of
  select="@position"/></b>. You can <a
  href="mailto:{@userid}@csclub.uwaterloo.ca">e-mail the <xsl:value-of select="@position"/></a><xsl:if
- test="not(@href='')"> or <a href="{@href}">visit his or her
+ test="not(@href='')"> or <a href="{@href}">visit 
+ <xsl:choose>
+  <xsl:when test="@sex='male'"> his </xsl:when>
+  <xsl:when test="@sex='female'"> her </xsl:when>
+  <xsl:otherwise> his or her </xsl:otherwise>
+ </xsl:choose>
  homepage</a></xsl:if>.
  </li>
 </xsl:template>