Thanks, Natalia, I have a few questions on Addcontact.java:

         // Create the XMLResource and store the document
         XMLResource resource = (XMLResource) col.createResource( "",
"XMLResource" );
         resource.setContent(ourdoc);
         col.storeResource(resource);
I believe ourdoc is the xml string.  However, I believe this is for
addressbook data base only.  How should I change it to a database name
"cad"?

Thanks,

Tak






On Thu, Sep 18, 2008 at 3:25 PM, Natalia Shilenkova
<[EMAIL PROTECTED]>wrote:

> On Thu, Sep 18, 2008 at 2:45 PM, Tak-po Li <[EMAIL PROTECTED]> wrote:
> >
> > Hi Natalia,
> >
> > I look at the examples you point me to as well as the links (
> >
> http://cocoon.zones.apache.org/demos/21branch/samples/blocks/xmldb/welcome
> > ) that someone gave me.  It seems in xslt, the URL for xindice-db is:
> >
> > xmldb:xindice-embed:///db/
> >
> > For normal file read access I use:
> > select="document(addresbook/*.xml)
> >
> > I should change it to:
> > select="document(xmldb:xindice-embed:///db/addressbook/*.xml)
> >
> > Is it correct?
>
> Sorry, cannot help you with Cocoon stuff, it is not really my domain.
> But I know there are folks that are well-versed in both Xindice and
> Cocoon, maybe they decide to chime in.
>
> > I believe I have to use servlet or JSP to perform write access to the
> > database.  Is Xupdate available?  I heard Xupdate is the generic method
> to
> > change the native xml database.  Do you have an example for using
> Xupdate?
>
> You don't have to use servlet or JSP to access database, as an example
> you can see Xindice command-line tool. XUpdate is available for
> Xindice, please see relevant documentation [1] for an example.
>
> [1]
> http://xml.apache.org/xindice/1.2/guide-developer.html#Using+XUpdate+to+Modify+the+Database
>
> Regards,
> Natalia
>
> >
> > Thanks,
> >
> > Tak
> >
>

Reply via email to