Subject: RE: [xsl] number of rows From: "Dionisio Ruiz de Zarate" <dionisio@xxxxxxxxxxxxx> Date: Tue, 2 Dec 2003 13:30:33 +0100 (CET) |
i am trying to print the i vale with your code but it doesn't run, doesn't print it the code is: <xsl:call-template name="rec"/> ....... <xsl:template name="rec"> <xsl:param name="i" select="nofrows"/> <xsl:if test="$i > 0 "> The value is: <xsl:value-of select="$i"/> <xsl:call-template name="rec"> <xsl:with-param name="i" select="$i - 1"/> </xsl:call-template> </xsl:if> </xsl:template> can you helpme? thanks > Hi, > >> into oe xml i have: >> >> <nofrows>10</nofrows> >> the nofrows value is variable. >> >> how can i ade one thing as this using xsl: >> >> for(i=0;i<nofrows;i++){ >> here print <td><xsl:value-of="xxx"/></td> >> } >> >> how can i print one <td></td> nofrows times. > > <xsl:call-template name="rec"/> > > with the recursive template > > <xsl:template name="rec"> > <xsl:param name="i" select="nofrows"/> > <xsl:if test="$i > "> > <td> > <xsl:value-of select="xxx"/> > </td> > <xsl:call-template name="rec"> > <xsl:with-param name="i" select="$i - 1"/> > </xsl:call-template> > </xsl:if> > </xsl:template> > > Cheers, > > Jarno - Delerium: Remembrance > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] number of rows, Jarno . Elovirta | Thread | Re: [xsl] number of rows, David Carlisle |
Re: [xsl] MySQL XML retrieval, Ben Trafford | Date | RE: [xsl] number of rows, Jarno . Elovirta |
Month |