Hi Jürgen,

 > Hello Rainer
 > 
 > Am 26.11.2008 um 11:10 schrieb Rainer Schöpf:
 > 
 > > Hi Jürgen,
 > > 
 > > > Hi Rainer
 > > > 
 > > > Am 26.11.2008 um 10:20 schrieb Rainer Schöpf:
 > > > 
 > > > > On Tue, 25 Nov 2008 at 23:57 -0500, [EMAIL PROTECTED] wrote:
 > > > > 
 > > > > > This counters your first post stating the TEXTAREA element is
 > > > > > collapsed.
 > > > > 
 > > > > No, it doesn't.  As I explained in my first post, textarea elements are
 > > > > collapsed when using the default sitemap. By changing type="xml" to
 > > > > type="html"
 > > > > in map:serialize, I get the code shown in my last message.
 > > > > 
 > > > 
 > > > 
 > > > Did you try the xhtml serializer?
 > > > http://cocoon.apache.org/2.1/userdocs/xhtml-serializer.html
 > > 
 > > No, I didn't. I'm willing to try.
 > > 
 > > However, since the browsers have problems with XHTML, isn't the HTML
 > > serializer
 > > the better way?
 > 
 > I think the problem here is not on the browser side; but rather not all
 > elements are allowed to collapse in xhtml. I had the same misunderstanding a
 > while ago - Richard Frovarp explained then that only some elements are
 > allowed to be written in <element /> notation. Textarea is most likely not
 > among them, nor is script.

But as far as I can see, the XHTML serializer does collapse them. The page I 
quoted in my first post,

   http://hixie.ch/advocacy/xhtml

claims that XHTML works only if the HTTP Content-Type is application/xhtml+xml. 
Currently, text/html is used (see the definition in the global sitemap.xmap 
file). This is inconsistent with the meta-equiv html header specifying 
application/xhtml+xml.

 > I wouldn't use the html serializer (outdated not future proof code).

I'd be happy to not use it, but my problem is that I don't know how to get it 
to 
work otherwise: someone creates a new xhtml document containing an empty 
textarea element, and things start to go wrong. The display is wrong, the Edit 
menu stops working.

I'm at a loss how to proceed, except by disallowing insertion of textarea 
elements in the editor configuration.

Maybge I've done something wrong, but I don't see what.

Perhaps you could try the attached simple XHTML document and tell me what 
happens.

  Rainer

Attachment: test-xhtml.xml
Description: Simple test document

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to