The conventional way of doing this is with Javascript. The way to write the Javascript is off-topic for this forum. Once you know what Javascript you need, your XSLT needs to generate an HTML page that invokes the Javascript at the appropriate points.
There is a new way of doing this if you want to do it all in XSLT: the Saxon-CE product provides XSLT 2.0 running in the browser, with the ability to handle user interface events using XSLT template rules. You will find some demontrations of this on the Saxonica web site.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|