cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fennell, Philip" <>
Subject RE: Xhtml and go!!
Date Wed, 26 Jul 2006 09:12:46 GMT
Although I cannot comment on your stated problem I was drawn to reply
because I noticed that your example XHTML output had an XML declaration
at the start:
<?xml version="1.0" encoding="ISO-8859-1"?>

If you want the web pages you are generating to render as best as
possible across all browsers then you need to drop the XML declaration.
Internet Explorer 6 will not run in standards compliance mode, even with
the correct DOCTYPE declaration, if the XML declaration is there too.


Philip Fennell 



From: Andrew [] 
Sent: 26 July 2006 09:21
Subject: Xhtml and go!!

can someone please tell me why when setting ajax="true" in my CForm and
serializing the document as xhtml (Strict) the following line in the
xhtml output should break the page?:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE page PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
<> ">

<form action
="updateAccounts.kont" ajax="true" name=
"Form1" method="POST" dojoType="CFormsForm"
<script type=
"text/javascript">cocoon.forms.ajax = true;</script

What is it about the script line that xhtml does not like? My ajax map

				<map:select type="ajax-request">
				  <map:when test="true">

				    <map:serialize type="xml"/>
				    <map:serialize type="xhtml"/>

If I change the forms-styling-*.xsl document to an indclude js file.
<script src="" />, which contains that one line of js, 
the page loads correctly but a js error is generated saying that
'cocoon' is undefined. At this point, of course, no ajax works 

and what you are left with on submitting a page is a full page reload!! 

Any ideas anyone?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message