Re: [xsl] count doesnt get incremented

Subject: Re: [xsl] count doesnt get incremented
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 10 Nov 2003 01:41:56 +0100
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


Current Thread