Hi,
----- Original Message -----
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>


> > From: Kimbro Staken [mailto:[EMAIL PROTECTED]]
> >
> > We need a richer language then XPath to do that. It will come with
> XQuery,
> >   but it's a long way off. We'll need to figure something out in the
> short
> > term, but I'm not sure what. XSL-T is probably the best solution
> today. To
> > keep the size of the result set down you might need to limit the query
> to
> > just retrieving the last 7 days of posts or something along those
> lines.
> > Not ideal, I know.
>
> Isn't Xindice collection already ordered by time document was inserted?
>
> 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...
>

this would lead to bad performance. Each time you have to grab all the nodes
in /db/blog

[don't know the structure of the XML...]
you could create a xsl:key on 'time', cache the stylesheet, and access it
much faster.

-Rob


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to