What I am is trying to do is the following.
Pass two parameters to a URL
- type
- doc_id
Once they are passed to the JSP via the URL I want to apply a the type template to the doc_id xml.
So if the type is 001 then the 001.xsl is applied to doc_id.xml. The output of this I don’t want stored in a file but rather directley outputed to the browser.
How would I go about doing this using XALAN and a JSP page?
I would suggest that this type of code goes in a servlet rather than a JSP page. If you have some specific constraint that requires a JSP then the code could be modified to work on a JSP page.
The XALAN site has a nice example using a servlet which I’ll copy here for convenience: The original can be found here. In this example they hard coded the names of the xsl and xml files but that is easy to modify to use your file names generated as you described. The important thing is that the generated output is streamed to the browser.