Thank you all for answering me, but I
still can't manage to do it.
Here is my pipeline:
<map:match
pattern="test.html">
<map:generate
src=""/>
<map:transform
src=""/>
<map:serialize
type="xml"/>
<map:match>
Here is my
writeToFile.xsl:
<?xml version="1.0"
encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo=http://www.w3.org/1999/XSL/Format xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="redirect"> <xsl:output method="xml"/>
<xsl:template match="/"> <xsl:copy-of select="*"/>
<redirect:open
file="testWrite.xml"/>
<redirect:write file="testWrite.xml"> <xsl:copy-of select="*"/> </redirect:write> <redirect:close file="testWrite.xml"/>
</xsl:template>
</xsl:stylesheet>
When I am running this, I get the following error
message from the Cocoon:
type fatal message Exception in HTMLGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in HTMLGenerator.generate(): java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri If I remove all the redirect: lines, then I get the serialized input file, so the input is OK, obviously, I have some problems with this redirect: Can anybody please tell me what's wrong? Thank you very much for help. Anna
|
- Writing output of pipeline to a file Anna Afonchenko
- Re: Writing output of pipeline to a file Ludovic de Beaurepaire
- Re: Writing output of pipeline to a file Anna Afonchenko
- Re: Writing output of pipeline to a fi... Ludovic de Beaurepaire
- Re: Writing output of pipeline to ... Upayavira
- Re: Writing output of pipeline to ... Anna Afonchenko
- Re: Writing output of pipelin... Ludovic de Beaurepaire
- Re: Writing output of pip... Anna Afonchenko
- Re: Writing output of... Ludovic de Beaurepaire
- Re: Writing output of... Anna Afonchenko
- RE: Writing output of... Luca Morandini
- Re: Writing output of... Anna Afonchenko
- RE: Writing output of... Luca Morandini
- RE: Writing output of pip... Ray Martin
- Re: Writing output of pipeline to a file Boris Althaus