cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g4 <ja...@root10.net>
Subject xpath query help
Date Wed, 18 Jun 2003 12:23:33 GMT
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.


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message