I use this serializer :

<component-instance name="xml"
class="org.apache.cocoon.serialization.XMLSerializer"
        mime-type="text/xml"
        logger="sitemap.serializer.xml"/>

in this pipeline :

<map:match pattern="*.xml">
        <map:generate src="xml/{1}.xml"/>
        <map:serialize name="xml"/>
</map:match>

and xml/file.xml contains :

<?xml version='1.0' encoding='UTF-8'?>
<test>
        this is a test.
</test>

I can acces cocoon/myapp/file.xml, but both IE and NS display them as an
HTML file (display only 'this is a test').
If I use 'view source', the <tag> test is ok, but the PI (<?xml
version='1.0' encoding='UTF-8'?>) vanished.

if I try the same test with a .svg file and the SVG/JPEG serializer, both
browsers reconize the output as an image and display it properly.

I tryed stoping / starting Tomcat, refreshing, deleting work directory, no
luck... I must use an xml2xhtml transformer in order to see my results...

any idea ?

[Tomcat 4.0.1, 10 days old CVS, IE 5.5, NS 6.]


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to