cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Larson" <Tdlar...@ci.canton.oh.us>
Subject [2.0.5dev 20030212 snapshot] SWT: Cannot set serializer
Date Thu, 13 Feb 2003 16:07:14 GMT
Using Cocoon-2.0.5dev from the 2003-02-12 snapshot.
I am trying 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



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message