hi,
I have a problem between uploading xml files and generating them with a
stream generator in cocoon.
here are my html file and my sitemap.xmap
myfile.html
<html>
<form method="POST"
action="http://127.0.0.1:8081/ma/services/ma-import/mapipeline"
enctype="multipart/form-data">
<input type="file" name="Filename"/>
<input type="submit" name="Envoyer"/>
</form>
</html>
sitemap.xmap
<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://apache.org/cocoon/sitemap/1.0
http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd"
xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:resources>
<map:resource name="transform-axml2maxml">
<map:transform type="xslt" src="transform/axml2maxml.xslt"/>
</map:resource>
</map:resources>
<map:generators default="file">
<map:generator name="stream"
src="org.apache.cocoon.generation.StreamGenerator"/>
</map:generators>
<map:transformers>
<map:transformer
src="com.mycompany.transform.Maxml2ObjectsTransformer"
name="maxml2objects"/>
</map:transformers>
<map:pipelines>
<map:pipeline>
<map:match pattern="mapipeline">
<map:generate type="stream">
<map:parameter name="form-name" value="Filename"/>
<map:parameter name="defaultContentType"
value="multipart/form-data"/>
</map:generate>
<map:call resource="transform-axml2maxml"/>
<map:transform type="maxml2objects"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
So, when I try to test that, I have this exception:
>>> Unknown request object encountered named Filename : null
Does anybody has any idea to solve this problem?
regards,
tug
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]