zend-feed icon indicating copy to clipboard operation
zend-feed copied to clipboard

Feature Request: Add XSLT support

Open podcasthosting opened this issue 5 years ago • 4 comments

It would be nice to style generated feeds with a xsl:stylesheet. See the XSLT entry on Wikipedia for more general information about this.

I was thinking about adding a header to reference the stylesheet, e.g.

<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="podcast.xsl"?>

taken from an ORF podcast feed.

podcasthosting avatar Jul 05 '19 15:07 podcasthosting

An XSLT transformation is usually best applied to the XML feed directly, and not through a third party component or language. XSLT is Turing complete, and also a very good FP language, so I'd suggest digging that way first (by piping the XML directly through CLI XML tools).

Ocramius avatar Jul 05 '19 15:07 Ocramius

@Ocramius If I understand you correctly than what you are suggesting is not what I want to achieve. I want to make a RSS feed look good in the browser. It should be the feed generated through zend-feed itself without piping it through any extra tools.

podcasthosting avatar Jul 05 '19 16:07 podcasthosting

I'd rather say that you take the RSS feed (input or output) and pass it to XSLT directly: XSLT is good and mature, use it :+1:

Ocramius avatar Jul 05 '19 18:07 Ocramius

This repository has been closed and moved to laminas/laminas-feed; a new issue has been opened at https://github.com/laminas/laminas-feed/issues/1.

weierophinney avatar Dec 31 '19 21:12 weierophinney