An XSLT stylesheet cannot respond to user input. The stylesheet generates the HTML and exits; once the user starts pressing buttons, XSLT is no longer involved. Of course, it is possible for the Javascript in your (generated) HTML page to respond to user input by firing off another XSLT transformation, if that's what you want to do.
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference