xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "FOX GBLACK" <foxgblackthun...@hotmail.com>
Subject Re: multiple xpath queries ?
Date Thu, 30 Oct 2003 07:45:49 GMT
Coool... this works

//*[@incharge='533']


>From: "FOX GBLACK" <foxgblackthunder@hotmail.com>
>Reply-To: xindice-users@xml.apache.org
>To: xindice-users@xml.apache.org
>Subject: multiple xpath queries ?
>Date: Thu, 30 Oct 2003 07:27:58 +0000
>
>Hi all,
>
>I have a two xpath queries.
>
>1. xPathQueryForProcess = "//proceses/process[@incharge='533']";
>    this query returns proceses for a person incharge(his id is 533).
>
>
>2. xPathQueryForActivities = 
>"//proceses/process/subprocess/activity[@incharge='533']";
>    this query returns activities for a person incharge with the same id, 
>533).
>
>I need to perform both of the quries togeather on a collection or a 
>document where the document looks somewhat like the following.
>
>xml file
>---------
><project>
>  <process incharge=533>
>     <name>something</name>
>     <subprocess>
>        <activity incharge="533">some activity</activity>
>        <activity incharge="500">some activity</activity>
>        <activity incharge="533">some activity</activity>
>     <subprocess>
>   </process>
>  <process incharge=533>
>     <name>something</name>
>     <subprocess>
>        <activity incharge="511">some activity</activity>
>        <activity incharge="500">some activity</activity>
>        <activity incharge="533">some activity</activity>
>     <subprocess>
>   </process>
><project>
>
>is there any way i can join the above two xpath queries? any suggestions?
>
>_________________________________________________________________
>Hot chart ringtones and polyphonics. Go to  
>http://ninemsn.com.au/mobilemania/default.asp
>

_________________________________________________________________
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp


Mime
View raw message