I have 2 pieces of code in my XSL file.
1)
<xsl:call-template name="Info">
<xsl:with-param name="parententry" select="a:feed/a:entry/@href" />
</xsl:call-template>
2)
<xsl:template name="Info">
<xsl:param name="parentEntry" />
<xsl:variable name="parententryauthorname">
<xsl:value-of select="a:author/a:name" />
</xsl:variable>
<xsl:variable name="info2">
<xsl:value-of select="$parentEntry" />
</xsl:variable>>
<input name="info2" type="hidden" value="{$info2}" />
<input name="parententryauthorname" type="hidden" value="{$parententryauthorname}" />
</xsl:template>
What I want to do is to assign a value to "parententry" at 1st piece of code , and then refer it at the 2nd place. When I am in the "Info" template, I want to further process the value assigned in "parententry" to get the author's name.
Right now, when I tried to print the value of $info2, and $parententryauthorname, they are both empty.
Any suggestions?