<xslTutorial creator="nicmila@idoox.com">
<index keywords='xsl:attribute'/>
<description>xsl:attribute generates elements in
time of processing. It creates attribute in the element in which it is enclosed. </description>
<xmlSource id="id1">
<color>blue</color>
<color>navy</color>
<color>green</color>
<color>lime</color>
<color>red</color>
</xmlSource>
<attValues>
<value match="">
</value>
</attValues>
<xslStylesheet id="id2">
<xsl:template match="color">
<TABLE>
<TR><TD>
<xsl:attribute name="style">
color:<xsl:value-of select="."/>
</xsl:attribute>
<xsl:value-of select="."/>
</TD></TR>
</TABLE>
</xsl:template>
</xslStylesheet>
</xslTutorial>