With XSL, can I change the value of global parameters inside the templates named temp?
No. Parameters and variables in XSLT, once defined, essentially are fixed for a given scope. You can create local versions of these variables, but the value of the variable will not change outside of the scope of that local variable. Like in the following expression, for example: