suresh reddy wrote:
Here's my template which is not incrementing the
count value whenever <mo>(</mo> is matched in the
document.
<xsl:template match ="mml:mo[.='(']">
<xsl:variable name ="moWithParen"
select="count(preceding::mo[text()='('])"/>
I guess you forgot the namespace here. Try
select="count(preceding::mml:mo[text()='('])"
<xsl:text><form name = "</xsl:text><xsl:value-of
select ="$moWithParen"/><xsl:text>"></xsl:text>
Ouch! I think I'll let others comment on this.
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list