On 04.04.2007 19:33, alarcher wrote:
I try to find a way to remove the first line of the output xml in cocoon.
Here's the xml after cocoon serialization :
<?xml version="1.0" encoding="ISO-8859-1"?>
Do you know if there's a way to configure serializer for deleting the first
line ?
Hi Antoine,
first please try the users list first for such kind of questions. The
dev list is more targeted for the development of Cocoon itself.
Anyway, to answer your question: The parameter is called
omit-xml-declaration and can be set as parameter on the serializer. The
default sitemap [1] actually has set this parameter already on the wml
serializer:
<map:serializer logger="sitemap.serializer.wml"
mime-type="text/vnd.wap.wml" name="wml"
src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>
<doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>
<encoding>ASCII</encoding>
<omit-xml-declaration>yes</omit-xml-declaration>
</map:serializer>
Regards
Joerg
[1]
http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/webapp/sitemap.xmap?revision=477161&view=markup