oxygen delete's empty <![CDATA[]]>

Having trouble installing Oxygen? Got a bug to report? Post it all here.
nexus
Posts: 1
Joined: Fri Dec 10, 2004 8:58 pm

oxygen delete's empty <![CDATA[]]>

Post by nexus »

Hi,

since there is a problem with handling <textarea/> in browsers (solution for mozilla is to send header application/xhtml+xml, but IE do not know this header :( ) I've finally find out, how to easilly prevent xslt parsers to collapse <textarea></textarea> into <textarea/>
by putting <![CDATA[]]> in it. It's empty (no spaces etc...) and it works.. cool
but when I use pretty print in oxygen, it removes this "empty but usefull :)" element... and everything is screwed up in that moment...

is there any way to force oxygen to not care about <![CDATA[]]> tags?
thanks for help
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

Oxygen has two formatting actions. One is "Format and indent" that does a "heavy" formatting and that parses the document first, thus it cannot keep empty CDATA sections. The other is "Indent selection" available from the contextual menu (right click on Windows) that does a "light" formatting affecting only the spaces at the beggining of lines. So check the "Indent selection" action and see if that solves your problem.

Best Regards,
George
Post Reply