[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Fw: Shading a Row for a particular Node value
Hi all, Please find below the XSL code to form a HTML output from a source xml file, where in if i want to shade (ie to differentiate) the entire row, where node value of bqty is 0 any help greately appreciated. TIA Eugene <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/REC-html40"> <xsl:template match="/"> <html> <body> <h4>Order Status</h4> <table border="1" cellpadding="4" cellspacing="0"> <tr bgcolor="#9acd32"> <th>Part No</th> <th>Description</th> <th>Grade</th> <th>Order Received from</th> <th>Order No</th> <th>Order Date</th> <th>Order Qty</th> <th>Qty Shipped </th> <th>Cancelled Qty </th> <th>Balance to Ship</th> <th>WIP</th> <th>Commited Delivery</th> <th>Mode of Shipment</th> <th>Invoice Details</th> </tr> <xsl:for-each select="linstat/items"> <tr> <td> <xsl:value-of select="partno"/> </td> <td> <xsl:value-of select="desc"/> </td> <td> <xsl:value-of select="grade"/> </td> <td> <xsl:value-of select="custcode"/> </td> <td> <xsl:value-of select="custpo"/> </td> <td> <xsl:value-of select="podate"/> </td> <td align="right"> <xsl:value-of select="oqty"/> </td> <td align="right"> <xsl:value-of select="dqty"/> </td> <td align="right"> <xsl:value-of select="sqty"/> </td> <td align="right"> <xsl:value-of select="bqty"/> </td> <td align="right"> <xsl:value-of select="wqty"/> </td> <td> <xsl:value-of select="commdly"/> </td> <td> <xsl:value-of select="dmode"/> </td> <td> <xsl:value-of select="invd"/> </td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet>
|
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
|