Has anyone tried setting the serializer when using the
SourceWriting-Transformer in Cocoon-2.0.5dev?

I am trying to use Cocoon-2.0.5dev from the 2003-02-12 snapshot
to write a PDF file to disk using the SourceWriting-Transformer.
The trouble is I cannot seem to set the serializer to "fo2pdf".
It insists on using the "xml" serializer, and even then fails with this message:

ERROR   (2003-02-13) 10:48.34:800   [access] (/cocoon-2.0.5-12/test/template.save-pdf) 
PoolThread-4/CocoonServlet: Problem with Cocoon servlet
org.apache.cocoon.ProcessingException: Exception during processing of 
cocoon://test/template.xml: javax.xml.transform.TransformerException: 
javax.xml.transform.TransformerException: org.apache.cocoon.ProcessingException: 
Cannot get 'xml' serializer

The xml I am feeding to the SWT looks about like this:

<?xml version="1.0" encoding="UTF-8"?>
<source:write serializer="fo2pdf" xmlns:source="http://apache.org/cocoon/source/1.0";>
<source:serializer>fo2pdf</source:serializer>
<source:source>../data/template.pdf</source:source>
<source:fragment>
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
    ...
  </fo:root>
</source:fragment>
</source:write>

I call the SWT like this:

<map:transform type="swt">
  <map:parameter name="serializer" value="fo2pdf"/>
</map:transform>

I define the SWT like this:

<map:transformer name="swt"
  src="org.apache.cocoon.transformation.SourceWritingTransformer"
  logger="sitemap.transformer.filewriter">
  <map:parameter name="serializer" value="fo2pdf"/>
</map:transformer>

Any help resolving this would be appreciated,
Tim



---------------------------------------------------------------------
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