On Fri, Aug 29, 2003 at 11:10:30AM -0700, Chris Wilkes wrote: > Hi all, > > I have an XSP that generates XML and then I want to run that XML > through an XSL to make into an HTML page. Pretty straightforward. > Except that I'm getting this error when doing so: > org.apache.cocoon.ProcessingException: Exception in > ServerPagesGenerator.generate(): java.lang.RuntimeException > at org.apache.xalan.transformer.TransformerImpl.run > (TransformerImpl.java:3364) > at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument > (TransformerHandlerImpl.java:427) > at org.apache.cocoon.xml.AbstractXMLPipe.endDocument > (AbstractXMLPipe.java:91) > on my Cocoon-2.1rc1 running under Jetty. > > I took out my XSLT and serialized the XSP output to XML. That works, > and I took that file and put it on the webserver. I then ran that XML > through the XSLT and it worked fine. > So I'm thinking it has something to do with the hand off between the > two. > Does anyone have any debugging tips for this? I do have the .java and > .class files generated from my XSP when I take out the XSLT part, is > there something I can look at in there? Is this a namespace issue > perhaps?
Figured out my problem. A Serializer takes as inputs SAX events: http://wiki.cocoondev.org/Wiki.jsp?page=Serializer And I wasn't giving it that, rather some straight text. The solution was to put take my XML string and use the xsp:util logicsheet: <util:include-expr expr="xmlString"/> It would be nice if I could feed it a DOM or JDOM variable and have it do it for me, since that's what I have in the first place. Is there such a construct? Chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
