It's not possible to access serialized output, you have to write the source earlier to disk. There exists a SourceWritingTransformer, but it's not available at http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/transformation/package-summary.html, so I assume it's only available in Cocoon 2.1.x. Add it as last transformer in the pipe and it will write the source to disk (with the correct serialization??).

<map:read/> does something completely different. It reads files from disk and sends them directly (without generating SAX events) to the client (http://outerthought.net/wiki/Wiki.jsp?page=Reader).

Regards,

Joerg

Ludovic de Beaurepaire wrote:
Hi All,

Excuse me for my poor english.
I have to access the output after the transformation/serialization and
before it is send in the HttpResponse, because I have to save it in a file
and send just a code to the client.
I tried with redirection in my XSL stylesheet, but just the XML datas are
saved, it is NOK.
I tried coding my own reader, but I have a compilation error in the sitemap
written like this :

...
  <map:readers default="resource">
    <map:reader name="srvimp" src="infolis.srvimp.SrvImpReader"/>
  </map:readers>
...
 <map:pipelines>
  <map:pipeline>
   <map:match pattern="test.xsp">
    <map:generate type="xsp" src="content/xml/GENERAL.xsp"/>
    <map:transform src="style/xsl/GENERAL_u.xsl"/>
    <map:serialize type="fo2pdf"/>
    <map:read type="srvimp" mime-type="text/html"/>
   </map:match>
  </map:pipeline>
 </map:pipelines>
...

Does somewone know the solution to work with the output of the event
pipeline ?

Thanks,

Ludovic

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to