RE: XPath Problem

"Pankaj Mandal -X \(pmandal - Ahura Inc. at Cisco\)" <[email protected]>
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <2873D0DE40695D48B76CDF7C6620A15401BA634B@xmb-sjc-226.amer.cisco.com>
I think you are doing xsl transformation, depending on the
transformation it might work.

Thanks
Pankaj 

-----Original Message-----
From: Aslam Bari [mailto:[email protected]] 
Sent: Thursday, August 10, 2006 11:44 PM
To: [email protected]
Subject: RE: XPath Problem


Thanks Pankaj,
May be this is my last question.

After doing as you told, Can i search like this:- ....
....
<D:where>
	<S:propcontains><D:prop><D:color/></D:prop>
	<D:literal>red</D:literal>
	</S:propcontains>
</D:where>
....
....






Pankaj Mandal -X (pmandal - Ahura Inc. at Cisco) wrote:
> 
> Example would be as follows
> 
> /Drawings/Circle/Extents/text()
> 
> The above xpath would return
> 
> 89 90 87 90
> 
> So in your application you would probably define a propertly as 
> follows
> 
> <instruction property="extents"
xpath="/Drawings/Circle/Extents/text()"
> 
> Similarly you could define properties like Color and Style
> 
> 
> -Pankaj
>  
> 
> -----Original Message-----
> From: Aslam Bari [mailto:[email protected]]
> Sent: Thursday, August 10, 2006 11:11 PM
> To: [email protected]
> Subject: RE: XPath Problem
> 
> 
> 
> Thanks Pankaj,
> Can you guide me for my xml file how can i configure xpath.
> My Xml file
> 
> <Drawings>
>    <Circle>
>           <Extents> 89 90 87 90 </Extensts>
>           <Color>Red</Color>
>           <Style>Zigzag</Style>
>    </Circle>
> 
> <Circle> //So many nodes
> 
> </Drawings>
> 
> 
> 
> Now i want to indexed this file , so that i can search by color, 
> extents , circle and value also.
> 
> 
> 
> 
> Pankaj Mandal -X (pmandal - Ahura Inc. at Cisco) wrote:
>> 
>> Here first xpath means the following xml, where some text would be 
>> the
> 
>> actual text that is in your xml
>> 
>> <article>
>>    <title>some text</title>
>> </article>
>> 
>> Pankaj
>> 
>>  
>> 
>> -----Original Message-----
>> From: aslam bari [mailto:[email protected]]
>> Sent: Thursday, August 10, 2006 10:59 PM
>> To: Slide User
>> Subject: XPath Problem
>> 
>> Dear All,
>>   Does any doby tell me how to use xpath. My Domain.xml contains
>> following:-
>>   <extractors>
>>   <extractor
classname="org.apache.slide.extractor.SimpleXmlExtractor"
>> uri="/files">
>>   <configuration>
>>   <instruction property="title" xpath="/article/title/text()" />
>>   <instruction property="summary" xpath="/article/summary/text()" />
>>   </configuration>
>>   </extractor>
>>   </extractors>
>>    
>>   Problem:- I could not understand what is xpath here and where these

>> title, and summary exist.
>>    
>>   Actually i have contains many XML files in my slide store. I want 
>> to
> 
>> use a extractor that index xml value content as well as the Nodes 
>> name
> 
>> also, so that i can search by the Node's Name. Example
>>    
>>   sample.xml file
>>   <Root>
>>   <Circle extents"90">
>>           Register,  City, 89, 77
>>    
>>   </Circle>
>>   </Root>
>>    
>>   Now I want to search by Circle, extents and root also. Currently it

>> can search only contents like Register, City.
>>    
>>   Anydoby help me?
>>   Thanks...
>> 
>>  				
>> ---------------------------------
>>  Here's a new way to find what you're looking for - Yahoo! Answers
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/XPath-Problem-tf2088860.html#a5757298
> Sent from the Jakarta Slide - User forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

--
View this message in context:
http://www.nabble.com/XPath-Problem-tf2088860.html#a5757583
Sent from the Jakarta Slide - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.