Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Populate XML & change attribute >Thread Next - Re: Populate XML & change attribute Re: Populate XML & change attributeTo: NULL Date: 6/5/2005 3:34:00 PM maga1 wrote:
> ...but how can I change the "name" attr. in the meanwhile ?
>
<xsl:template match="/">
<xsl:apply-templates select="a" />
</xsl:template>
<xsl:template match="a">
<a>
<xsl:attribute name="name">
<xsl:value-of select="concat(@name, '_', position())" />
</xsl:attribute>
<xsl:copy-of select="descendant::*" />
</a>
</xsl:template>
JW
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
