Lars Geldner wrote:
Lars Geldner wrote:
Dear Lenya users,

we included the fckeditor module according to the instructions given
at
the Lenya homepage (Lenya 2.0.2, fckeditor 2.4.3).
If I add a simple table to my page using the WYSIWYG modus of
fckeditor
and click "Save" Lenya says:
 * error: attribute "border" not allowed at this point; ignored
 * error: attribute "cellpadding" not allowed at this point; ignored
 * error: attribute "cellspacing" not allowed at this point; ignored
 * error: attribute "width" not allowed at this point; ignored
 * error: unknown element "tbody" from namespace
"http://www.w3.org/1999/xhtml";
 * error: unfinished element
 * error: element "br" from namespace "http://www.w3.org/1999/xhtml";
not
allowed in this context
 * error: element "br" from namespace "http://www.w3.org/1999/xhtml";
not
allowed in this context
It seems to be the same problem like this one of year 2006:
http://www.mail-archive.com/[email protected]/msg04273.html

Do I really have to write my own XSLT stylesheets that are removing
the
"invalid" elements/attributes? Or is there a smarter solution available
in
the meanwhile?
Thanks in advance + regards,

Lars
There already is an xslt that does the cleaning, it just is missing some
of the items. I think I copied what Doug provided in another message. Tonight I will look over the changes I made and post them to the list. I will also look them over and perhaps update the master clean-xhtml.xsl file. I should also go through and test FCK with its latest release, but
that won't happen until next week.

Richard
Hi,

where can I find the existing clean-xhtml.xsl stylesheet?

Best regards,

Lars

Ok, it is here: lenya\modules\xhtml\xslt

So I have to edit this file to remove the invalid elements/attributes? Or is 
there existing code available?

Lars

Sorry about that, I became otherwise occupied last night. Attached is the version of clean-xhtml.xsl I was using. You are going to have to change the schema as Norbert suggested as well. I changed my to comment out the default include for basic and removed the comment ffor the transitional choice.

Attachment: clean-xhtml.xsl
Description: XML document

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to