Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 286 invoked from network); 19 Feb 2007 10:36:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2007 10:36:45 -0000 Received: (qmail 12172 invoked by uid 500); 19 Feb 2007 10:36:52 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 12146 invoked by uid 500); 19 Feb 2007 10:36:51 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 12137 invoked by uid 99); 19 Feb 2007 10:36:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 02:36:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.234.160.230] (HELO smtpeast.webmethods.com) (208.234.160.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 02:36:41 -0800 Received: from EXEAST1.webmethods.com (Not Verified[10.1.1.20]) by smtpeast.webmethods.com with MailMarshal (v6,1,6,1172) id ; Mon, 19 Feb 2007 05:36:16 -0500 Received: by exeast1 with Internet Mail Service (5.5.2655.55) id <1028R3YG>; Mon, 19 Feb 2007 05:36:15 -0500 Message-ID: From: Nithya Mani To: dev@jackrabbit.apache.org Subject: RE: is XPath possible on property value? Date: Mon, 19 Feb 2007 05:36:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain X-Virus-Checked: Checked by ClamAV on apache.org Hi, We can search content based on the xpath in an xml file. If we import an xml under a particular node, you could make xpath search. For example consider the below xml
Odyssey 50 Adyar Chennai TN India
If we import this under the node called 'ShoppingCentre', we could execute the query with the xpath '//ShoppingCentre/Addresses/Address/Name/jcr:xmltext' to get the Name node. I think Jukka has also meant the same. Regards, Nithya Mani Senior Developer, webMethods nithya@webmethods.com IM: nithya_infravio (Yahoo) -----Original Message----- From: Jukka Zitting [mailto:jukka.zitting@gmail.com] Sent: Monday, February 19, 2007 2:23 PM To: dev@jackrabbit.apache.org Subject: Re: is XPath possible on property value? Hi, On 2/19/07, Malligarjunan Sidduraj wrote: > Can we apply XPath on a particular Property value which is a type of > application/xml. > > We can do XPath on JCR tree Hierarchy that I know. > Ex : "//blog[@blogauthor = 'wsdl' > > In that above example I want apply the XPath on Property value? > Like "//blog[@blogauthor = (XPATH Query) or some XPath Query on content? No, that's not possible. If possible, you might want to consider modifying your content model so that instead of storing XML in your properties you expand the content into normal JCR nodes and properties. BR, Jukka Zitting