You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by John Moylan <jo...@rte.ie> on 2002/08/01 10:48:40 UTC

xpath queries not working in xmldb

Hi,

Are there issues I should be aware of when using the xmldb using xindice
from the command line to return documents using:
xindice xpath_query -c /db/extractsdb -q
"//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']"
the result I get is all files published on the 20020710

But, when I use the following in cocoon:
http://localhost:8080/cocoon/xmldb/extractsdb/?xpath=//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']
the result I get is for all files in the collection.

Does Cocoon's XMLDB transformer have problems with attributes, or with 
timeouts on xpath queries in Xindice( I have created an index, but I am 
querying 4000 xml files each of which is between 80k-500k.)

John



******************************************************************************
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RT� may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
******************************************************************************

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: xpath queries not working in xmldb

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: John Moylan [mailto:john@rte.ie]
> 
> Hi,
> 
> Are there issues I should be aware of when using the xmldb using
xindice
> from the command line to return documents using:
> xindice xpath_query -c /db/extractsdb -q
>
"//Metadata/Property[@FormalName='PublicationDate'][@Value='20020710']"
> the result I get is all files published on the 20020710
> 
> But, when I use the following in cocoon:
>
http://localhost:8080/cocoon/xmldb/extractsdb/?xpath=//Metadata/Property
[@Form
> alName='PublicationDate'][@Value='20020710']
> the result I get is for all files in the collection.

1. Try escaping your query properly. IIRC, '=' sign in parameter value
has to be escaped.

2. See log files, should have 'Querying resource...' or 'Obtaining
resource...' line.

Vadim


> Does Cocoon's XMLDB transformer have problems with attributes, or with
> timeouts on xpath queries in Xindice( I have created an index, but I
am
> querying 4000 xml files each of which is between 80k-500k.)
> 
> John


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>