> method, but what is cdata-section-elements? Could it be of use to me 
> here?

cdata-section-elements is a declaration in xsl:output element of xsl which
allows you to cause the contents of an element to be surrounded by a
<![CDATA[ ]]> block, which causes the character data to pass through
transformation untouched.  I use this when serializing page parts in XML
that contain html and need further processing later.  Whether it will do
what you want when used with HTMLSerializer I don't know, but it's worth a
shot.  Technically, the Serializer is only setting up the output method of
the xsl transformation engine (probably xalan, unless you've configured it
to use something else) and in XSL's view, cdata-section-elements is
irrelevant to html output method.  Having said that, it will probably be
dependant on the implementation and might work.  If you modify your
serializer definition to the following:

<map:serializer name="html" mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
   <cdata-section-elements>textarea</cdata-section-elements>
</map:serializer>

and try again, you'll know soon enough.  

If it doesn't work, I'd try changing them to entities like &lt;br&gt; and
see if you luck out and the translation engine decides to output these as
characters.  You may be able to affect this outcome by trying various
combinations of the doctype-public and encoding parameters for your html
serializer.

The bottom line is that xhtml would be better for this, and you might want
to look more into what the problem with Mozilla is.

Geoff Howard

---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to