Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Feature Request: Add XSLT support #107

Open
podcasthosting opened this issue Jul 5, 2019 · 4 comments
Open

Feature Request: Add XSLT support #107

podcasthosting opened this issue Jul 5, 2019 · 4 comments

Comments

@podcasthosting
Copy link

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.

@Ocramius
Copy link
Member

Ocramius commented Jul 5, 2019

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).

@podcasthosting
Copy link
Author

@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.

@Ocramius
Copy link
Member

Ocramius commented Jul 5, 2019

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 👍

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-feed; a new issue has been opened at laminas/laminas-feed#1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants