This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl StreamSource for servlet
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] xsl StreamSource for servlet
- From: "Robert Koberg" <rob at koberg dot com>
- Date: Thu, 19 Jul 2001 11:05:05 -0700
- References: <NEBBIBBMHKOPHBFFMNGMCEPGCDAA.david@cheapthings.co.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Is the following possible (I can't get it to work yet...)? - Is there a
better way?
Given a J2EE compliant web container (resin 2.01), I have a startup servlet
(starts up when the webapp starts) that creates a StreamSource for an XSL
file (has many includes) from the filesystem and sets it as a context
attribute.
Then when someone logs into the webapp, the login servlet gets the xsl
StreamSource attribute and sends it as an argument to a class that does the
transformation. I am also sending in the XML StreamSource and the
PrintWriter out (which is converted to a StreamResult in the accepting
class).
Should this work?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list