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