[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: can XML-XSL do what Lisp and s-expressions do?

Subject: RE: can XML-XSL do what Lisp and s-expressions do?
From: "Paul Beer" <paul.beer@xxxxxxxxxxxx>
Date: Wed, 26 Jan 2000 15:59:48 -0500
invoice.xsl
does anyone have any idea why this jsp code would produce the error dump
below ?


<%@ page import="org.apache.xalan.xslt.XSLTProcessor"%>
<%@ page import="org.apache.xalan.xslt.XSLTResultTarget"%>
<%@ page import="org.apache.xalan.xslt.XSLTInputSource"%>
<%@ page import="org.apache.xalan.xslt.XSLTProcessorFactory" %>
<%@ page import="org.xml.sax.SAXException"%>

<%

    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    processor.process(new XSLTInputSource("invoice.xml"),
                      new XSLTInputSource("invoice.xsl"),
                      new XSLTResultTarget(System.out));

%>



Error Code :


Error during JSP page processing
The XML declaration may only appear at the very beginning of the document.
	at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1443)
	at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:6
73)
	at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java,
Compiled Code)
	at pagecompile.jsp._xml._test__declare._jspService(_test__declare.java:83)
	at
com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.
java:87)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.runServlet(JspServlet
.java:469)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer
vlet.java:259)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja
va:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at com.sun.server.ServletState.callService(ServletState.java:226)
	at com.sun.server.ServletManager.callServletService(ServletManager.java,
Compiled Code)
	at
com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
	at
com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
	at com.sun.server.http.stages.Runner.process(Runner.java:79)
	at com.sun.server.ProcessingSupport.process(ProcessingSupport.java,
Compiled Code)
	at com.sun.server.Service.process(Service.java:204)
	at
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
:374)
	at
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
:166)
	at com.sun.server.HandlerThread.run(HandlerThread.java:162)
---------
XercesLiaison.parse error: SystemID -
file:/D:/Java/JavaWebServer2.0/invoice.xsl line - 2
	at org.apache.xalan.xpath.xdom.XercesLiaison.parse(XercesLiaison.java:309)
	at org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:224)
	at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:6
66)
	at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java,
Compiled Code)
	at pagecompile.jsp._xml._test__declare._jspService(_test__declare.java:83)
	at
com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.
java:87)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.runServlet(JspServlet
.java:469)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer
vlet.java:259)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja
va:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at com.sun.server.ServletState.callService(ServletState.java:226)
	at com.sun.server.ServletManager.callServletService(ServletManager.java,
Compiled Code)
	at
com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
	at
com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
	at com.sun.server.http.stages.Runner.process(Runner.java:79)
	at com.sun.server.ProcessingSupport.process(ProcessingSupport.java,
Compiled Code)
	at com.sun.server.Service.process(Service.java:204)
	at
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
:374)
	at
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
:166)
	at com.sun.server.HandlerThread.run(HandlerThread.java:162)
---------
The XML declaration may only appear at the very beginning of the document.
	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1249)
	at
org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML
DocumentScanner.java, Compiled Code)
	at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java, Compiled Code)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1138)
	at org.apache.xalan.xpath.xdom.XercesLiaison.parse(XercesLiaison.java:296)
	at org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:224)
	at
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl.java:6
66)
	at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java,
Compiled Code)
	at pagecompile.jsp._xml._test__declare._jspService(_test__declare.java:83)
	at
com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.
java:87)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.runServlet(JspServlet
.java:469)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer
vlet.java:259)
	at
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja
va:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at com.sun.server.ServletState.callService(ServletState.java:226)
	at com.sun.server.ServletManager.callServletService(ServletManager.java,
Compiled Code)
	at
com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
	at
com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
	at com.sun.server.http.stages.Runner.process(Runner.java:79)
	at com.sun.server.ProcessingSupport.process(ProcessingSupport.java,
Compiled Code)
	at com.sun.server.Service.process(Service.java:204)
	at
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
:374)
	at
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
:166)
	at com.sun.server.HandlerThread.run(HandlerThread.java:162)



thanks,
Paul


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.