cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Casey <werdafuc...@gmail.com>
Subject Re: Updating Xindice with Request Data
Date Tue, 31 Jan 2006 21:58:10 GMT
Brilliant, that is exactly what I need... its not quite just a sitemap thing
like I was hoping for, but it is good enough to get it all working. Thankyou
to all!

Mike

On 2/1/06, Johnson <johnson@erp.tw> wrote:
>
> Hi!
>
> We use this method
>
> var wid = form.lookupWidget();
> form.createBinding("forms/shpk_bind.xml");
> var documentURI = cocoon.parameters["documentURI"];
> if (documentURI == "xmldb:xindice://localhost:8080/db/shpk/") {documentURI
> = cocoon.parameters["documentURI2"];}
> var document = loadDocument(documentURI);
>
>   form.load(document);
>
> ....
> saveDocument(document, "xmldb:xindice://localhost:8080/db/shpk/" +
> wid.shpk_cpdh.value + wid.rev.value + ".xml");
>
> Best Regards
>
> johnson
>
>
> ----- Original Message -----
> From: "Jonas Lundberg" <my.name.is.hans@gmail.com>
> To: <users@cocoon.apache.org>; <Andre.Juffer@oulu.fi>
> Sent: Tuesday, January 31, 2006 4:59 PM
> Subject: Re: Updating Xindice with Request Data
>
>
> >I see. I was looking at the downloads page...
> >
> > Regards
> > Hans
> >
> > On 1/31/06, Andre Juffer <ajuffer@sun3.oulu.fi> wrote:
> >> Jonas Lundberg wrote:
> >> > It seems that no one works on Xindice anymore. At least, I have found
> >> > no new versions since 2004.
> >>
> >> The last version is 1.1b5-dev (May 25 2005)
> >>
> >> See http://xml.apache.org/xindice/changes.html
> >>
> >> You can download the source code with svn.
> >>
> >> > I would recommend that you use eXist instead of Xindice, if you want
> >> > an XML database.
> >> > http://exist.sourceforge.net/
> >>
> >> >
> >> > Regards
> >> > Hans
> >> >
> >> > On 1/31/06, Mike Casey <werdafucami@gmail.com> wrote:
> >> >
> >> >>Hi All,
> >> >>
> >> >> I am currently working on an implementation of a wiki type site that
> >> >> uses
> >> >>XML for Wiki syntax, partly to help learn NXBs/Cocoon and partly
> >> >>because I
> >> >>could not find a suitable product out there to meet my needs.
> >> >>
> >> >> The XMLDB block samples has some good examples on how to update
> >> >> Xindice
> >> >>using XML files which is all very well in good however I need to
> figure
> >> >>out
> >> >>how to pull xml data out of a CForm and then push it into Xindice.
> The
> >> >>sample has the pipeline
> >> >>
> >> >> <map:match pattern="populate">
> >> >>         <map:generate src="populate.xml"/>
> >> >>         <map:transform type="cinclude"/>
> >> >>         <map:transform type="xmldb"/>
> >> >>         <map:serialize/>
> >> >>  </map:match>
> >> >>
> >> >> Where ofcourse the generator looks for a physical xml file. Does
> >> >> anyone
> >> >>have any hints on how I might acheive this? I am reasonably new to
> >> >>Cocoon so
> >> >>forgive me if the answer you return is blatantly obvious!
> >> >>
> >> >> Cheers,
> >> >>
> >> >> Mike Casey
> >> >> Wellington
> >> >> New Zealand
> >> >>
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> > For additional commands, e-mail: users-help@cocoon.apache.org
> >> >
> >> >
> >>
> >>
> >> --
> >> Andre H. Juffer              | Phone: +358-8-553 1161
> >> The Biocenter and            | Fax: +358-8-553-1141
> >>      the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi
> >> University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >> For additional commands, e-mail: users-help@cocoon.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

Mime
View raw message