jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject queries on nodes of type nt:file
Date Thu, 28 Sep 2006 17:58:31 GMT

I'm trying to understand how to express a query on a node of type 
nt:file, putting an attribute constraint on the node itself, and doing 
text search on the jcr:content child node.

Consider this node (document view):

<foo.txt xmlns:jcr="http://www.jcp.org/jcr/1.0" 
xmlns:mix="http://www.jcp.org/jcr/mix/1.0" jcr:primaryType="nt:file" 
jcr:uuid="r-8894_1" jcr:created="2006-09-28T17:32:57.000Z" foo="bar">
   <jcr:content jcr:primaryType="nt:resource" jcr:uuid="e-8894_1" 
jcr:data="eHl6YWJj" jcr:lastModified="2006-09-28T17:32:57.000Z" 

In XPath this should look like

	//*[@foo='bar' and jcr:contains(jcr:content, 'xyz')]

...but according to JSR-170, Section, the first parameter can 
only be "." or an attribute name.

So, is there another way to express this?

Best regards, Julian

View raw message