Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 93084 invoked from network); 1 Sep 2004 11:39:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Sep 2004 11:39:42 -0000 Received: (qmail 42366 invoked by uid 500); 1 Sep 2004 11:38:32 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 42283 invoked by uid 500); 1 Sep 2004 11:38:29 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 42244 invoked by uid 99); 1 Sep 2004 11:38:28 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-cocoon-users@m.gmane.org designates 80.91.224.249 as permitted sender) Received: from [80.91.224.249] (HELO main.gmane.org) (80.91.224.249) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Sep 2004 04:38:27 -0700 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C2TRY-0006oE-00 for ; Wed, 01 Sep 2004 13:38:24 +0200 Received: from dyn-213-36-88-165.ppp.tiscali.fr ([213.36.88.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Sep 2004 13:38:24 +0200 Received: from t.katelbach by dyn-213-36-88-165.ppp.tiscali.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Sep 2004 13:38:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: oceatoon Subject: Re: javascript collection for cocoon Date: Wed, 01 Sep 2004 13:38:44 +0200 Organization: oceatoon Lines: 23 Message-ID: References: Reply-To: t.katelbach@systheo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dyn-213-36-88-165.ppp.tiscali.fr Mail-Copies-To: t.katelbach@systheo.com User-Agent: KNode/0.7.7 Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N check out the org.w3c.dom Classes they are really usefull, as well as javascript inbeded DOM manipualtion Classes Maybe this can help you >function createDocument(uri, "") function createDocument(uri, nodename){ //Construct DOM document var document =createDocument(); var r = document.createElement(nodename); document.appendChild(r); //then save it to DB or else where through pipeline or File Class } //this only makes sure the document contains Nodes function isDocument(uri){ var document = loadDocument(uri); return document.hasChildNodes(); } Tibor --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org