Hmmm... well I'm getting some strange things happening now. The cdata 
section is no longer working (i swear it worked :), and Chimera is not 
rendering things correctly anymore, it's acting like Mozilla.

When it was working the textarea tags were not escaped.

For now, I made a small hack (inserting some default text) so I can 
continue with my work and I'll revisit this ASAP.

Justin


On Friday, August 9, 2002, at 03:06 PM, Joerg Heinicke wrote:

> I wonder that this is working. The <textarea></textarea> will be 
> escaped because of CDATA section to &lt;textarea&gt;&lt;/textarea&gt; 
> when it's parsed and it shell be shown in the browser as text 
> <textarea></textarea> - but it should not work.
>
> That was what I expect. I tried to test it, but it was not possible for 
> me with the current Cocoon from CVS. In my sitemap there is written
>
>    <map:serializer logger="sitemap.serializer.xhtml" mime-
> type="text/html" name="xhtml" pool-grow="2" pool-max="64" pool-min="2" 
> src="org.apache.cocoon.serialization.XMLSerializer">
>      <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
> <doctype-
> system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
>      <encoding>UTF-8</encoding>
>      <!-- <cdata-section-elements>cdata</cdata-section-elements> -->
>    </map:serializer>
>
> but every parameter is ignored: I get no doctype declarations and no 
> cdata sections (even when the comment <!-- --> is removed).
>
> What's up with XMLSerializer??
>
> Regards,
>
> Joerg
>
>
>
> Justin Fagnani-Bell wrote:
>> Yes! finally.
>> Here's what I did. I added a <cdata> tag around my <textarea> tags in 
>> my stylesheet, then put <cdata-section-
>> elements>cdata</cdata-section-elements> in my serializer definition. 
>> Now even when the textarea has no text the tag doesn't get touched. 
>> The browser just ignores the made up cdata tag and everythings fine.
>> I tried what you suggested, (adding <cdata-section-
>> elements>textelement</cdata-section-elements>) but when the textarea 
>> contained just text (no markup) i'd get something like this: 
>> [CDATA[some text]] in the text field.
>> Thanks everyone.
>> --Justin
>
>
> ---------------------------------------------------------------------
> 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]>
>


---------------------------------------------------------------------
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