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" <[EMAIL PROTECTED]>
To: <[email protected]>; <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Andre H. Juffer | Phone: +358-8-553 1161
The Biocenter and | Fax: +358-8-553-1141
the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]