J
Jeff Higgins
Hi,
How can I add an attribute to selected elements?
For each section element in the source document,
I would like to add a name attribute where the attribute is equal to:
<xsl:number level="multiple" count="section" format="1_1"/>
For source document:
<src>
<section>
<section>
<section/>
<section/>
<section/>
</section>
</section>
</src>
The result document would be:
<src>
<section name="1">
<section name="1_1">
<section name="1_1_1"/>
<section name="1_1_2"/>
<section name="1_1_3"/>
</section>
</section>
</src>
Thanks,
Jeff Higgins
How can I add an attribute to selected elements?
For each section element in the source document,
I would like to add a name attribute where the attribute is equal to:
<xsl:number level="multiple" count="section" format="1_1"/>
For source document:
<src>
<section>
<section>
<section/>
<section/>
<section/>
</section>
</section>
</src>
The result document would be:
<src>
<section name="1">
<section name="1_1">
<section name="1_1_1"/>
<section name="1_1_2"/>
<section name="1_1_3"/>
</section>
</section>
</src>
Thanks,
Jeff Higgins