[Home] [By Thread] [By Date] [Recent Entries]
I'm thinking it looks like abel's last two suggestion, an unending recursion with the recursion writing elements inside of elements. the template test writes out an a element with a href attribute. <a href=""></a> but you call it again, in the way you're doing it means you would be trying to do this: <a href="<a hreff=""></a>"></a> also you are doing it in such a way that it looks like it will keep calling itself with howmany = 10 after the first time you reach howmany = 10. You probably need to specify closer what you want, most here could help you solve these particular problems but without knowing clearly what you want the solution wouldn't be any big help, I guess. Cheers, Bryan Rasmussen On 5/10/07, Abel Braaksma <abel.online@xxxxxxxxx> wrote: Vaduvoiu Tiberiu wrote: > Hi all. Can anyone tell me if it's possible to "re-call" a template from an anchor? something like: > > <xsl:template name="test"> > <xsl:param name="howmany" select="5"> > <xsl:value-of select="parent/child[position()>$howmany]/> > <a><xsl:attribute name="href"><xsl:call-template name="test"><xsl:with-parameter name=howmany select=10></....</a> > > I tried it but I get an Http error 500. So I'm trying to display a fixed number(e.g. 5) of elements and have a link wich when clicked displays the next 5 elements let's say. The only way I figured to do it was to call the same template but I can't make it work. Anyone have any solution? 10x >
|

Cart



