Hope you had already downloaded the XALAN package from Apache site, this packagae has a set examples which shows how to takes parameters via URL and supply it to XSL file.
An overview can be found here
http://xml.apache.org/xalan-j/samples.html#servlet Please post back if you are not clear.