AFAIK, Cocoon supports xmldb protocol but doesn't provide services for XUpdate. You have to create your own generator or action for that. That is to create your appropriate java class which would use Xindice java API to create/replace a document or to get XUpdate service to modify a document.
Roman praktikant wrote: > Hi, > it works! Pretty cool! > > And yes, I have already read the tutorials in the cocooncenter. Weeks ago > and x-times. > But it's not enough to unsterstand Cocoon. > Now I've found CocoonWiki seems to be interesting. > http://outerthought.net/wiki/Wiki.jsp?page=Cocoon > <http://outerthought.net/wiki/Wiki.jsp?page=Cocoon> > But nothing found about Xindice yet. > > Allow me one more question. :o) > > To write xml data into my Xindice db what do I use for? > Xupdate? - and can I use Cocoon that for? > > -----Ursprüngliche Nachricht----- > Von: KOZLOV Roman [mailto:[EMAIL PROTECTED]] > Gesendet am: Mittwoch, 21. August 2002 13:22 > An: [EMAIL PROTECTED] > Betreff: Re: AW: Xindice - Pipeline to db > > Just one mistake: > > KOZLOV Roman wrote: > > > Hi, > > > > praktikant wrote: > > > > > how can I write for example this > > > > > > http://localhost:8080/cocoon/xmldb/dvd/mi2.xml > > > <http://localhost:8080/cocoon/xmldb/dvd/mi2.xml> > > > > > > http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film > > > <http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film> > > > > > > > http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi2 > > > ') > > > > <http://localhost:8080/cocoon/xmldb/dvd/?xpath=//dvd/film[contains(cover,'mi > > > 2')> ] > > > > > > into the sitemap.xmap? > > > > What for? If you want to get your XML data from Xindice db, then > you just add to > > your sitemap a matcher with an appropriate generator source. For > example: > > <map:match pattern="dvd/**"> > > <map:generate src="cocoon:/xmldb/dvd/{1}"/> > > <map:serialize type="xml"/> > > </map:match> > > > > Then you can get XML data by URL's you have pointed above. > > without "/xmldb" substring, for example > http://localhost:8080/cocoon/dvd/mi2.xml > > Roman > > > > > > > Note, that the sitemap has to contain also the matcher for > "xmldb/**" (default > > cocoon's sitemap contains it already): > > <map:match pattern="xmldb/**"> > > <map:match type="request-parameter" pattern="xpath"> > > <map:generate > src="xmldb:xindice://localhost:4080/{../1}#{1}"/> > > <map:serialize type="xml"/> > > </map:match> > > > > <map:generate src="xmldb:xindice://localhost:4080/{1}"/> > > <map:serialize type="xml"/> > > </map:match> > > > > By the way, did you read this: > > http://cocooncenter.de/cc/documents/resources/xindice/index.html > > > > Best regards, > > Roman > > > > > > > > > > > thanks > > > > > > -----Ursprüngliche Nachricht----- > > > Von: praktikant [mailto:[EMAIL PROTECTED]] > > > Gesendet am: Mittwoch, 21. August 2002 08:52 > > > An: [EMAIL PROTECTED] > > > Betreff: Xindice - Pipeline to db > > > > > > Hi, > > > now I can use Xindice in Cocoon. > > > I've had a wrong idea from using Xindice. > > > > > > Thanks Roman! :o) > > > ---------------------------------------------------- > > > But I haven't found something about a pipeline to > Xindice. > > > How can I build a pipeline to Xindice? > > > How can I write back to Xindice? > > > How to use XUpdate? > > > Has someone "simple" examples for it? > > > ---------------------------------------------------- > > > My db is on .../xindice/db/dvd > > > The resources named > > > mi.xml > > > mi2.xml > > > mib.xml > > > mib2.xml > > > > > > <map:pipeline> > > > <map:match pattern="dvd/mi2" type="wildcard"> > > > <map:generate src="xmldb/xpath/dvd/mi2.xml" > > > type="serverpages"/> > > > <map:transform src="dvd/film.xsl" type="xslt"/> > > > <map:serialize type="xml"/> > > > </map:match> > > > </map:pipeline> > > > > > > Sorry, but no idea how to use XUpdate. :-( > > > > > > I use WIN2k, Tomcat 4.0.4, Cocoon 2.0.3 (Java 1.3.x), > Xindice 1.0, > > > Java SDK > > > 1.3.1_04 > > > > > > > > > > --------------------------------------------------------------------- > > > Please check that your question has not already been > answered in > > > the > > > FAQ before posting. > > > <http://xml.apache.org/cocoon/faq/index.html> > > > > > > To unsubscribe, e-mail: > > > <[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <[EMAIL PROTECTED]> > > > > > > > --------------------------------------------------------------------- > > > Please check that your question has not already been answered > in the > > > FAQ before posting. > <http://xml.apache.org/cocoon/faq/index.html> > > > > > > To unsubscribe, e-mail: > <[EMAIL PROTECTED]> > > > For additional commands, e-mail: > <[EMAIL PROTECTED]> > > > > > --------------------------------------------------------------------- > > Please check that your question has not already been answered in > the > > FAQ before posting. > <http://xml.apache.org/cocoon/faq/index.html> > > > > To unsubscribe, e-mail: > <[EMAIL PROTECTED]> > > For additional commands, e-mail: > <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in > the > FAQ before posting. > <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: > <[EMAIL PROTECTED]> > For additional commands, e-mail: > <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>