xsl-list
[Top] [All Lists]

[xsl] Filtering nodes by using XSL

2006-12-20 17:25:13
Hi all,

I have a situation where I need to filter the results of one XML doc into an 
Atom feed; I'm of course using xslt. The underlying XML represents entries 
and/or comments in a blog for example, and they want to be able to request the 
feed and filter using criteria like "show only the last 10 entries". The 
problem is that last ten is ambiguous. There may be only 7 entries for example. 
Using dates won't work because I can't know apriori what date would qualify the 
last n entries.

I've got to think some of you have done this kind of filtering before and 
probably even more robustly. Any suggestions? I'm thinking maybe sorting by 
date and then using some node operator to pick off the N I need, I'm sort of 
new to XSLT so I'm not sure of the idioms for this kind of operation.

Thanks in advance.

-Gregory
 
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Suppose you were an idiot, and suppose you were                        a 
member of congress; but I repeat myself."
                    - Mark Twain
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>