xsl-list
[Top] [All Lists]

Re: newbie prob - Template and navigation confusion???

2005-02-03 06:53:46

             <xsl:when
             test="TEAM/TEAM_ROW/NAME/NAME_ROW/SALARY&gt;'30000'">

This is true if _any_ SALARY is greater than 30000 (incidentally you
want 30000 not '30000', it comes to the same thing but just saves the
processor converting between strings and numbers)

But if that is true you do:


             <xsl:apply-templates select="TEAM/TEAM_ROW/NAME/NAME_ROW" 

ie apply templates to all the rows,


I think you want to get rid of your cxsl:choose and ypur light and dark
moses and just have

             <xsl:apply-templates select="TEAM/TEAM_ROW/NAME/NAME_ROW" 


  <xsl:template match="NAME_ROW">
   <tr>
    <td><xsl:value-of select="LAST_NAME"/></td><td>
   <xsl:if test="SALARY &gt; 30000">
    <xsl:attribute name="bgcolor">gray</xsl:attribute>
    </xsl:if>
    <xsl:value-of select="SALARY"/></td>
   </tr>
  </xsl:template>

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>