Thank you very much!
what I want to happen to the consecutive numbers is that they remain the same, like
Code:
<lb n="0"/><gap/>
<lb n="1"/>
<lb n="2"/>
<lb n="3"/>
<lb n="0"/><gap/>
I also would like to insert consecutive numbers into a div element which is an ancestor of my <lb/>
Code:
<div n="1">
<lb n="0"/><gap/>
<lb n="1"/>
<lb n="2"/>
<lb n="3"/>
<lb n="0"/><gap/>
</div>
<div n="2">
<lb n="0"/><gap/>
<lb n="1"/>
<lb n="2"/>
<lb n="3"/>
<lb n="0"/><gap/>
</div>
I have then added before the code you suggested me the following.
Code:
<xsl:template match="div">
<div>
<xsl:attribute name="n"><xsl:number/></xsl:attribute>
</div>
<xsl:apply-templates/>
</xsl:template>
what happens now is that my result looks like this
Code:
<div n="1"/>
<lb n="0"/>
<lb n="2"/>
<lb n="3"/>
<lb n="4"/>
<lb n="0"/>
<div n="2"/>
<lb n="0"/>
<lb n="2"/>
<lb n="3"/>
<lb n="4"/>
<lb n="0"/>
there must be still something wrong with my understanding of the basics...
thank you very much indeed for any further help