xsl-list
[Top] [All Lists]

Re: count doesnt get incremented

2003-11-09 17:41:56
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>&lt;form name = "</xsl:text><xsl:value-of
select ="$moWithParen"/><xsl:text>"&gt;</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



<Prev in Thread] Current Thread [Next in Thread>