[xsl] Background color in table

Subject: [xsl] Background color in table
From: Andreas Byström <andreas.bystrom@xxxxxxxxxxxx>
Date: Tue, 27 May 2003 14:32:52 +0200
Hi all!

I'm about to make web page that should have a table of names in it. I would
like to have different background color on each other ro in the table,
example:
black
white
black
white...

I have trouble getting this to work with the XSL. This is an example on the
xml I have to work with
<pack>
  <service>
    <name>name1</name>
  </service>
  <service>
    <name>name2</name>
  </service>
</pack>
<pack>
  <service>
    <name>name3</name>
  </service>
  <service>
    <name>name4</name>
  </service>
</pack>

I want to list all services names. I managed to solve it when I only had one
<pack> tag, but now I can have several pack-tags. Does someone know how to
get a nice table from this data?

Regards,
Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread