[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Alternate bg colors for table and address summaries
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
|
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
|