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?

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?

Thanks,

Tak





On Thu, Sep 18, 2008 at 9:20 AM, Natalia Shilenkova
<[EMAIL PROTECTED]>wrote:

> On Wed, Sep 17, 2008 at 8:46 PM, Tak-po Li <[EMAIL PROTECTED]> wrote:
> >
> > Hi Natania,
> >
> > Following what you wrote, the addressbook works!  Thanks you very much
> for
> > your help.
>
> You're welcome. I appreciate your patience and help in testing of the
> application.
>
> > I plan to use xindice to store SVG data.  Which java files in the
> > addressbook are for database read/write?
>
> You can check
> java\examples\addressbook\src\java\addressbook\AddContact.java
> for example of adding a new resource to the database.
>
> Addressbook uses XPath queries to retrieve information from database
> (see java\examples\addressbook\src\java\addressbook\SearchContacts.java).
>
> Take a look at
> java\examples\guide\src\org\apache\xindice\examples\RetrieveDocument.java
> for an example of reading a document from the database - it's from a
> different example application, but should give you an idea of how it
> works.
>
> I would also recommend to take a look at the code for Xindice
> command-line tool (see files in
> java\src\org\apache\xindice\tools\command\).
>
> Regards,
> Natalia
>
>
> > Thanks,
> >
> > Tak
> >
>

Reply via email to