homepage Welcome to WebmasterWorld Guest from 54.225.24.227
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
Multiple condition in
donok




msg:3969350
 7:03 pm on Aug 10, 2009 (gmt 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: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>

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved