Lars Geldner wrote:
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.Lars Geldner wrote:Dear Lenya users,we included the fckeditor module according to the instructions givenatthe Lenya homepage (Lenya 2.0.2, fckeditor 2.4.3).If I add a simple table to my page using the WYSIWYG modus offckeditorand 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"notallowed in this context* error: element "br" from namespace "http://www.w3.org/1999/xhtml"notallowed in this contextIt 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 removingthe"invalid" elements/attributes? Or is there a smarter solution availableinthe meanwhile?Thanks in advance + regards, LarsThere already is an xslt that does the cleaning, it just is missing someof 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, butthat won't happen until next week. RichardHi, where can I find the existing clean-xhtml.xsl stylesheet? Best regards, LarsOk, 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
clean-xhtml.xsl
Description: XML document
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
