Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Multiple condition in

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

Junior Member

10+ Year Member

joined:Dec 2, 2003
posts: 45
votes: 0

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: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>