Welcome to WebmasterWorld Guest from 50.17.79.100

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Multiple condition in

     

donok

7:03 pm on Aug 10, 2009 (gmt 0)

10+ Year Member



Newbie here... I am sorting a list by "Credit", grouping different jobs, then I want a final group that is everyone else (not a director and not an actor, etc.). I tried this, but it is only working if I use only one "when" test --- what am I doing completely wrong? THank you in advance for any help - Don

<xsl:for-each select="document/row">
<xsl:choose>
<xsl:when test="Credit != &apos;Actor&apos;">
<xsl:when test="Credit != &apos;Director&apos;">
<xsl:when test="Credit != &apos;Cinematographer&apos;">
<xsl:when test="Credit != &apos;Writer&apos;">
<xsl:when test="Credit != &apos;Producer&apos;">
<p><a rel="rokbox [950 450]" href="{name_url_root}{imdb_name}"><xsl:value-of select="Artist"/></a> - <xsl:value-of select="Credit"/>: <a rel="rokbox [950 450]" href="{film_url_root}{imdb_film}"><xsl:value-of select="Film"/></a></p>
</xsl:when>
</xsl:when>
</xsl:when>
</xsl:when>
</xsl:when>
</xsl:choose>
</xsl:for-each>

 

Featured Threads

Hot Threads This Week

Hot Threads This Month