Subject: Re: Counter values in attributes?? From: Evan Easton <evan@xxxxxxxxxxx> Date: Thu, 18 Feb 1999 06:34:18 -0600 |
XXXXXXX wrote: > Try this: > > <xsl:template match="container"> > <!-- COUNT MY CHILDREN --> > <xsl:counter-reset name="childCount"/> > <xsl:apply-templates select="child" mode="count"/> > > <TD> > <xsl:attribute name="COLSPAN"><xsl:counter > name="childCount"/></xsl:attribute> > <xsl:apply-templates select="description"/> > </TD> > </xsl:template> > > <xsl:template match="child" mode="count"> > <xsl:counter-increment name="childCount"/> > </xsl:template> This works great. Problem solved. Thanks. Evan XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Counter values in attributes??, Evan Easton | Thread | Re: Counter values in attributes??, Guy_Murphy |
RE: Counter values in attributes??, Guy_Murphy | Date | Re: Counter values in attributes??, Evan Easton |
Month |