Looping in xml

webmasterbeta

New Member
I have this code -
<xsl:for-each select='a:multistatus/a:response'>
<tr>
<!-- Build a hyperlink using the resource href and subject -->
<td>
<a>
<xsl:attribute name='href'>
<xsl:value-of select='a:propstat/a:prop/a:href' />/?Cmd=open
</xsl:attribute>
<xsl:attribute name='target'>_blank</xsl:attribute>
<xsl:value-of select='a:propstat/a:prop/d:subject' />
</a>
</td>
</tr>

Which loops through each e-mail that it finds in outlook (I'm using WebDav) and changes the link accordingly. Does anyone know how I would add an id attribute to each td?

Thanks
 
Back
Top