jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sbarriba" <sbarr...@yahoo.co.uk>
Subject Queries with where clause referencing other properties
Date Mon, 27 Aug 2007 12:07:14 GMT
Hi all,

We have the following use case.

.        [acme:Category] >  mix:referenceable

o   acme:name

o   acme:subCategories (reference) multiple COPY

o                  < 'acme:Category'


.        [acme:CategorisedObject]

o   acme:categories (reference) multiple COPY

< 'acme:Category 



..which allows us to put objects in a category (ignoring the rights or
wrongs of using references). It's possible to write a query which returns
the objects in a particular category knowing the category UUID as follows:


xpathquery "//element(*, acme: CategorisedObject)[acme:categories =


..but we really want to be able to explicitly reference the category by path
in the query and avoid the jcr:uuid reference with:


xpathquery "//element(*, acme: CategorisedObject)[acme:categories =


This is invalid as the target of "=" operator is expected to be a literal.


Any suggestions on how to do this?










  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message