Downloads » Resources » [SNIPPET] xslt » [SNIPPET] xslt | Extras » First titles/links of RSS feed in unordered list

First titles/links of RSS feed in unordered list

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
3 vote(s).

by michalc

XSL transformation that can be used with the xslt snippet to show a number of the first titles/links of a RSS feed.

Works with MODx Version(s): 0.9.5
Submitted: Jan 2nd 2007 | License: GPL - GNU Public | Downloads: 952
Tags:
feeds, other, xhtml, xml, xsl

Description

Transformation of a RSS feed to a XHTML unordered list. Only the "title" field from each item is shown, linked to the URL in the "link" field. The number of items shown can be specified in the xslt snippet call, but defaults to 5 if it is not specified.

Instructions

The xsl file in the archive can be used with the xslt snippet. The sheet has a parameter 'listLength' that can be used to set the number of items in the list to be displayed. For example to set the number of items to be displayed to 10, the option &xslParams=`listLength:10` must be added to the xslt snippet call.


( back to top )