Its hard to say given the fact we don't know what your input XML looks like, or what you want your output to look like.
However you cannot redefine a variable or parameter in XSLT. I suggest just referring to the action attribute in the later input element as
.
/- Sam Judson : Wrox Technical Editor -/