[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

Subject: Fw: Shading a Row for a particular Node value
From: J_Eugene_Bernard/VML/IT/SGCORP/SANMAR@xxxxxxxxxxxxxxx
Date: Mon, 27 Sep 2004 11:36:13 +0530
td shading
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>

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.