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

Alternate bg colors for table and address summaries

Subject: Alternate bg colors for table and address summaries
From: "Robert Saylor" <rrsaylor@xxxxxxxxxxx>
Date: Wed, 25 Oct 2000 15:51:13 EDT
robert saylor
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



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.