jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru Popescu" <the.mindstorm.mailingl...@gmail.com>
Subject Re: usage of jcr:path allowed in XPath?
Date Wed, 10 May 2006 07:13:08 GMT
Interesting: if for example @excludedQueries contains values 1,2,3 the
following results are according to the spec:

@excludedQueries != '3' => true (at least one of the values is != to 3)

not(@excludedQueries = '3') => false

I think I have to take care :-).

./alex
--
.w( the_mindstorm )p.


On 5/10/06, Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> wrote:
> Indeed, this looks like a better idea in most of the cases.
> Unfortunately, in my case it doesn't seem fit, because there is no
> common 'characteristic' of /AAA and /BBB. I guess, in my case more
> logically is to have the special property (for example a multivalue
> @excludedQueries) against which I can filter out things.
>
> //*[not(@excludedQueries = 'x')]
>
> I think that from the pov of logic this would scale better in case I
> will have to add more 'selective' queries.
>
> Am I wrong?
>
> ./alex
> --
> .w( the_mindstorm )p.
>
>
> On 5/9/06, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> > Hi,
> >
> > On 5/9/06, Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> wrote:
> > > Now I have to think about some tricks to be done. For example, let's
> > > say that the nodes under /CCC have a property that is not available on
> > > /AAA and /BBB children. Would it be possible to make use of this in
> > > the XPath? I guess the other way around would work (having in both
> > > /AAA and /BBB children a property that is not available on /CCC).
> > >
> > > Please advise. Any ideas will be highly appreciated, as this
> > > represents a critical stopper for my project.
> >
> > I've quite often used empty mixin types as markers for various things,
> > including queries that cannot be easily expressed otherwise. Is there
> > some characteristic feature of the /AAA and /BBB nodes that make them
> > interesting for the query? Create a marker mixin type for that feature
> > and apply it to whichever nodes you want included in your query.
> >
> > BR,
> >
> > Jukka Zitting
> >
> > --
> > Yukatan - http://yukatan.fi/ - info@yukatan.fi
> > Software craftsmanship, JCR consulting, and Java development
> >
>

Mime
View raw message