You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Carl Backstrom <ca...@oracle.com> on 2007/03/14 00:15:13 UTC
Problem With Stream Generator
Hello,
I'm posting an xml and xsl as form fields to transform to fop/pdf using
these pipeline settings in my sitemap.xmap
<map:pipelines>
<map:pipeline internal-only="true">
<map:match pattern="xml">
<map:generate type="stream">
<map:parameter name="form-name" value="xml"/>
<map:parameter name="defaultContentType" value="text/xml"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="xsl">
<map:generate type="stream">
<map:parameter name="form-name" value="template"/>
<map:parameter name="defaultContentType" value="text/xml"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="*">
<map:generate src="cocoon:/xml"/>
<map:transform src="cocoon:/xsl"/>
<map:select type="request-parameter">
<map:parameter name="parameter-name" value="_xf"/>
<map:when test="rtf">
<map:serialize type="fo2rtf"/>
</map:when>
<map:otherwise>
<map:serialize type="fo2pdf"/>
</map:otherwise>
</map:select>
</map:match>
</map:pipeline>
</map:pipelines>
In Cocoon 2.1.5.1 running on Tomcat these sitemap pipelines it works
perfectly when I try on Cocoon 2.1.10 running on the included Jetty
server I now get this message
>>
org.xml.sax.SAXParseException:
The ' = ' character must follow "version" in the XML declaration.
>>
except nothing in the xml / xsl inputs has changed.
Does anybody have any ideas? Thanks in advance.
Carl*
*
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Problem With Stream Generator
Posted by Carl Backstrom <ca...@oracle.com>.
Hello,
Thanks but i double checked that and my xml and xsl before my post is
wellformed
I used the request pipeline to check my input and for some reason when
running on Jetty it's stripping all the = signs and " out of the xml in
my form post. I moved the new Cocoon install over to run over on Tomcat
and it started working again.
So it's defiantly a difference between Jetty and Tomcat any idea's
Carl
Bertrand Delacretaz wrote:
> On 3/14/07, Carl Backstrom <ca...@oracle.com> wrote:
>
>> ....In Cocoon 2.1.5.1 running on Tomcat these sitemap pipelines it works
>> perfectly when I try on Cocoon 2.1.10 running on the included Jetty
>> server I now get this message
>>
>> org.xml.sax.SAXParseException:
>> The ' = ' character must follow "version" in the XML
>> declaration...
>
> You probably need to add an XML version declaration at the beginning
> of your input, i.e.
>
> <?xml version="1.0"...
>
> -Bertrand
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Problem With Stream Generator
Posted by Bertrand Delacretaz <bd...@apache.org>.
On 3/14/07, Carl Backstrom <ca...@oracle.com> wrote:
> ....In Cocoon 2.1.5.1 running on Tomcat these sitemap pipelines it works
> perfectly when I try on Cocoon 2.1.10 running on the included Jetty
> server I now get this message
>
> org.xml.sax.SAXParseException:
> The ' = ' character must follow "version" in the XML declaration...
You probably need to add an XML version declaration at the beginning
of your input, i.e.
<?xml version="1.0"...
-Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org