The documentation at http://cocoon.apache.org/2.1/userdocs/transformers/sourcewriting-transformer.html says that <source:write> must have <source:source> and <source:fragment> children. A good example is given there. In your XML these elements are missing.
Lars
Claus Straube wrote:
Hello!
I want to write some XML code in a pipeline on HHD. The trials with the sourcewriting transformer failed all.
Here’re my questions:
1. Does anyone have a tip, how I can resolve that problem? (see error msg below) 2. What does this error msg mean? 3. Is there the possibility to use another transformer (do you know one?)
Thank you for your help!
Best regards – Claus
I’m working with Cocoon 2.1.5 on a Tomcat 5.5.x
Components:
<map:transformers default="xalan">
<map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="messages">
<catalogue id="messages" name="messages" location="content/translations"/>
</catalogues>
</map:transformer>
<map:transformer name="write-source" src="org.apache.cocoon.transformation.SourceWritingTransformer" logger="sitemap.transformer.write-source"/>
<map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer"/>
</map:transformers>
Pipeline:
<map:match pattern="write.html">
<map:generate src="content/writetest.xml"/>
<map:transform type="write-source"/>
<map:serialize type="xml" />
</map:match>
Xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<page xmlns:source="http://apache.org/cocoon/source/1.0">
<source:write src="output/hello.xml" serialize="xml">
<content>
Testing…
</content>
</source:write>
</page>
Error:
org.apache.cocoon.ProcessingException: insertFragment: systemID is required.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
