I try to pass parameter
<xsl:param name="current_item" />
Before that I sent parameter as transformer.setParameter("current_item", "Ball");
But when I try to set this parameter as parameter
<a href="controller?command=transform&current_item={$current_item}"></a>
In this row I get error Variable or parameter ‘current_item’ is undefined.’
How I should specify this variable?
I resolved my problem by seting a global
<xsl:param>.Before I had been using
<xsl:param>in one from 2<xsl:template>and tried to set in the href of another<xsl:template>.Excerpt from an answer to a similar question about the Usage of XSLT Parameters: