You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robert Nicholson <ro...@elastica.com> on 2000/10/30 04:50:15 UTC
XSP can be very frustrating.
Anybody know what this PI doesn't work or even how I can see the XML it's
suppose to be generating?
All of this is before my document element
<?xml version="1.0" encoding="ISO-8859-1"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:request="http://www.apache.org/1999/XSP/Request">
<xsp:pi target="xml-stylesheet">
href="resume-html.xsl" type="text/xsl"
</xsp:pi>
How can I see the XML it is sending to the xslt processor?
I'm getting this error
org.apache.cocoon.processor.ProcessorException: Could not associate
stylesheet to document: no matching stylesheet for: explorer
at
org.apache.cocoon.processor.xslt.XSLTProcessor.getResource(XSLTProcessor.jav
a:196)
at
org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:10
7)
at org.apache.cocoon.Engine.handle(Engine.java:359)
at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Thread.java:484)
---
Robert Nicholson
Email: robert@elastica.com
AOL : rydmerlin
RE: XSP can be very frustrating.
Posted by Per Kreipke <pe...@onclave.com>.
Robert,
One answer for you:
<?cocoon-format type="text/xml"?>
will output as XML, not HTML. You might then be able to see intermediate
results.
As for the other problem, are you trying to get the usual
<?xml-stylesheet href="resume-html.xsl" type="text/xsl"?>
to be inlined inside your XSP tag for a reason?
Per.
> Anybody know what this PI doesn't work or even how I can see the XML it's
> suppose to be generating?
>
> All of this is before my document element
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <?cocoon-process type="xsp"?>
> <?cocoon-process type="xslt"?>
>
> <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
> xmlns:request="http://www.apache.org/1999/XSP/Request">
>
> <xsp:pi target="xml-stylesheet">
> href="resume-html.xsl" type="text/xsl"
> </xsp:pi>
>
> How can I see the XML it is sending to the xslt processor?
>
> I'm getting this error
>
> org.apache.cocoon.processor.ProcessorException: Could not associate
> stylesheet to document: no matching stylesheet for: explorer
> at
> org.apache.cocoon.processor.xslt.XSLTProcessor.getResource(XSLTPro
> cessor.jav
> a:196)
> at
> org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcess
> or.java:10
> 7)
> at org.apache.cocoon.Engine.handle(Engine.java:359)
> at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper
> .java:503)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpC
> onnectionHandler.java:160)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoin
> t.java:338
> )
> at java.lang.Thread.run(Thread.java:484)
>
>
> ---
> Robert Nicholson
> Email: robert@elastica.com
> AOL : rydmerlin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>