cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <>
Subject Re: [provocative] crushing userland
Date Fri, 22 Feb 2002 17:03:21 GMT
Vadim Gritsenko wrote:

> Isn't Xindice collection already ordered by time document was inserted?

It looks like it is, but I don't know if this is guaranteed.

> Than simple query like /db/blog/*[position() > last()-20] should work
> then, or something like /db/blog/*[position() =
> last()]/preceding::*[position() < 20] should even inverse the order...

It doesn't work. position() is 1 for all the nodes returned. This 
sitemap entry retrieves all the items in the collection:

<map:match pattern="">
  <map:transform src="stylesheets/xmldb2rss.xsl" label="rss"/>
  <map:transform src="stylesheets/blog.xsl"/>

If I change "position()=1" to "position()=2", then no item is found.


Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail:

To unsubscribe, e-mail:
For additional commands, email:

View raw message