-----Original Message-----
From: Adam Shelley [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 21, 2003 4:10 PM
To: [EMAIL PROTECTED]
Subject: RE: url to xml/xsl file in servlet

Thank you for your reply.

What library do you need for the StreamSource class?

i copied the xml-apis from fop into the lib directory of the servlet and
added it to the build.xml file but it doesn't seem to like

import org.xml.transform.*;

it says package does not exist.  but i did see a streamsourceclass
within
the xml-apis.jar file so i dunno how to access it.

(please excuse me, i've never programmed java in my life this is all a
foriegn thing for me.  I just need to get this functionality up and
running
or else the security of my system with fop isn't gonna work. :( )

-Adam


-----Original Message-----
From: Jasmin Mehta [mailto:[EMAIL PROTECTED]
Sent: March 21, 2003 12:48 PM
To: [EMAIL PROTECTED]
Subject: RE: url to xml/xsl file in servlet


Please use


          Transformer transformer=TransformerFactory.newInstance()
                  .newTransformer(new StreamSource(xslInStream));
          transformer.transform(new JDOMSource(xmlsource), new
SAXResult(driver.getContentHandler()));

instead of XSLTInputhandler


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to