Use ad hoc quotes :

xpath -c /db/publications/books -q "//[EMAIL PROTECTED]'yes']"

Mind that quotes can be different according to shells.

On Saturday 02 November 2002 20:34, Roger L. Costello wrote:
> Hi Folks,
>
> I have just started using XIndice.  Please bear with me if my questions
> are naive.
>
> [1] I have stored in a collection the document BookCatalogue.xml.
> Here's a sample of what the document looks like:
>
> <?xml version="1.0"?>
> <BookCatalogue>
>     <Book InStock="yes">
>         <Title>...</Title>
>         <Author>...</Author>
>     </Book>
>     ...
> </BookCatalogue>
>
> Note the InStock attribute.  I would like to issue this query: "Find all
> books that are in-stock".
>
> I believe that here is the appropriate XIndice query:
>
> xpath -c /db/publications/books -q //[EMAIL PROTECTED]"yes"]
>
> However, this results in no nodes being selected.
>
> Am I doing something wrong?  The documentation shows a query with a
> predicate, but I have not been successful at getting queries with
> predicates to work.
>
> [2] I have found that simple XPath expressions without a predicate does
> work.  For example, this works:
>
> xpath -c /db/publications/books -q //Book
>
> However, it returns a series of XML documents (each document contains
> one <Book>...</Book>), not a series of nodes (as the documentation
> indicates).  That is, the query returns:
>
> <?xml version="1.0"?>
> <Book ...>
>    ...
> </Book>
> <?xml version="1.0"?>
> <Book ...>
>    ...
> </Book>
> etc
>
> The documentation says that the results should be simply a series of
> nodes:
>
> <Book ...>
>    ...
> </Book>
> <Book ...>
>    ...
> </Book>
> etc
>
> Again, am I doing something wrong?
>
> [3] The documentation says that XUpdate may be used to update the
> documents in the XIndice database.  However, it provides no indication
> of "how" to actually submit an XUpdate document.  Is there a
> command-line command for submitting an XUpdate document?  Can someone
> give me instructions on the mechanism for using XUpdate with XIndice?
>
> [4] I noticed on the Web site "XIndice was last modified in 2000".  Is
> this technology progressing?  Has work stopped on it?
>
> Thanks!  /Roger

Reply via email to