I have a servlet that serves up xsl. If I run it with some parameters and save the output to a file and use that file as the xsl for an xsql call, it works fine.
However, when I call the servlet directly from xsql, i.e. <?xml-stylesheet type="text/xsl" href="/servlet/XSLGen?page_name=fob&;page_style=english"?>
then I get the following error:
Oracle XSQL Servlet Page Processor (Production)
XSQL-006: XSLT stylesheet is not well-formed: http://www.nds-i.com/servlet/XSLGen?page_nam
XML parse error at line 1, char 60
End tag does not match start tag 'body'
I only get this when I run from the servlet. Like I said, if I save the servlet output to a file it works fine.
I don't have an End tag. Any ideas?


What web server are you using?
With the Web-to-go server inside JDeveloper 3.2.2 production I just tried the following
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/src/servlet/XSLServlet"?>
<x/>with the XSLServlet code of:import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class XSLServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter p = response.getWriter();
p.println("<html xsl:version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'><b>foo</b></html>");
}and requesting the XSQL page returns the bolded word foo to my browser.