I am facing the same problem, I am using lotus ' xml transformer to convert
my XML files into HTML for non XML capable browsers.  I need to access the
XML generated by the JSP file before creating the XSLTInputSource.

I am using this code
  ByteArrayOutputStream stream = new ByteArrayOutputStream();
  XSLProcessor processor       = new XSLProcessor();
  XSLTInputSource xmlSource    = new
XSLTInputSource("http://localhost:8080/applinet/xml/test.jsp");
  XSLTInputSource xslStylesheet= new
XSLTInputSource("http://localhost:8080/applinet/xml/test.xsl");
  XSLTResultTarget xmlOutput   = new XSLTResultTarget(stream);
  processor.process(xmlSource, xslStylesheet, xmlOutput);
  out.print(stream.toString());

----- Original Message -----
From: Joe Milora <[EMAIL PROTECTED]>
Sent: Thursday, April 06, 2000 8:44 PM
Subject: Re: transforming the output stream


>         Never mind, I was able to get it to work. I hope no one spent too
> much time thinking about it.
>         But if anyone has a better idea for implementing this, I'm all
ears.
>         thanks.
>
>
> > -----Original Message-----
> > From: Joe Milora
> > Sent: Thursday, April 06, 2000 8:02 AM
> > To:   '[EMAIL PROTECTED]'
> > Subject:      transforming the output stream
> >
> >
> >
> > Hi everyone.
> > I'm trying to design a jsp page similar to the following:
> >
> > static xml
> > <myTagLibrary:dynamicXML>...</..>
> >
> > <myTagLibrary:XSLStyle  sheet="..."  source=?this?>
> >
> > I'd like to get the previous output of the jsp(which will now be an XML
> > document) and transform
> > it into html using XSL. Is it possible to get access to the output
stream
> > and change it? Or do I need
> > a different approach? I've tried several variations so far without any
> > luck.
> >
> > thanks,
> > Joe Milora
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to