XSLT processors allow you to set the value of global parameters albeit each has its own way of doing it. You'll need to state which processor you are using and describe how the overall process is carried out, e.g. is this in a browser, server-side atc.
--
Joe (
Microsoft MVP - XML)