Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 22342 invoked by uid 500); 25 Feb 2002 18:11:18 -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 22331 invoked from network); 25 Feb 2002 18:11:18 -0000 From: "Vadim Gritsenko" To: Subject: RE: XUpdate Date: Mon, 25 Feb 2002 13:09:12 -0500 Message-ID: <013701c1be27$8775f0a0$90a4558b@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Take a look at http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/scratchpad/src/org/apa che/cocoon/transformation/XMLDBTransformer.java?rev=1.6&content-type=tex t/vnd.viewcvs-markup Vadim > -----Original Message----- > From: Stephan Michels [mailto:stephan@vern.chem.tu-berlin.de] > Sent: Monday, February 25, 2002 12:27 PM > To: cocoon-dev > Subject: XUpdate > > 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: > xmlns:xsp="http://apache.org/xsp" > xmlns:xsp-request="http://apache.org/xsp/request/2.0"> > > > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org