Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 23888 invoked from network); 24 Oct 2008 12:44:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2008 12:44:13 -0000 Received: (qmail 34949 invoked by uid 500); 24 Oct 2008 12:44:15 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 34934 invoked by uid 500); 24 Oct 2008 12:44:15 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 34923 invoked by uid 99); 24 Oct 2008 12:44:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2008 05:44:15 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2008 12:43:02 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KtM0z-0002dT-KF for users@jackrabbit.apache.org; Fri, 24 Oct 2008 05:43:41 -0700 Message-ID: <20149365.post@talk.nabble.com> Date: Fri, 24 Oct 2008 05:43:41 -0700 (PDT) From: iapilgrim To: users@jackrabbit.apache.org Subject: Re: Xpath query based on dynamic property name In-Reply-To: <4901B48E.5090102@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: iapilgrim@gmail.com References: <20126431.post@talk.nabble.com> <4901B48E.5090102@gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org Hi Marcel, Thanks for your time first, Marcel Reutegger wrote: > > > I'm not sure I understand your use case. What exactly do you mean with > 'query > posts by a tag'? If you know the tag you can simply traverse the tree and > collect the paths that reference the entries. but I guess that's not what > you > want... > Yes, traverse the tree and collect desired node is a possible way. I just want to know how to got post by tag ( ex tag have value 'xxx'), but as i know so far, current Jackrabbit (1.4.6) doesn't support query xpath with fn:name() or local-name() ... so traverse the tree is unique way to get post by tag. I don't know traverse the tree leads to some perfomance issues or not ( i'm not sure). Could you give me a hint? Marcel Reutegger wrote: > >> + (jcrom users): Suppose I get all tags by their property name. Because I >> allow query on partial property name (ex. x instead of xxx), I can't find >> a >> smart way to get property values. >> + Is there other way to organize a similar structure to easily query ? > > as an alternative you may want to consider reversing the references. let > the > entries reference the tags. maybe that makes it easier for your to > formulate the entries > Yes, we could refer tag from the post (entry) but I want tag to know post because tag could be used for tagging photo or article... It's also design issue, I want to isolate tag module. -- View this message in context: http://www.nabble.com/Xpath-query-based-on-dynamic-property-name-tp20126431p20149365.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.