cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Backstrom <carl.backst...@oracle.com>
Subject Problem With Stream Generator
Date Tue, 13 Mar 2007 23:15:13 GMT
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


Mime
View raw message