xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Rousseau" <brouss...@tssg.org>
Subject Xpath inclusion operator
Date Tue, 23 Sep 2003 13:52:00 GMT
Hi,

I am trying to query a Xindice collection using an "and" operator.
However the following request does not work:
//AAA/BBB[text()='username'] | /CCC[text()='id']

here is an example xml doc:
 <AAA> 
          <BBB> username<BBB/> 
          <CCC>id<CCC/> 
            ...
 </AAA> 
 <AAA> 
          <BBB> username2<BBB/> 
          <CCC>id2<CCC/> 
            ...
</AAA>

The query retrieves every single <AAA> element, despite the fact that I want those that
have the BBB element equal to username and the CCC element equal to id.

Can anyone please help?

Regards,
Boris
Mime
View raw message