Suppose I have a template foothat can output something specified by a parameter. Now I want to use this output as a parameter for my other template loop, so that I can cyclically output the output a certain number of times. I tried something along the way
<xsl:call-template name="loop">
<xsl:with-param name="times" select="someParam"/>
<xsl:with-param name="output">
<xsl:call-template name="foo">
<xsl:with-param name="type" select="something"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
In other words, outputit should now contain the output of the call foo. Both loopand fooare operating normally regardless, but it seems that I can not put them. How am I supposed to do this? Thanks in advance.
source
share