[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Filtering nodes by using XSL
Subject: [xsl] Filtering nodes by using XSL From: Gregory Stone <guomo@xxxxxxxxx> Date: Wed, 20 Dec 2006 16:24:50 -0800 (PST) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Behavior of document() Fu, Roger L. Cauvin | Thread | Re: [xsl] Filtering nodes by using , Wendell Piez |
[xsl] Re: Behavior of document() Fu, Roger L. Cauvin | Date | [xsl] Are namespace nodes required , Florent Georges |
Month |