| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I want to look for nodes which are of a special node type and hace a mixin attribute, but the query fails: /jcr:root/okm:root//(element(*, mix:notification) and element(*, okm:folder)) There is another way to perform this query? |
|
#2
| |||
| |||
| Hi, you can only use a single element() test per location step. if you want to filter multiple types you need to do that manually by checking jcr rimaryTypeand jcr:mixinTypes properties. e.g.: /jcr:root/okm:root//*[jcr:mixinTypes = 'mix:notification' and jcr rimaryType ='okm:folder'] please note that this does not take the node type hierarchy into account. if you also want to include sub types of okm:folder you need to explicitly specify that. regards marcel pavila@git.es wrote: > I want to look for nodes which are of a special node type and hace a mixin > attribute, but the query fails: > > /jcr:root/okm:root//(element(*, mix:notification) and element(*, okm:folder)) > > There is another way to perform this query? > > |
|
#3
| |||
| |||
| Ok, thanks! The query can be re-written as: /jcr:root/okm:root//element(*, mix:notification)[@jcr rimaryType='okm:folder']On Tue, Jul 22, 2008 at 9:55 AM, Marcel Reutegger <marcel.reutegger@gmx.net> wrote: > Hi, > > you can only use a single element() test per location step. if you want to > filter multiple types you need to do that manually by checking > jcr rimaryType and jcr:mixinTypes properties. e.g.:> > /jcr:root/okm:root//*[jcr:mixinTypes = 'mix:notification' and > jcr rimaryType = 'okm:folder']> > please note that this does not take the node type hierarchy into account. > if you also want to include sub types of okm:folder you need to explicitly > specify that. > > regards > marcel > > pavila@git.es wrote: > >> I want to look for nodes which are of a special node type and hace a mixin >> attribute, but the query fails: >> >> /jcr:root/okm:root//(element(*, mix:notification) and element(*, >> okm:folder)) >> >> There is another way to perform this query? >> >> >> > |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.