cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hussayn <hussayn.dabb...@saxess.com>
Subject how can i force a serialiser to generate a </close>-tag even if the body is empty ?
Date Tue, 26 Aug 2008 10:38:25 GMT

Hi;

i am experimenting with dojo and i got an expression like this inside my
sourcefile:

	    <script type="text/javascript"
src="servlet:dojo:/resource/external/dojo/dojo/dojo.js"
	     djConfig="parseOnLoad:true, isDebug:true"></script>

After serialising to xhtml, the output contains:

	    <script type="text/javascript"
src="/dojo/resource/external/dojo/dojo/dojo.js"
	     djConfig="parseOnLoad:true, isDebug:true"/>

which is absolutely perfect... but for some reason the web browser (or dojo)
needs the closing "</script>" although the script tag does not contain any
content...

I did not find any configuration parameter in cocoon, so i just added a fake
entry into the scripts body:

	    <script type="text/javascript"
src="servlet:dojo:/resource/external/dojo/dojo/dojo.js"
	     djConfig="parseOnLoad:true, isDebug:true">&#160;</script>

That worked and now dojo (or my browser, or both???) seems to be happy.

But i don't like this hack very much. So how can i force cocoon (probably
the xhtml-serialiser ?) to create a tag-pair around an empty body ?

-- 
View this message in context: http://www.nabble.com/how-can-i-force-a-serialiser-to-generate-a-%3C-close%3E-tag-even-if-the-body-is-empty---tp19158791p19158791.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message