Hello Markus,
Try to comment transformation and exemine your resulted XML document
on subject of presence '<?xml version="1.0" encoding="ISO-8859-1"?>'
inside document body. It is not allowed.
MH> FLOW:
MH> cocoon.processPipelineTo("test",{ test : doc },os); // doc = w3c.doc
MH> SITEMAP:
MH> <map:match pattern="test">
MH> <map:generate type="jx" src="jx.xml"/>
MH> <map:transform type="xsltc" src="test.xsl"/>
MH> <map:serialize type="xml"/>
MH> </map:match>
MH> jx.xml:
MH> <jx:template xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
MH> ${test}
MH> </jx:template>
MH> After the pipeline processing in my logs I can see the results of the doc
MH> transformed with test.xsl. Everything seems to work as expected but in my
MH> output stream I also have the following exeption:
MH> <test xmlns:v="http://schema.rheinland.net/Versicherung.htm"
MH> xmlns:kfz="http://schema.rheinland.net/Kfz.htm"
MH> xmlns:rhld="http://schema.rheinland.net/soap/header/rhld.htm">
MH> test
MH> </test><?xml version="1.0" encoding="ISO-8859-1"?>
MH> <error:notify xmlns:error="http://apache.org/cocoon/error/2.1"
MH> error:type="error"
MH> error:sender="org.apache.cocoon.components.treeprocessor.sitemap.ErrorHandle
rHelper">><error:title>An Error
MH> Occurred</error:title><error:source>org.apache.cocoon.ProcessingException</e
rror:source>><error:message>Failed to execute
MH> pipeline.</error:message><error:description>org.apache.cocoon.ProcessingExce
MH> ption: Failed to execute pipeline.:
MH> java.lang.NullPointerException</error:description><error:extra
MH> error:description="cause">java.lang.NullPointerException</error:extra><error
MH> :extra error:description="full exception chain stacktrace">Original
MH> Exception: java.lang.NullPointerException
MH> at
MH> org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endPrefixMapping(SAX2DTM.java:1828)&#
MH> 13;
MH> at
MH> org.apache.xalan.xsltc.trax.TransformerHandlerImpl.endPrefixMapping(Transfor
MH> merHandlerImpl.java:390)
MH> at
MH> org.apache.cocoon.xml.AbstractXMLPipe.endPrefixMapping(AbstractXMLPipe.java:
MH> 112)
MH> at
MH> org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator
MH> .java:3172)
MH> at
MH> org.apache.cocoon.generation.JXTemplateGenerator.performGeneration(JXTemplat
MH> eGenerator.java:2920)
MH> at
MH> org.apache.cocoon.generation.JXTemplateGenerator$TransformerAdapter$Template
MH> Consumer.endDocument(JXTemplateGenerator.java:2698)
MH> at
MH> org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)&#
MH> 13;
MH> ...
MH> ...
MH> Can anybody tell me what I'm doing wrong? Or is there anybody who can help
MH> me finding a better way? I don't want to use flowscript or java within my
MH> flowscript to do things that are usally done within the sitemap like
MH> transformations.
MH> By the way: If I don't do the transformation everything works fine.
MH> `
MH> Thanks, Markus
MH> -----Urspr�ngliche Nachricht-----
MH> Von: Markus Heussen
MH> Gesendet: Dienstag, 27. Januar 2004 16:47
MH> An: [EMAIL PROTECTED]
MH> Betreff: [FLOW] cocoon.processPipelineTo
MH> Hi,
MH> can someone tell me how I can use the cocoon.processPipelineTo method with a
MH> given w3c document as the initial input (generator) of a pipeline matcher.
MH> For example:
MH> cocoon.processPipelineTo("matcher",w3cDocumentObject,ouputStream);
MH> The w3cDocumentObject is the content normally produced by using a generator,
MH> but in this case I do not need to produce the xml content using a generator.
MH> But it is required to start a pipeline with it.
MH> Any idea?
MH> Thanks, Markus
MH> ---------------------------------------------------------------------
MH> To unsubscribe, e-mail: [EMAIL PROTECTED]
MH> For additional commands, e-mail: [EMAIL PROTECTED]
--
Best regards,
Peter Velychko
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]