You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Kamal Bhatt <kb...@tt.com.au> on 2007/10/15 03:59:25 UTC
CForms HTMLArea
Hi,
Apologies if this has been asked before, but I would like to use HTML
area (in CForms) and I was wondering about the following:
1. Does it support HTML or XHTML. I assume that it isn't the same code
from dynarch, so it's claims about it not supporting XHTML is not true
2. What does it do with non-XML entity references?
From the example, it looks like that the entity references are stripped
out and it does use XHTML, I just want to confirm.
Cheers.
--
Kamal Bhatt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CForms HTMLArea
Posted by Kamal Bhatt <kb...@tt.com.au>.
Hi,
I noticed this code:
<fd:datatype base="string">
<fd:convertor type="htmlcleaner"
config="resource://org/apache/cocoon/forms/datatype/convertor/HtmlCleanerConfiguration.xml"/>
</fd:datatype>
in the examples, what is it doing, is it doing what Peter was talking
about or something else?
Cheers.
> I had the same poblem some time ago and received the following reply
> from Jasha Joachimsthal (03/09/2007 19:09)
>
> "The XMLSerializer closes all elements which leads to an unwanted
> result in case of textarea, script and some other elements that
> browsers can't handle when closed. You can make your own XSL that
> imports the cforms XSLs and override the template of the textarea. An
> other option is to use
> org.apache.cocoon.components.serializers.XHTMLSerializer. You may have
> to use the latest 2.1 branch code of this block, some issues have been
> fixed in the code the last few months."
>
> I used the org.apache.cocoon.components.serializers.XHTMLSerializer
> from 2.1.10 and that fixed the problem
>
> Regards
>
> Peter
>
--
Kamal Bhatt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CForms HTMLArea
Posted by Peter Sparkes <pe...@didm.co.uk>.
Hi Kamal,
I had the same poblem some time ago and received the following reply
from Jasha Joachimsthal (03/09/2007 19:09)
"The XMLSerializer closes all elements which leads to an unwanted result
in case of textarea, script and some other elements that browsers can't
handle when closed. You can make your own XSL that imports the cforms
XSLs and override the template of the textarea. An other option is to
use org.apache.cocoon.components.serializers.XHTMLSerializer. You may
have to use the latest 2.1 branch code of this block, some issues have
been fixed in the code the last few months."
I used the org.apache.cocoon.components.serializers.XHTMLSerializer from
2.1.10 and that fixed the problem
Regards
Peter
> Hi,
> Apologies if this has been asked before, but I would like to use HTML
> area (in CForms) and I was wondering about the following:
>
> 1. Does it support HTML or XHTML. I assume that it isn't the same code
> from dynarch, so it's claims about it not supporting XHTML is not true
> 2. What does it do with non-XML entity references?
>
> From the example, it looks like that the entity references are
> stripped out and it does use XHTML, I just want to confirm.
>
> Cheers.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org