1<xsl:stylesheet version="1.0"
2      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3      xmlns:fo="http://www.w3.org/1999/XSL/Format"
4      exclude-result-prefixes="fo">
5
6<xsl:strip-space elements="itemlist"/>
7
8<xsl:template match="/">
9<html>
10<body>
11<xsl:apply-templates/>
12</body>
13</html>
14</xsl:template>
15
16<xsl:template match="itemlist">
17<table>
18<tbody>
19<xsl:apply-templates/>
20</tbody>
21</table>
22</xsl:template>
23
24<xsl:template match="item">
25  <tr>
26    <xsl:if test="position() mod 2 = 0">
27       <xsl:attribute name="bgcolor">yellow</xsl:attribute>
28    </xsl:if>
29    <xsl:apply-templates/>
30  </tr>
31</xsl:template>
32</xsl:stylesheet>
33