Hi all,
I've got the following sitemap fragment
<map:match pattern="vscdemo">
<map:generate src="vscdemo/dbsearch_form.xml"/>
<map:transform src="vscdemo/stylesheets/query.xsl"/>
<map:transform type="sql">
<map:parameter name="use-connection" value="vscdb"/>
<map:parameter name="show-nr-of-rows" value="false"/>
</map:transform>
<map:transform src="vscdemo/stylesheets/simple2html.xsl"/>
<map:serialize/>
<map:match>
The point is that query.xsl creates the tags for the sql transformer.
But unfortunatly it doesn't work. I've got the following exception:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.xml.sax.SAXException: Reached end of input.
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:186)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:364)
at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN1B0(sitemap_xmap.java:1466)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1303)
at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1260)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:162)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:106)
at org.apache.cocoon.Cocoon.process(Cocoon.java:416)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:538)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.java:474)
at
com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:430)
at
com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.java:286)
at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1087)
at com.mortbay.HTTP.HttpServer.service(HttpServer.java:662)
at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:457)
at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:317)
at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:99)
at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:254)
at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:601)
at java.lang.Thread.run(Thread.java:484)
The exception doesn't occur if I exchange the query.xsl transformer
with the sql transformer. The page renders correct, of course without
the requested database data.
Does anybody have an idea what the problem could be ?
Best Regards,
Gerd
--
________________________________________________________________
Gerd Mueller [EMAIL PROTECTED]
SMB GmbH http://www.smb-tec.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>