Comments on: Sorting RSS-feed by date using XSLT https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/ In my blog I'll try to describe about interesting technologies, my discovery in IT and some useful things about programming. Mon, 07 Sep 2015 23:41:12 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Rozengain.com - New Media Development Blog » Blog Archive » Sorting RSS feeds with XSLT https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-229492 Mon, 11 Aug 2008 11:00:38 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-229492 […] I just found this very useful posting on how to sort RSS feeds by date using XSLT. Read it here […]

]]>
By: Dmytro Shteflyuk https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-167344 Mon, 17 Mar 2008 08:06:05 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-167344 Плагин для подсветки синтаксиса — CodeColorer.

]]>
By: Nicholass https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-167064 Sun, 16 Mar 2008 18:16:37 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-167064 Интересно, а какой у вас плагин подсветки синтаксиса?

]]>
By: lusever https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-57704 Sat, 09 Jun 2007 19:51:42 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-57704 Ошибка, не средствами xml, а php.

]]>
By: lusever https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-57684 Sat, 09 Jun 2007 18:49:21 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-57684 А как отсортировать rss средствами xml? Загонять все в массив?

]]>
By: Dennis https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-9050 Sat, 25 Nov 2006 11:14:20 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-9050 Thanks! This is just what I needed, you saved me a lot of time!

]]>
By: adamr https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-5007 Tue, 10 Oct 2006 08:08:59 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-5007 Hi Kpumuk, thanks for your reply. I have spent a long time searching through Google and I agree that PHP seems to be the easiest way to transform XML into HTML for use in a page. I am already using one called CaRP which works quite well.

In principle though XSLT should be a good way of doing this but perhaps at a higher level than I am trying…..;-)

]]>
By: Kpumuk https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-4999 Tue, 10 Oct 2006 03:01:42 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-4999 Hello, adamr
Thank you for you interest. Of course, you can do all you need using XSLT, but I think this is not so good solution. It will be better to parse XML using native PHP libraries and build result HTML.

1. You can’t do this, but… you have ability to transform XML using XSLT with PHP code, just look at XSLT extension or DOM XML extension. There are many articles in the net about this (just look at Google

2. To show only lastest of strories you can use something like (XSLT 1.1)

1
2
3
4
5
6
<xsl:for-each select="item">
  <xsl:sort select="pubDate" data-type="dc:date" order="ascending"/>
  <xsl:if test="position() = 1">
    <xsl:apply-templates/>
  </xsl:if>
</xsl:for-each>

instead of

1
2
3
<xsl:apply-templates select="item">
  <xsl:sort select="pubDate" data-type="dc:date" order="ascending"/>
</xsl:apply-templates>
]]>
By: adamr https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-4980 Mon, 09 Oct 2006 13:36:40 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-4980 Hi, I am slowly developing a website and I wanted to put some RSS feeds into my site to pad out the content. They will update as well which means I don’t have to worry about that.

I was thinking of using XSLT and your article is very interesting. I have two questions:
1. Can I just inlclude the XML file as a PHP include and the page will display the transformed XML as HTML with the rest of the page around it?
2. How can you limit the number of items you bring through. i.e. If you only want the latest story from each feed.

Thanks for any help/advice in advance!

]]>
By: Kpumuk https://kpumuk.info/development/sorting-rss-feed-by-date-using-xslt/comment-page-1/#comment-4358 Mon, 25 Sep 2006 11:44:54 +0000 http://kpumuk.info/xslt/sorting-rss-feed-by-date-using-xslt/#comment-4358 Может это лучше делать на сервере?

]]>