cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TREGAN Fabien <fabien.tre...@airbus.aeromatra.com>
Subject IE / NS don't reconize my XML output as XML
Date Tue, 12 Mar 2002 08:04:55 GMT
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message