You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Abdirisak Hassan Shirwac <ab...@and.nl> on 2000/10/04 13:01:24 UTC
no output XSLTPROCESSOR/servlet
I am using xalan xsltprocessor(java) en xerces to execute xml en xsl. i
wrote a simple servlet which calls xslt processor like this
private static final String file = "d:\\saxon\\aiTest.XSL";
URL getxml = new URL("http://localhost/abdir/aiTest.XML");
InputStream in = getxml.openStream();
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
processor.process(new XSLTInputSource(in),
new XSLTInputSource(new FileInputStream(file)),
new XSLTResultTarget(res.getOutputStream()));
but when i try to execute it, i am get most time a download menu in stead
of the output of servlet.
i am using servletexec 3.0.
can somebody help me?
Re: no output XSLTPROCESSOR/servlet
Posted by Fergus Gallagher <Fe...@OrbisUK.com>.
Almost certainly the mime-type is wrong/unrecognized - one of;
a) your app is setting the wrong one,
b) your browser doesn't know about "text/xml"
c) you browser (or OS) doesn't have an association for .XML files
At 13:01 04/10/00 +0200, Abdirisak Hassan Shirwac wrote:
>I am using xalan xsltprocessor(java) en xerces to execute xml en xsl. i
>wrote a simple servlet which calls xslt processor like this
> private static final String file = "d:\\saxon\\aiTest.XSL";
>URL getxml = new URL("http://localhost/abdir/aiTest.XML");
> InputStream in = getxml.openStream();
>
> XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
> processor.process(new XSLTInputSource(in),
> new XSLTInputSource(new FileInputStream(file)),
> new XSLTResultTarget(res.getOutputStream()));
> but when i try to execute it, i am get most time a download menu in stead
>of the output of servlet.
>i am using servletexec 3.0.
>can somebody help me?
--
Fergus Gallagher
Orbis
http://www.orbisuk.com/
+44-(0)20-8987 0717