Op 19 aug 2008, om 10:06 heeft René de Vries het volgende geschreven:


Op 18 aug 2008, om 22:14 heeft Richard Frovarp het volgende geschreven:
René de Vries wrote:

Op 18 aug 2008, om 16:25 heeft Richard Frovarp het volgende geschreven:

If you don't use BXE, you can change the schema you validate against. By default Lenya uses a small subset of XHTML. You want to use more of it.

src/modules/xhtml/resources/schemas/xhtml.rng

Probably want to change it to use the transitional schema. Comment out the include for basic schema.

I did this and no change... It still says 415 (and in the log that table is not supported).

Did you restart? Can you post the exact error?

I changed it in the distribution source and ran a build (and started the tomcat server again).

The messages I got are:

http-8180-Processor23 INFO sitemap - Redirecting to 'cocoon:/PUT/ index.html' http-8180-Processor23 ERROR lenya.publication - error: element "table" from namespace "http://www.w3.org/1999/xhtml"; not allowed in this context

I wanted to get more log messages, but somehow setting logging to 'info' in lenya/WEB-INF/log4j.conf did not produce more logging.

The message was produced by a fresh lenya installation (version 2.0.1), using the default publication and with the above modification as only change. The table was added on the index page just before 'The purpose..'.


I've been searching for the solution. It seems that KUPU inserts tables "inline". If I change the following the problem disappears. I don't know it this is a real solution, but it works. Notice that the first change is what was suggested to me, the second is a change in the basic-table.rng schema. The latter seems to do the trick.

Rene

[EMAIL PROTECTED] ~/apache-lenya-2.0.2/src/modules/xhtml]$ svn diff
Index: resources/schemas/xhtml.rng
===================================================================
--- resources/schemas/xhtml.rng (revision 688491)
+++ 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: resources/schemas/xhtml/modules/basic-table.rng
===================================================================
--- resources/schemas/xhtml/modules/basic-table.rng (revision 688491)
+++ 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>


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



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

Reply via email to