Wolfgang,

I had the same problem and the solution was to use a different schema for checking the html, but this didn't solve the problem completely I also change the schema a bit.

What I did was the following (hope you understand 'patch'):

Index: src/modules/xhtml/resources/schemas/xhtml.rng
===================================================================
--- src/modules/xhtml/resources/schemas/xhtml.rng (revision 692807)
+++ src/modules/xhtml/resources/schemas/xhtml.rng       (working copy)
@@ -37,11 +37,12 @@
 <!-- include Lenya schema, for Lenya assets within xhtml -->
 <include href="fallback://lenya/resources/schemas/lenya.rng"/>

-<!-- include original XHTML basic schema -->
+<!-- include original XHTML basic schema
<include href="fallback://lenya/modules/xhtml/resources/schemas/ xhtml/xhtml-basic.rng">
+-->
 <!-- change to this to include XHTML transitional schema
+-->
<include href="fallback://lenya/modules/xhtml/resources/schemas/ xhtml/xhtml.rng">
--->
 <!-- change to this to include XHTML strict schema
<include href="fallback://lenya/modules/xhtml/resources/schemas/ xhtml/xhtml-strict.rng">
 -->
Index: src/modules/xhtml/resources/schemas/xhtml/modules/basic-table.rng
===================================================================
--- src/modules/xhtml/resources/schemas/xhtml/modules/basic- table.rng (revision 692807) +++ src/modules/xhtml/resources/schemas/xhtml/modules/basic- table.rng (working copy)
@@ -158,8 +158,8 @@
   </optional>
 </define>

-<define name="Block.class" combine="choice">
+<define name="Inline.class" combine="choice">
   <ref name="table"/>
 </define>

-</grammar>
\ No newline at end of file
+</grammar>

Rene

Op 15 nov 2008, om 23:40 heeft Wolfgang Jeltsch het volgende geschreven:

Hello,

I use Lenya 2.0.2 with Tomcat 5.5.27. I created an XHTML document and edited it with BXE. Being dissatisfied with some points, I switched to Kupu where I created a table (including headings). When trying to save the document, a
window popped up which said:

   Error saving your data.
   Response status: 415.
   Check your server log for more information.

I looked at $TOMCAT_HOME/webapps/lenya/WEB-INF/logs/log4j.log an saw several
lines all prefixed with this:

2008-11-15 23:31:11,238 [TP-Processor7] ERROR lenya.publication - error:

The parts following this prefix were the following:

   attribute "border" not allowed at this point; ignored
   attribute "cellpadding" not allowed at this point; ignored
   attribute "cellspacing" not allowed at this point; ignored
   unknown element "thead" from namespace
       "http://www.w3.org/1999/xhtml";
   unknown element "tbody" from namespace
       "http://www.w3.org/1999/xhtml";
   unfinished element

Does anyone have any tips on getting rid of this error?

Best wishes,
Wolfgang

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
René de Vries
<[EMAIL PROTECTED]>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to