Sorry for last response with no soultion. It was a miss typing error..

It seems a bug (i don't know if in apply tag or in weblogic)
In the code source of apply tag

 public int doEndTag() throws JspException {

 // Prepare an input source for the data
 XSLTInputSource data = null;

        System.out.println(body);

        if ((body != null) )
......


In weblogic 5.1 body is not null but is an empty string.
Try to put

if ((body != null) ) &&  (body.equals("")== false)

Then iexamples work well !!

Laurent Balthasar wrote:

> Hi all,
>
> I'm desperately trying to run the xsl apply.jsp example under weblogic 5.1
> SP 6.
> The webapp example seems to work but when I access the  apply.jsp, I get the
> following exception:
>
> Input XSL; Line 1; Column 1
> XSL Error: Could not parse Input XML document!
> XSL Error: SAX Exception
> ven. f?vr. 02 11:41:00 GMT+01:00 2001:<E> <WebAppServletContext-xslt> Root
> cause of ServletException
> javax.servlet.jsp.JspException: org.apache.xalan.xslt.XSLProcessorException:
> The root element is required in a well-formed document.
>         at org.apache.taglibs.xsl.ApplyTag.doEndTag(ApplyTag.java:274)
>         at jsp_servlet._jsp._apply._jspService(_apply.java, Compiled Code)
>         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :123)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :141)
>         at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:761)
>         at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:708)
>         at
> weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
> Manager.java:252)
>         at
> weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:346)
>         at
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
> Code)
>
> Is it a path problem? Is it because of a conflict with a weblogic library?
> Does anybody ever succeed in running this example?
>
> Please, any help or advices would be appreciated.
>
> Thanks
>
> Laurent

Reply via email to