cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helena Ginzburg <hel...@earthlink.co.il>
Subject Oddity with XSP and Namespaces
Date Wed, 17 Jul 2002 14:22:38 GMT
Hi All,
Can anyone explain the following?

XSP page:
<xsp:page 	xmlns:xsp="http://apache.org/xsp">
	<test>
		Hello!
	</test>
</xsp:page>
Pipeline :
<map:match pattern="**">
	<map:generate type="serverpages" src="xsp/test.xsp"/>
	<map:serialize/>
</map:match>
After HTML serializations I get the clean result
<test>
	Hello!
</test>
But after WML serialization the result looks "different"
<?xml version="1.0" encoding="UTF-8"?>
<test xmlns:xsp="http://apache.org/xsp">
	Hello!
</test>

How could I get the same clean result after WML serialization?

Environment: Tomcat 4.0.3, Latest Cocoon 2.0.1
sitemap serialisers : 
<map:serializers default="wml">
			<map:serializer logger="sitemap.serializer.links"
name="links" src="org.apache.cocoon.serialization.LinkSerializer"/>
			<map:serializer logger="sitemap.serializer.xml"
mime-type="text/xml" name="xml"
src="org.apache.cocoon.serialization.XMLSerializer"/>
			<map:serializer logger="sitemap.serializer.html"
mime-type="text/html" name="html" pool-grow="4" pool-max="32" pool-min="4"
src="org.apache.cocoon.serialization.HTMLSerializer">
				<buffer-size>1024</buffer-size>
			</map: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>
</map:serializers>

Any suggestions?
Regards Helena.


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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