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:[EMAIL PROTECTED] 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=/ [EMAIL PROTECTED]: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