cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Art Spassky" <>
Subject Problem with StreamGenerator
Date Tue, 12 Oct 2004 08:47:14 GMT
Hi all.

Can someoneb help me with my problem.
I am using cocoon-
I would like to use StreamGenerator for automatical generating documents
from uploaded files.
everything works well but I found problem with encoding.
When I upload xml file with encoding UTF-8 and transform it. Output file
contains irregular data.

Thank you for help in advance.


<?xml version="1.0" encoding="Windows-1251"?>
<meta name="Content-Type" Value="text/html;charset=UTF-8"/>
 <form name="UploadForm" method="post" action="submit"
  <input type="file" name="Foo"/>
  <input id="submit1" name="submit1" type="submit" value="Submit"/>

extract from xslt file

<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet xmlns:xsl=""
<xsl:output encoding="UTF-8" indent="yes" method="xml"/>
<xsl:template match="/">

Extract from sitemap.xmap

 <map:match pattern="UploadForm.html">
     <map:generate src="UploadForm.xml"/>

 <map:match pattern="submit">
  <map:act type="">
       <map:parameter name="Cache-Control" value="max-age=0"/>
      <map:generate type="stream">
         <map:parameter name="form-name" value="Foo"/>
     <map:serialize type="xml"/>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message