|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: newbie prob - Template and navigation confusion???
<xsl:when
test="TEAM/TEAM_ROW/NAME/NAME_ROW/SALARY>'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 > 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
________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








