[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: newbie prob - Template and navigation confusion???
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 3 Feb 2005 13:53:46 GMT
globe template
             <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
________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.