How can I use xsl:choose, xsl:when and xsl

therwise? This is what I am trying to do - I have an element -
I have an XSL which displays this in a table, which is working fine. Now I want to show all males in one color and females in another. How can I speify condition for this in xsl:when. I tried sth, but it displayed all in one color.
Also, in DTD I have specified default value for gender as "female", so not all <person> elements will have gender attribute in them.
Can somebody help?
TIA,
- Manish