jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: XML, SNS, and JCR
Date Tue, 01 Apr 2008 09:35:07 GMT
Alessandro Bologna wrote:
> Finally, the technical question. Is there a simple way to extend the XPATH
> parser to handle this type of queries?

you might want to try this:

- create your own XPath QueryBuilder, which extends from 
- overwrite createQueryTree() and transform the query tree built by the base class.
- IIUC you'd have to modify every LocationStepQueryNode and do the following:
	- take nameTest and create a NodeTypeQueryNode (or rather a
           RelationQueryNode for jcr:primaryType?) with that name
	- add the NodeTypeQueryNode to the LocationStepQueryNode as a predicate
	- set nameTest to null in LocationStepQueryNode

done ;)


View raw message