You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Thorsten Scherler <th...@apache.org> on 2006/03/19 15:19:52 UTC

BXE and xdocs in doco (was Re: svn commit: r386919)

El dom, 19-03-2006 a las 03:22 +0000, thorsten@apache.org escribió:
> Author: thorsten
> Date: Sat Mar 18 19:22:55 2006
> New Revision: 386919
> 
> URL: http://svn.apache.org/viewcvs?rev=386919&view=rev
> Log:
> Adding xdocs module. The bxe editing is not working, need to fix this.

Hi all,
I added a xdocs module to doco. Since forrest did not yet switched to
xhtml2 as internal format, I thought that I write a lenya module which
makes it possible to edit forrest xdocs. ;)

Now everthing is nice when displaying and creating the xdocs, as well
the oneform editor is working fine. :) So it is now possible to create
and edit Apache Forrest xdocs with Apache Lenya. :)

...but editing with BXE is not working. :( 

As soon as I request 
http://localhost:9999/doco/authoring/index/xdoc.html?&lenya.usecase=edit.bxe
BXE starts up without complains, but then the select box on the top left
has no values and the status on left bottom displays "<document>" the
root name of the xdoc.

Then I click in the editing area near "Apache Forrest xdocs" and the
status changes to <document><body><note>. Then I click on <note> and get
(the actual message is longer but I cannot copy it, the following is
from the FF javaScript console):
Error: this.ownerDocument.vdom.firstChild has no properties
Archivo de origen:
http://localhost:9999/modules/bxe/bxe/relaxng/NodeVAL.js
Línea: 254

If I click on debug-xml I can see the original xml and as well debug-rng
is showing the relaxng schema.

Can it be that I need to define as well a
{$LENYA_HOME}/src/modules/bxe/resources/misc/contextmenu.xml? 

If so, can I re-use the rng and how?

Or is the problem in the xdocs sample where we define 
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN"
"http://forrest.apache.org/dtd/document-v20.dtd"> which got not copied
to the "new xdocs document"?

Can somebody can give me advice?

The module is here:
http://svn.apache.org/viewcvs.cgi/lenya/sandbox/doco/modules/xdocs/?rev=386919

TIA

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org