I'm creating them in tables. The 1st table(section1) is one color. 2nd table is another and so on. The third table contains an array that could occur from 1 to many times. If the array only has information in one of the rows, that is the only row that has the background color designated to it. What I'm trying to do, is to get the color to show up regardless of how much information is being sent to it.
Here is the code for you to look at....
<!-- spmfi.xsl - BIS-Express XSL style sheet -->
<!-- Generated by BIS-Express v1.0 on 2004/12/02 at 16:35:46-->
<html xsl:version="1.0" xmlns="
xmlns:xsl="
<head>
<title>Stop Payment Master Inquiry{{ContentType(text/html; charset=utf-8)}}</title>
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<!-- beginning of change by BOB -->
<body onload="javascript:CheckForError()">
<script language="JavaScript" type="text/JavaScript">
function CheckForError(){
var newwindow;
if ('<xsl:value-of select="//popupflag"/>' != ''){
newwindow = window.open("spmfi.srf?ERRORPOPUP", ", "toolbar=no,menubar=no,height=200,width=200");
newwindow.moveTo((screen.width / 2) - 100, (screen.height / 2) - 100);
}
}
</script>
<!-- end of change by BOB -->
<script language="javascript" type="text/javascript">function QUIT() { document.forms[0].bisquitbutton.value = "QUIT"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function BACK() { document.forms[0].bisbackbutton.value = "BACK"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function acct() { document.forms[0].bisacctbutton.value = "Acct"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Master(){ document.forms[0].bismasterbutton.value = "Master"; document.forms[0] .submit (); }</script>
<script language="javascript" type="text/javascript">function Tickler() { document.forms[0].bisticklerbutton.value = "Tickler"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function CIF() { document.forms[0].biscifbutton.value = "CIF"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Disb() { document.forms[0].bisdisbbutton.value = "Disb"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function YAI() { document.forms[0].bisyaibutton.value = "YAI"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Rel() { document.forms[0].bisrelbutton.value = "Rel"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Hist() { document.forms[0].bishistbutton.value = Hist"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Priv() { document.forms[0].bisprivbutton.value = "Priv"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function ATM() { document.forms[0].bisatmbutton.value = "ATM"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Stop() { document.forms[0].bisstopbutton.value = "Stop"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function email() { document.forms[0].bishistbutton.value = "Acct"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Comments() { document.forms[0].biscommentsbutton.value = "Comments"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function IRA() { document.forms[0].bisirabutton.value = "IRA"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Date() { document.forms[0].bisdatebutton.value = "Date"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Memo() { document.forms[0].bismemobutton.value = "Memo"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Forfeit() { document.forms[0].bisforfeitbutton.value = "Forfeit"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Varrate() { document.forms[0].bisvarratebutton.value = "Varrate"; document.forms[0] .submit ();}</script>
<script language="javascript" type="text/javascript">function Print (){ window.print()}</script>
<form action="SPMFI.srf" method="post">
<input type="hidden" name="formname" value="SPMFI" />
<table width="100%" class="ProgramBkgrd">
<tr>
<td width="14%" align="left" valign="center"><a href="javascript:Back ()"><img src="AlphaButtons/Prev.gif" border="0" title="This brings you to the program you were previously running." accesskey="X"/></a>
<a href="javascript:Quit ()"><img src="AlphaButtons/Quit.jpg" border="0" valign="bottom" title="This will take you to the Master Select Menu. " accesskey="Q"/></a></td>
<td width="5%" align="left" valign="center" class="ProgramInfo"><xsl:value-of select="//bis-program-name"/></td>
<td width="60%" align="center" valign="center" class="ProgramInfo"> <xsl:value-of select="//bis-program-desc"/></td>
<td width="10%" align="right" valign="center" class="ProgramInfo"> <xsl:value-of select="//bis-program-version"/></td>
<td width="11%" align="right" valign="top">
<input type="hidden" name="bisprintbutton" />
<a href="javascript

rint ()">
<img src="AlphaButtons/printer.jpg" border="0" title="This button will allow you to print the current screen to your windows default printer." accesskey="X"/>
</a> </td> </tr></table>
<table width="100%" border="0" class="AddrBkgrd">
<!--DWLayoutTable-->
<tr>
<td width="93" align="right" valign="top">
<input type="hidden" name="bisacctbbutton" />
<a href="javascript:Acct">
<img src="AlphaButtons/Acct.gif" border="0" accesskey="A" title="The account number assigned to this specific account."/> </a></td>
<td colspan="2" valign="top"><input name="bis-account" type="text" class="StdDesc" value="{//bis-account}" size="{//bis-account/@length}" maxlength="{//bis-account/@length}" /><xsl:value-of select="//bis-account-edited"/></td>
<td width="180" height="27"> </td>
<td width="63"></td>
<td width="83"></td>
<td width="55"></td>
<td width="94"></td>
</tr>
<tr>
<td height="21"></td>
<td width="219" valign="top" class="StdDesc" title="This SSN and Suffix assigned to this specific account. This is used to tie account information together in the Central Information File."><xsl:value-of select="//bis-ssn-suffix"/></td>
<td width="151"></td>
<td valign="top" class="DdaStdDesc" title="This field displays the type of account this is (i.e. Regular, Now, Money Market). The Account Types are used for general ledger interfacing and defining NSF and Overdraft fees."><xsl:value-of select="//bis-type"/></td>
<td></td>
<td valign="top" class="StdDesc" title="This field displays the branch where account was opened. The main branch is branch 00, branch 1 is 01, etc. This field allows you to print separate trial balances, daily reports and notices, range reports, and other reports by branch.">Branch</td>
<td align="right" valign="top" class="StdAmount" title="This field displays the branch where account was opened. The main branch is branch 00, branch 1 is 01, etc. This field allows you to print separate trial balances, daily reports and notices, range reports, and other reports by branch."><xsl:value-of select="//bis-branch"/></td>
<td></td>
</tr>
<tr>
<td height="0"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="23" align="right">
<a href="mailto:someone@microsoft.com?subject=Hello%20again"> </a>
<a href="mailto:someone@microsoft.com?subject=Hello%20again"><img src="AlphaButtons/envelope.gif" border="0" title="This enables you to e-mail the customer assigned to this account." /></a>
</td>
<td valign="top" class="CustAddr"><xsl:value-of select="//bis-addr-area-1"/></td>
<td></td>
<td align="right" valign="top" class="StdAmount" title="This field displays the officer responsible for this account."><xsl:value-of select="//bis-officer"/></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="21"></td>
<td valign="top" class="CustAddr"><xsl:value-of select="//bis-addr-area-2"/></td>
<td></td>
<td align="right" valign="top" class="StdAmount" title="This field displays the current status of the account. The available options are active, inactive, dormant, restricted and closed. Items will not post to an account that is coded as dormant, frozen or closed. A statement will only print on a closed account if there is history. If an account is coded as restricted employees without access to restricted accounts will not be able to pull up that account information. The restricted status is generally used on employee accounts."><xsl:value-of select="//bis-status"/></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="21"></td>
<td valign="top" class="CustAddr"><xsl:value-of select="//bis-addr-area-3"/></td>
<td></td>
<td align="right" valign="top" class="StdAmount" title="This field displays the class code of the account which is used for the call report. The available options are individuals, commercial banks, u.s. government, public funds, official bank accounts, non-profit organizations, non-corporate business, partners, and corporations. For the call report individuals are reported as personal, and all other classes are reported as non-personal."><xsl:value-of select="//bis-class"/></td>
<td></td>
<td valign="top" class="StdDesc" title="This field displays the current interest rate on this account and how interest is calculated. It could display SMPL 365, SMPL 360, CMPD 365 or CMPD 360.">Rate Is</td>
<td align="right" valign="top" class="StdAmount" title="This field displays the current interest rate on this account and how interest is calculated. It could display SMPL 365, SMPL 360, CMPD 365 or CMPD 360."><xsl:value-of select="//bis-rate"/></td>
<td></td>
</tr>
<tr>
<td height="21" align="right" valign="top"> </td>
<td valign="top" class="CustAddr"><xsl:value-of select="//bis-addr-area-4"/></td>
<td></td>
<td> </td>
<td> </td>
<td valign="top" class="StdDesc" title="This field displays the Annual Percentage Yield on this account. The APY is calculated with the following formula: 100[(1+Interest/Principal)^(365/Days)-11]">APY Is</td>
<td align="right" valign="top" class="StdAmount" title="This field displays the Annual Percentage Yield on this account. The APY is calculated with the following formula: 100[(1+Interest/Principal)^(365/Days)-11]"><xsl:value-of select="//bis-apy"/></td>
<td></td>
</tr>
<tr>
<td height="21" align="right" valign="top">
</td>
<td valign="top" class="CustAddr"><xsl:value-of select="//bis-addr-area-5"/></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td> </td>
</tr>
<tr>
<td height="18" align="right" valign="top"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table width="100%">
<!--DWLayoutTable-->
<tr>
<td width="5%" valign="top">
<input type="hidden" name="biscifbutton" />
<a href="javascript:cif ()">
<img src="AlphaButtons/cif.gif" border="0" accesskey="C" title="This brings you to the Central Information File for this specific SSN and Suffix."/>
</a></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-master-ss-sw ='H'">
</xsl:when>
<xsl

therwise>
<input type="hidden" name="bismasterbutton" />
<a href="javascript:master ()">
<img src="AlphaButtons/master.gif" border="0" accessskey="M" title="This will take you to the DDMFI screen for the account displayed on the screen."/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-hist-ss-sw ='H'">
</xsl:when>
<xsl

therwise>
<input type="hidden" name="bishistbutton" />
<a href="javascript:hist ()">
<img src="AlphaButtons/hist.gif" border="0" accesskey="E" title="This brings you to the History file for this account so that you can see the transactions that have posted since the last statement was printed."/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-yai-ss-sw ='H'">
</xsl:when>
<xsl

therwise>
<input type="hidden" name="bisyaibutton" />
<a href="javascript:yai ()">
<img src="AlphaButtons/yai.gif" border="0" accesskey="Y" title="This brings you to the Year to Date average inquiry for accounts tied to this specific SSN & Suffix."/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-disb-ss-sw ='H'">
</xsl:when>
<xsl:when test="//bis-disb-ss-sw ='D'">
<input type="hidden" name="bisdisbbutton" />
<a href="javascript:disb ()">
<img src="AlphaButtons/nodisb.gif" border="0" accesskey="B" title="There are no disbursements for this account."/>
</a></xsl:when>
<xsl

therwise>
<input type="hidden" name="bisdisbbutton" />
<a href="javascript:disb ()">
<img src="AlphaButtons/disb.gif" border="0" accesskey="B" title="This will bring you to the Disbursements Inquiry."/>
</a></xsl

therwise> </xsl:choose></td>
<td width="7%" valign="top">
<xsl:choose>
<xsl:when test="//bis-tickler-ss-sw ='H'">
</xsl:when>
<xsl:when test="//bis-tickler-ss-sw ='D'">
<input type="hidden" name="bisticklerbutton" />
<a href="javascript:tickler ()">
<img src="AlphaButtons/notickler.gif" border="0" accesskey="K" title="There are no Ticklers tied to this account."/>
</a></xsl:when>
<xsl

therwise>
<input type="hidden" name="bisticklerbutton" />
<a href="javascript:tickler ()">
<img src="AlphaButtons/tickler.gif" border="0" accesskey="K" title="This brings you to the Tickler Maintenance screen."/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-rel-ss-sw ='H'">
</xsl:when>
<xsl:when test="//bis-rel-ss-sw ='D'">
<input type="hidden" name="bisrelbutton" />
<a href="javascript:rel ()">
<img src="AlphaButtons/norel.gif" border="0" accesskey="R" title="There are no Relationships on this account."/>
</a></xsl:when>
<xsl

therwise>
<input type="hidden" name="bisrelbutton" />
<a href="javascript:rel ()">
<img src="AlphaButtons/rel.gif" border="0" accesskey="R" title="This shows you the Relationships on the account."/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-priv-ss-sw ='H'">
</xsl:when>
<xsl:when test="//bis-priv-ss-sw ='D'">
<input type="hidden" name="bisprivbutton" />
<a href="javascript

riv ()">
<img src="AlphaButtons/nopriv.gif" border="0" accessskey="P" title="There are no Privacy Disclosures tied to this account."/>
</a></xsl:when>
<xsl

therwise>
<input type="hidden" name="bisprivbutton" />
<a href="javascript

riv ()">
<img src="AlphaButtons/priv.gif" border="0" accessskey="P" title="This brings you to the Privacy Inquiry."/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-atm-ss-sw ='H'">
</xsl:when>
<xsl:when test="//bis-atm-ss-sw ='D'">
<input type="hidden" name="bisatmbutton" />
<a href="javascript:atm ()">
<img src="AlphaButtons/noatm.gif" border="0" accesskey="T" title="There is no ATM information on this account."/>
</a></xsl:when>
<xsl

therwise>
<input type="hidden" name="bisatmbutton" />
<a href="javascript:atm ()">
<img src="AlphaButtons/atm.gif" border="0" accesskey="T" title="This brings you to the ATM inquiry screen."/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-ira-ss-sw ='H'">
</xsl:when>
<xsl

therwise>
<input type="hidden" name="bisirabutton" />
<a href="javascript:ira ()">
<img src="AlphaButtons/ira.gif" border="0" accesskey="" title=""/>
</a></xsl

therwise> </xsl:choose></td>
<td width="7%" valign="top">
<xsl:choose>
<xsl:when test="//bis-forfeit-ss-sw ='H'">
</xsl:when>
<xsl

therwise>
<input type="hidden" name="bisforfeitbutton" />
<a href="javascript:forfeit ()">
<img src="AlphaButtons/forfeiture.gif" border="0" accesskey="" title=""/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-date-ss-sw ='H'">
</xsl:when>
<xsl

therwise>
<input type="hidden" name="bisdatebutton" />
<a href="javascript:date ()">
<img src="AlphaButtons/date.gif" border="0" accesskey="" title=""/>
</a></xsl

therwise> </xsl:choose></td>
<td width="7%" valign="top">
<xsl:choose>
<xsl:when test="//bis-varrate-ss-sw ='H'">
</xsl:when>
<xsl

therwise>
<input type="hidden" name="bisvarratebutton" />
<a href="javascript:varrate ()">
<img src="AlphaButtons/varrate.gif" border="0" accesskey="" title=""/>
</a></xsl

therwise> </xsl:choose></td>
<td width="5%" valign="top">
<xsl:choose>
<xsl:when test="//bis-memo-ss-sw ='H'">
</xsl:when>
<xsl

therwise>
<input type="hidden" name="bismemobutton" />
<a href="javascript:memo ()">
<img src="AlphaButtons/memo.gif" border="0" accesskey="" title=""/>
</a></xsl

therwise> </xsl:choose></td>
<td width="6%" valign="top">
<xsl:choose>
<xsl:when test="//bis-stop-ss-sw ='H'">
</xsl:when> <xsl:when test="//bis-stop-ss-sw ='D'">
<input type="hidden" name="bisstopbutton" />
<a href="javascript:stop ()">
<img src="AlphaButtons/NoStops.gif" border="0" accesskey="O" title="There is no Stop Payment information on this account."/>
</a></xsl:when><xsl

therwise>
<input type="hidden" name="bisstopsbutton" />
<a href="javascript:stops ()">
<img src="AlphaButtons/Stop.gif" border="0" title="This brings you to the Stop Payment inquiry screen." accesskey="O"/>
</a></xsl

therwise> </xsl:choose></td>
<td width="18%" rowspan="2"> <xsl:choose>
<xsl:when test="//bis-comments-ss-sw ='H'">
</xsl:when> <xsl:when test="//bis-comments-ss-sw ='D'">
<input type="hidden" name="biscommentsbutton" />
<a href="javascript:comments ()">
<img src="AlphaButtons/Nocomments.gif" border="0" accesskey="E" title="There are No Comments tied to this account."/>
</a></xsl:when> <xsl

therwise>
<input type="hidden" name="biscommentsbutton" />
<a href="javascript:comments ()">
<img src="AlphaButtons/Comments.gif" border="0" title="This brings you to the Comments inquiry screen." accesskey="E"/>
</a></xsl

therwise>
</xsl:choose></td>
</tr>
</table>
<table width="100%" class="bodybkgrd" border="0">
<!--DWLayoutTable-->
<tr><td width="30%" title="Specifies which Stop Payment number this is." class="BodyDesc">Stop</td>
<td width="13%" title="Specifies if the Stop Payment is a check or a certain amount." class="BodyDesc">Type</td>
<td width="15%" title="Specifies either the first amount or check number in the Stop Payment range." class="BodyDesc">From</td>
<td width="8%" title="Specifies either the last amount or check number in the Stop Payment range." class="BodyDesc">To</td>
<td width="34%" title="Specifies the date through which the Stop Payment will be in effect." class="BodyDesc">Purge Date</td>
</tr>
<xsl:for-each select="//bis-stop-array">
<xsl:if test="bis-stop-type != ''">
<tr>
<td title="Specifies which Stop Payment number this is." class="SmallAmount"><xsl:value-of select="//bis-stop-number"/></td>
<td title="Specifies if the Stop Payment is a check or a certain amount." class="SmallAmount"><xsl:value-of select="//bis-stop-type"/></td>
<td title="Specifies either the first amount or check number in the Stop Payment range." class="SmallAmount"><xsl:value-of select="//bis-stop-from"/></td>
<td title="Specifies either the last amount or check number in the Stop Payment range." class="SmallAmount"><xsl:value-of select="//bis-stop-to"/></td>
<td title="Specifies the date through which the Stop Payment will be in effect." class="SmallAmount"><xsl:value-of select="//bis-stop-purge-date"/></td>
</tr>
<tr>
<td class="BodyDesc">Comments</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="21" colspan="5" valign="top" class="SmallAmount"><xsl:value-of select="//bis-comment"/></td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</form>
</body>
</html>
Good luck, and let me know if you can figure anything out...
Thanks!!