I have a general architecture question regarding JAXP / Xalan usage in a
J2EE web app, specifically in a Servlet.

Our web app dynamically creates XML which is send to the browser (IE 5.5),
and the browser performs the translation based on the xml-stylesheet
processing instruction in the XML.  The XSL is contained in files on the web
server.  What we would like to do is perform the XSL transformation on the
web server utilizing JAXP, specifically Xalan.  Are there any
recommendations / best practices on which mechanism we should use to obtain
the XSL as a Source object?  Should the XSL be read in as File? URL?  What
about the use of the .getAssociatedStylesheet() method on the
TransformerFactory? Which is the most efficient way??? 
The dynamic XML is currently stored in a StringBuffer before being sent to
the browser, so I assume that the use of StreamSource is correct for the XML
Source.  Also, I plan on using a Templates stored in Collection as shown in
the Servlet examples.

I would appreciate any help?
Thanks!
Brent Montrose

Reply via email to