Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 63940 invoked from network); 7 Feb 2000 16:39:58 -0000 Received: from mail.inforama.fr (root@62.161.245.218) by locus.apache.org with SMTP; 7 Feb 2000 16:39:58 -0000 Received: from kalamar (fw.inforama.fr [62.161.245.216]) by mail.inforama.fr (8.9.3/8.8.7) with SMTP id RAA16331; Mon, 7 Feb 2000 17:37:37 +0100 Message-ID: <003001bf7189$91f42ca0$3600000a@inforama.fr> From: "Laurent Eskenazi" To: "Cocoon" , Subject: XObject Date: Mon, 7 Feb 2000 17:37:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.3825.400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.3825.400 Hi! I've got a few java classes I want to include in a cocoon project. There are several hundred lines of code so I want to keep these out of the xml/xsp files and just want to instantiate and call methods in the xml/xsp files. I wandered around and found the XObject interface wich seems to suit me. It is stated that "This interface must be implemented by classes willing to provide an XML representation of their current state", and that's exactly what I want to do. So I implemented this interface for one of my object, but I only did the toSax() method leaving every thing else empty. And nothing happened =+( After looking in Cocoon source code, I understood that the toSAX() method wasn't currently used. So I'm now ready to re-do the job using the toDOM() method. But is this the good way ? I have very few information about the XObject class. Is there a place where I could find informations about this class ? Has anybody some samples I could study ? Thanks per advance Laurent