xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry Rosenbaum <Te...@amicas.com>
Subject Re: Predicates are ignored in Xindice XPATH?
Date Wed, 22 Oct 2003 14:56:09 GMT
Hi WH,

If, for example, you have 3 <Id> elements
in your collection, the correct result would
be 3 Resources each containing one of the 3 <Id>
elements.

Your XPath syntax is not doing what you desire.

Using an XPath testbed may help. One is available
on the web here: 
http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm

-Terry

webhiker@tiscali.fr wrote:

> Hi all,
>
> Given the XPath :
> (//Id)[last()]
>
> Xindice always seems to ignore the predicate portion, and it returns 
> the results as if I had written :
> //Id
>
> Is this a problem with Xindice, XPath or my syntax? I'm trying to 
> return the last Id element in my database.
>
> I'd appreciate any help.
>
> Thanks
> WH
>


Mime
View raw message