Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 89283 invoked by uid 500); 25 Feb 2002 17:27:32 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 89267 invoked from network); 25 Feb 2002 17:27:32 -0000 Date: Mon, 25 Feb 2002 18:26:54 +0100 (CET) From: Stephan Michels To: cocoon-dev Subject: XUpdate Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, had somebody write a XUpdate transformer, or think about to write a xupdate transformer? I get some bad headache, if I write more from this: org.xmldb.api.base.* org.xmldb.api.modules.* org.xmldb.api.* [...] [...] String xupdate = "<xu:modifications version=\"1.0\"" + " xmlns:xu=\"http://www.xmldb.org/xupdate\">" + " <xu:remove select=\"/db/object[@id='"+request.getParameter("id")+"']\"/>" + " <xu:append select=\"/db\">"+ /*" <xu:element name=\"object\"> " + " <xu:attribute name=\"id\">"+uid+"</xu:attribute> " + " <xu:attribute name=\"refid\">"+request.getParameter("oid")+"</xu:attribute> " + " </xu:element> " +*/ " <object id=\""+request.getParameter("id")+"\"" + " basedir=\""+request.getParameter("basedir")+"\""+ " file=\""+request.getParameter("file")+"\""+ " extension=\""+request.getParameter("extension")+"\""+ " author=\""+request.getParameter("author")+"\""+ "/>"+ " </xu:append> " + "</xu:modifications>"; XUpdateQueryService service = (XUpdateQueryService) col.getService("XUpdateQueryService", "1.0"); service.update(xupdate); Thanx, Stephan. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org