Closed sjehuda closed 3 weeks ago
I don't think including an XSL stylesheet is important for this plugin. Someone can totally choose to include one on their own website, and there isn't really much that we can do to help with someone add one in terms of filters anyway.
Why not?
XSLT converts RSS (XML) into HTML, in this case.
The HTML should not have any stylesheet.
All there is to do is place a CSS in accord to the theme in use.
I see no reason for any theme not to work, as long as it take care for elements such as div, span, p, h1, h2, h3 etc.
Doing so is a great opportunity.
Another note
I don't think including an XSL stylesheet is important for this plugin.
I think it is important because
Someone can totally choose to include one on their own website
Most people aren't aware of XSLT and even more aren't aware that one can have a complete XML-based website with a single XSLT stylesheet that would turn XML into HTML, instead of using server-side technologies like php or python.
Here is a wonderful example of what you can do with XSLT https://yaxim.org/doap/yaxim.rdf.xml
and there isn't really much that we can do to help with someone add one in terms of filters anyway.
What do you mean by filters?
Another note I don't think including an XSL stylesheet is important for this plugin. I think it is important because Someone can totally choose to include one on their own website Most people aren't aware of XSLT and even more aren't aware that one can have a complete XML-based website with a single XSLT stylesheet that would turn XML into HTML, instead of using server-side technologies like php or python. Here is a wonderful example of what you can do with XSLT yaxim.org/doap/yaxim.rdf.xml and there isn't really much that we can do to help with someone add one in terms of filters anyway. What do you mean by filters?
(FYI, I don't think most people using Eleventy are using "service-side technologies like php or python"). I'm not saying XSL stylesheets are bad I'm just saying maybe this isn't the right place to include one... and I'm not even sure how exactly you would actually include one in this plugin.
(FYI, I don't think most people using Eleventy are using "service-side technologies like php or python").
I mentioned server-side technologies as a proof of concept.
XSL works on the client-side, hence all the calculations occur on the client machine, which is a greate advantage, especially to website owners.
I'm not saying XSL stylesheets are bad I'm just saying maybe this isn't the right place to include one...
Please let me do it.
and I'm not even sure how exactly you would actually include one in this plugin.
Once I get an approval, I'll look into how to do it.
Generally, XSL is like CSS. To include XSL into XML is the same as to include CSS into XML. Unlike CSS, XSL is also able to transform the XML into HTML, XML and also PDF.
I mean feel free to make a PR, there is nobody stopping you from doing that. I just think it's a waste of time. Do you use 11ty/understand what this plugin is for? This plugin doesn't provide any CSS or HTML (though it does have some examples) so I'm not sure how this applies.
I mean feel free to make a PR, there is nobody stopping you from doing that.
Thanks. I'll look into it.
Do you even use 11ty/understand what this plugin is for?
I don't use 11ty yet. I think I understand what this plugin is for.
This plugin doesn't provide any CSS or HTML (though it does have some examples).
I might ask to add a CSS stylesheet, unless I manage to use CSS from 11ty themes.
I think XSL is fine, but I’d also vote for it probably as a separate plugin!
I think XSL as core feature would be beneficial, namely because:
It has no overhead on server-side (i.e. all processing occurs at client-side; and
Turning an XML document into a beautiful and readable HTML document is of at most use.
I would note that v9 of eleventy-base-blog
(shipping with Eleventy v3 and ESM) does include an XSL for the Atom feed: https://github.com/11ty/eleventy-base-blog/blob/855f27468eb20bbef7559d6a64ab5be43c9ad118/content/feed/pretty-atom-feed.xsl
Based on: https://github.com/genmon/aboutfeeds/blob/main/tools/pretty-feed-v3.xsl
I also don’t think it makes sense given the overtly visual style of the XSL output to tightly couple XSL to this plugin (@11ty/eleventy-plugin-rss
).
Thank you for the information.
Atom Syndication Format is the best type is syndication filetype.
I am currently working with another static HTML generator, because I need to submit code to it, so I will not observe 11ty yet.
I would appreciate if someone would send a visual demonstration of this (video or screenshots).
Thank you.
Closing.
Hello,
Does this plugin have an XSL stylesheet?
I didn't see any stylesheet in this repository, yet I did find "Pretty RSS Feed" featured in the Eleventy Blog.
I have created a project called StreamBurner, which can handle Atom, RDF and RSS.
I'll gladly send a pull request, if you would accept XSLT stylesheet in this repository.
For more information: https://gitgud.io/sjehuda/streamburner https://github.com/sjehuda/syndication4humans-qupzilla