This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Alternate bg colors for table and address summaries
- To: XSL-List at mulberrytech dot com
- Subject: Alternate bg colors for table and address summaries
- From: "Robert Saylor" <rrsaylor at hotmail dot com>
- Date: Wed, 25 Oct 2000 15:51:13 EDT
- Reply-To: xsl-list at mulberrytech dot com
Please see the enclosed code:
Here is the dilemma,
I want to have one summary return with a grey background and the other
summary with a white background.
Ive tried the position function and have had no luck perhaps its me as im
new at this?
If anyone can give me a few hints id appreciate it
Thanks
SEE CODE BELOW
<!--------------------- Start CODE FOR XML Document ------------------->
<?xml version="1.0" encoding="ISO8859-1" ?>
<?xml:stylesheet type="text/xsl" href="xsl/summary.xsl" ?>
<Address-Summaries>
<Summary>
<DISPLAYNAME>Jason Bickford1</DISPLAYNAME>
<NICKNAME>Bickle</NICKNAME>
<WORKPNUM>202-555-6262</WORKPNUM>
<HOMEPNUM>301-454-4445</HOMEPNUM>
<WIRELESSPNUM>301-545-5263</WIRELESSPNUM>
<PAGERPNUM>801-959-6482</PAGERPNUM>
<OTHERPNUM>658-555-4128</OTHERPNUM>
<DEFAULTPNUM>703-718-6458</DEFAULTPNUM>
</Summary>
<Summary>
<DISPLAYNAME>Jason Bickford1</DISPLAYNAME>
<NICKNAME>Bickle</NICKNAME>
<WORKPNUM>202-555-6262</WORKPNUM>
<HOMEPNUM>301-454-4445</HOMEPNUM>
<WIRELESSPNUM>301-545-5263</WIRELESSPNUM>
<PAGERPNUM>801-959-6482</PAGERPNUM>
<OTHERPNUM>658-555-4128</OTHERPNUM>
<DEFAULTPNUM>703-718-6458</DEFAULTPNUM>
</Summary>
</Address-Summaries>
<!------------------- End Of XML Code ------------------------------->
<!--------------------- Start CODE FOR XSL Document ------------------->
<?xml version="1.0"?>
<HTML xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<BODY STYLE="font-family:Arial, helvetica, sans-serif; font-size: 8pt;
background-color:#FFFFFF">
<xsl:for-each select="Address-Summaries/Summary">
<DIV STYLE="background-color:#FFFFFF; color:white; padding:4px">
<SPAN STYLE="font-weight:bold; color:white">
<table border="0" bgcolor="#FFFFFF" cellspacing="5">
<tr>
<td width="100"><xsl:value-of select="DISPLAYNAME"/></td>
<td width="100">Home:</td>
<td width="150"><xsl:value-of select="HOMEPNUM"/></td>
</tr>
<tr>
<td width="100"><xsl:value-of select="NICKNAME"/></td>
<td width="100">Pager:</td>
<td width="150"><xsl:value-of select="PAGERPNUM"/></td>
</tr>
<tr>
<td width="33"></td>
<td width="100">Cell Phone:</td>
<td width="150"><xsl:value-of select="WIRELESSPNUM"/></td>
</tr>
<tr>
<td width="33"></td>
<td width="100">Work Phone:</td>
<td width="150"><xsl:value-of select="WORKPNUM"/></td>
</tr>
<tr>
<td width="33"></td>
<td width="100">Other:</td>
<td width="150"><xsl:value-of select="OTHERPNUM"/></td>
</tr>
<tr>
<td width="33"></td>
<td width="100">Default Phone:</td>
<td width="150"><xsl:value-of select="DEFAULTPNUM"/></td>
</tr>
</table>
</SPAN>
</DIV>
</xsl:for-each>
</BODY>
</HTML>
<!------------------- End Of XSL Code ------------------------------->
Thanks In advance for any help
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list