Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Nesting forces repeated code? [Thread Next] Re: Nesting forces repeated code?To: NULL Date: 9/7/2006 1:45:00 AM Martin Honnen wrote: > This > > <tr> > <td valign="top"> > <xsl:if test="NAME = 'smith'"> > <xsl:attribute name="bgcolor">#D0E0E0</xsl:attribute> > </xsl:if> > <i><xsl:value-of select="NAME"/>:</i> > </td> > </tr> > > should be easier. You simply need to make sure that you add any > attributes to the element (e.g. the td element) before you add content > to the element. Martin, Thanks - that does exactly what I was after. Cheers, Colin | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
