You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by g4 <ja...@root10.net> on 2003/06/18 14:17:08 UTC
Query src:key? help.
Hi list,
I'm trying to query a document key. I have a collection of documents
that have Xindice generated document id's. So for example:
<collection:result docid="02ffa7c04be90537000000f5b2fb799b">
<Enquiry xmlns:src="http://xml.apache.org/xindice/Query" approved=""
date="Tue Jun 10 19:23:08 BST 2003" src:col="/db/Enquiry"
src:key="02ffa7c04be90537000000f5b2fb799b" time="" year="">
<fname xmlns:src="http://xml.apache.org/xindice/Query">TEST
DATA</fname>
<lname xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA
</lname>
<email xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA
</email>
<telephone type="mobile"
xmlns:src="http://xml.apache.org/xindice/Query">5455545466</telephone>
<address xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA
</address>
<town xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA
</town>
<county xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA
</county>
<postcode xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA
</postcode>
<contact email="" xmlns:src="http://xml.apache.org/xindice/Query">
<hours xmlns:src="http://xml.apache.org/xindice/Query">08:00
-20:00</hours>
<days xmlns:src="http://xml.apache.org/xindice/Query">sat-sun</days>
</contact>
<requirements timescale="3-6 months"
xmlns:src="http://xml.apache.org/xindice/Query">
<style bespoke="" edwardian="true" leanto="" victorian="true"
xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA </style>
<dimensions type="imperial"
xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA </dimensions>
<budget currency="GBP"
xmlns:src="http://xml.apache.org/xindice/Query">3000 - 5000</budget>
<notes xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA
</notes>
</requirements>
</Enquiry>
</collection:result>
I'm using this Xpath expression (and many variations of) through
Cocoon's pseudo-control:
http://127.0.0.1:8080/cocoon/conserv/protected/dbtest/Enquiry/?xpath=/
Enquiry[@src:key='02ffa7c04be90537000000f5b2fb799b']
with no luck at all. I am guessing that the attribute prefix may be
cause of all my woes.
Any help warmly appreciated
Jason Lane
Re: Query src:key? help.
Posted by g4 <ja...@root10.net>.
On Wednesday, Jun 18, 2003, at 15:58 Europe/London, Kevin Ross wrote:
> I believe you need to map the namespace to the prefix before the query
> is executed in the XPathQueryService. I'm not sure how you access that
> via cocoon.
Ok thanks, I've found some info (although little), I'll give it a try.
May take sometime to solve ;(
Thanks
Jason Lane
Developer
RE: Query src:key? help.
Posted by Kevin Ross <Ke...@iVerticalLeap.com>.
I believe you need to map the namespace to the prefix before the query
is executed in the XPathQueryService. I'm not sure how you access that
via cocoon.
-Kevin ross
-----Original Message-----
From: g4 [mailto:jason@root10.net]
Sent: Wednesday, June 18, 2003 6:17 AM
To: xindice-users@xml.apache.org
Subject: Query src:key? help.
Hi list,
I'm trying to query a document key. I have a collection of documents
that have Xindice generated document id's. So for example:
<collection:result docid="02ffa7c04be90537000000f5b2fb799b">
<Enquiry xmlns:src="http://xml.apache.org/xindice/Query" approved=""
date="Tue Jun 10 19:23:08 BST 2003" src:col="/db/Enquiry"
src:key="02ffa7c04be90537000000f5b2fb799b" time="" year="">
<fname xmlns:src="http://xml.apache.org/xindice/Query">TEST
DATA</fname>
<lname xmlns:src="http://xml.apache.org/xindice/Query"> TEST
DATA
</lname>
<email xmlns:src="http://xml.apache.org/xindice/Query"> TEST
DATA
</email>
<telephone type="mobile"
xmlns:src="http://xml.apache.org/xindice/Query">5455545466</telephone>
<address xmlns:src="http://xml.apache.org/xindice/Query"> TEST
DATA
</address>
<town xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA
</town>
<county xmlns:src="http://xml.apache.org/xindice/Query"> TEST
DATA
</county>
<postcode xmlns:src="http://xml.apache.org/xindice/Query"> TEST
DATA
</postcode>
<contact email=""
xmlns:src="http://xml.apache.org/xindice/Query">
<hours
xmlns:src="http://xml.apache.org/xindice/Query">08:00
-20:00</hours>
<days
xmlns:src="http://xml.apache.org/xindice/Query">sat-sun</days>
</contact>
<requirements timescale="3-6 months"
xmlns:src="http://xml.apache.org/xindice/Query">
<style bespoke="" edwardian="true" leanto=""
victorian="true"
xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA </style>
<dimensions type="imperial"
xmlns:src="http://xml.apache.org/xindice/Query"> TEST DATA </dimensions>
<budget currency="GBP"
xmlns:src="http://xml.apache.org/xindice/Query">3000 - 5000</budget>
<notes xmlns:src="http://xml.apache.org/xindice/Query">
TEST DATA
</notes>
</requirements>
</Enquiry>
</collection:result>
I'm using this Xpath expression (and many variations of) through
Cocoon's pseudo-control:
http://127.0.0.1:8080/cocoon/conserv/protected/dbtest/Enquiry/?xpath=/
Enquiry[@src:key='02ffa7c04be90537000000f5b2fb799b']
with no luck at all. I am guessing that the attribute prefix may be
cause of all my woes.
Any help warmly appreciated
Jason Lane