Re: is XPath possible on property value?

2007-02-19 Thread Jukka Zitting

Hi,

On 2/19/07, Malligarjunan Sidduraj
[EMAIL PROTECTED] 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 : //[EMAIL PROTECTED] = 'wsdl'

In that above example I want apply the XPath on Property value?
Like //[EMAIL PROTECTED] = (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


RE: is XPath possible on property value?

2007-02-19 Thread Nithya Mani
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 

Addresses
Address
NameOdyssey/Name
Number50/Number
AreaAdyar/Area
CityChennai/City
StateTN/State
CountryIndia/Country
/Address
/Addresses

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
[EMAIL PROTECTED]
IM: nithya_infravio (Yahoo)



-Original Message-
From: Jukka Zitting [mailto:[EMAIL PROTECTED] 
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
[EMAIL PROTECTED] 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 : //[EMAIL PROTECTED] = 'wsdl'

 In that above example I want apply the XPath on Property value?
 Like //[EMAIL PROTECTED] = (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