On Sep 8, 2009, at 9:11 AM, Mike Sokolov wrote:

We've used fckeditor (now finally renamed ckeditor) and tinymce in the past, but we're interested in hearing about anybody's experience with Xopus since it seems to offer a mechanism for doing formatted wysiwyg editing of xml documents (not just xhtml), unlike these others. I played with their demo a bit, and it looks compelling, although we had a crash or two, which made me wonder about stability. Has anyone done more than kick tires yet?


We have been using it for several years. I think it is the best web editor out there even before you take into account that you can create your own schemas, and use XSL to style the editor content.

When you get a crash, are you sure it is not XML that is invalid according to a referenced schema?

best,
-Rob



-Mike

Jakob Fix wrote:
Thanks Geert,

I was thinking of using WebDAV (Xopus exposes an API) as the method to
store and retrieve documents.  I'm also looking at fckeditor, tinymce
and friends as they accept XHTML and ways how the original XML could
be converted to XHTML on loading and re-converted to the source XML
when storing it in ML.

cheers,
Jakob.



On Tue, Sep 8, 2009 at 14:25, Geert Josten
<geert.jos...@daidalos.nl>
 wrote:


Hi Jakob,

I have been looking at Xopus a few weeks back and have been able to make it work without too much fuss for at least a single file.

I copied one of the HowTo folder and replaced the contents of save.js with the following:

// This function is called when the save button is pressed, or when the save
// function is called on an XMLDocument.
function mySaveFunction(uri, xmlDocument)
{
 // HTTP POST the XML document to the save.jsp file.
var result = HTTPTools.postXML("save.xqy?uri=" + uri, xmlDocument, "UTF-8");
     alert(result);
 // Show a dialog with the result.
 /*
 return confirm(
   "Called save.aspx\n" +
   "Result: " + result + "\n" +
   "Press OK to update the Save button accordingly.");
   */
}

// Register the save function.
IO.setSaveXMLFunction(mySaveFunction);

Save.xqy contained the following:

xquery version "1.0-ml";

xdmp:set-response-content-type("text/plain; charset=utf-8"),

let $uri := xdmp:get-request-field("uri")
let $xml := xdmp:get-request-body("xml")
return
       concat("Saved ", $uri, "succesfully")

It doesn't actually save yet, but I am sure you can add that yourself, just use xdmp:document-insert for that.

The most tricky part is where to get the XML from, and how to allow Xopus to open that correctly. I haven't had the time to put all end together, but this might help you to get on your way..

Kind regards,
Geert



Drs. G.P.H. Josten
Consultant



http://www.daidalos.nl/

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199

http://www.daidalos.nl/

KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.




From: general-boun...@developer.marklogic.com

[
mailto:general-boun...@developer.marklogic.com
] On Behalf Of
Jakob Fix
Sent: donderdag 3 september 2009 16:34
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] xopus + marklogic?

I was just wondering if people have succeeded in using the
Xopus XML editor as a frontend to the MarkLogic Server?  On a
more general note, what other approaches have people chosen
to directly edit document content in the database? I know
that Oxygen (and probably others too) connect to MarkLogic
via WebDav, XForms (can you *easily* create a rich text
editor with XForms?).  Could MarkLogic's Word plugin be used
to help with that, I'm not sure.  It seems not intended for
this use, rather for lookups on existing data and insertion
of this data in the current Word document.  By the way, I'm
looking for ways of editing the documents in a wysiwyg way,
my end users don't want to see the tags. :(


cheers,
Jakob.
_______________________________________________
General mailing list

General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general




_______________________________________________
General mailing list

General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general




_______________________________________________
General mailing list

General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general



_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general

Reply via email to